Click here to Skip to main content
15,939,960 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a macro enabled excel file.

I want to open the file as a stream and populate the file using OpenXML.

Following is my code to Open the file.

But i dont know how to take this file in stream and populate it with data.

C#
SpreadsheetDocument spreadsheetDocument = SpreadsheetDocument.Open(filepath, SpreadsheetDocumentType.Workbook);

WorkbookPart workbookpart = spreadsheetDocument.AddWorkbookPart();
Posted
Comments
Maciej Los 27-Feb-14 7:08am    
Please, be more specific and provide more details. What you mean: "populate with data"? Any specific operation? What kind of...?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900