Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello everyone

i have an excel workbook with 47 sheets. i want to export only the first 3 or 5 sheets to a pdf format based on some criteria in asp.net. can any one please help me out to do so.

Thanks in advance.
Posted
Comments
[no name] 16-Dec-12 1:48am    
http://mattgemmell.com/2008/12/08/what-have-you-tried/
OraSeale 17-Jun-15 6:05am    
Hi Jagdish, you can try this C# library for Excel files. Among the other it provides a direct C# conversion of an excel sheet or an entire file into a PDF. In case where you want to export just a specific set of sheets then you can create a new in-memory representation of an excel file and just copy the required sheets into it and then save the entire file as PDF.
Additionally see here how you can export that excel file in ASP.NET.

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