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.

Microsoft 365 and Office | Open Specifications
Microsoft 365 and Office | Excel | For business | Windows
{count} votes

1 answer

Sort by: Most helpful
  1. Tom Jebo 2,336 Reputation points Microsoft Employee Moderator
    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.