0

Can anyone direct me to a place where I can learn a little bit about creating a .xslx file in code behind then populating it. I would need to create new worksheets as well.

I would be using a text box and parsing the data therein to populate the excel spreadsheet.

Thanks in advance.

2 Answers 2

1

Check out the Open XML SDK 2.0 for Microsoft Office. It provides a slightly higher level API than simply the formidable Open XML specification. Download both packages - the tools are useful for experimenting.

Here are some links that should get you started using this SDK:

The question OpenXML SDK Spreadsheet starter kits also has some great links.

Sign up to request clarification or add additional context in comments.

Comments

0

I used a few SDK's when I had to do it, and unfortunately many of them worked but had issues with some security when you open it in Excel again.

I eventually settled for good old COM interop with Excel.

This Interop Arcticle will help you get started.

I just created a nice ExcelHelper class to hide all the ugly COM syntax and handle the memory for me.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.