How to generate 2 worksheets in excel workbook when we are generating that excel from xml after applying OOXML xsl?

R, K 0 Reputation points
2024-01-11T10:37:28.3933333+00:00

Hi, I am not able to relate/create 2nd sheet in xsl using ooxml. How to link Sheet defined in workbook variable to the <worksheet.. > element where we actually populate the data? Thanks.

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,960 questions
Office Open Specifications
Office Open Specifications
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Open Specifications: Technical documents for protocols, computer languages, standards support, and data portability. The goal with Open Specifications is to help developers open new opportunities to interoperate with Windows, SQL, Office, and SharePoint.
139 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tom Jebo 1,996 Reputation points Microsoft Employee
    2024-01-26T20:34:20.7566667+00:00

    Hi R, K,

    In the absence of responses, I'm assuming that you either no longer need assistance or have taken a different approach.

    Regardless of the approach you take and with the limited information I have, my only recommendation at this point is that you must separate the worksheet output in your sample xsl so that sheet1 and sheet2 are output separately to xl/worksheets/sheet1.xml and xl/worksheets/sheet2.xml. The current template you have will definitely output both sheets to the same output unless there is post-processing that I'm not seeing.

    Good luck with the project!

    Best regards,
    Tom Jebo
    Microsoft Open Specifications Support

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.