How to apply template on an excel filr while exporting data using Open XML?

Rashmi Gupta 81 Reputation points
2021-06-02T06:25:04.883+00:00

Hi,
I am trying to export data to excel file using Open Xml and successfully did that in a new sheet. I have a template file and now I want to apply that template on the excel sheet/file but I didn't get any appropriate code sample which is easily understandable.
How can I apply template on an excel sheet/file using Open Xml, any suggestions?

Developer technologies | Visual Basic for Applications
Developer technologies | .NET | Other
Developer technologies | C#
{count} votes

Accepted answer
  1. Daniel Zhang-MSFT 9,656 Reputation points
    2021-06-03T01:26:35.66+00:00

    Hi RashmiGupta,
    Voucik has provided a complete detailed code example in this thread you can refer to.
    Best Regards,
    Daniel Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.