Click here to Skip to main content
15,889,034 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear Sir


I have a excel file generated in c# and now i want to convert it into pdf file without using any other dll or third party tool
Posted

Is the excel format 2007+? You are going to need to look into automation by using Excel interop:

http://stackoverflow.com/questions/7906722/save-entire-workbook-as-pdf-excel-2010-c[^]

or

use openxml

http://fczaja.blogspot.co.uk/2013/05/how-to-read-and-write-excel-cells-with.html[^]

and then write the data out using something like:

http://www.pdfsharp.com/PDFsharp/[^]

either way, you are going to need some sort of dll / tool I cant think of a way not too accurately. These are excellent tools and either open source or free. Why waste time doing something when it is already done?
 
Share this answer
 
Comments
rajbir singh thind 21-Jan-14 7:19am    
now i don not getting it
 
Share this answer
 
Comments
rajbir singh thind 21-Jan-14 7:39am    
for this i have to use another dll is there any direct way to convert it into pdf
db7uk 22-Jan-14 3:50am    
not really.

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