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?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,396 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,274 questions
{count} votes

Accepted answer
  1. Daniel Zhang-MSFT 9,611 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