Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
1.40/5 (3 votes)
See more:
Hi, I have a bytes Array that i parse into a Excel File.
The problem is: How can i parse the excel file to an pdf File.

Pleas, if some one have the answer help me.
Posted

 
Share this answer
 
Comments
fjdiewornncalwe 5-Nov-12 12:41pm    
+5. This will work well if the OP doesn't mind using a printer driver for this purpose.
Maciej Los 5-Nov-12 13:52pm    
Agree, +5!
 
Share this answer
 
Comments
Maciej Los 5-Nov-12 13:53pm    
Interesting links, +5!
ridoy 5-Nov-12 13:55pm    
Thanks Maciej..:)
Use iTextSharp[^] free software.

This article: Creating PDF documents with iTextSharp[^] might be helpful.

BTW: You don't need to save "bytes array" into ms Excel file and then into pdf. You can do it "directly".

The other solution is to install MS Excel Addin[^], which allows you to export and save excel files to the PDF format. You can call corresponding method to save workbook as a pdf file via COM[^].
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 5-Nov-12 14:52pm    
Sure, a 5. I would also provide this link:
http://itextpdf.com/.

It's Java, but the documentation is mostly there.
--SA
Maciej Los 5-Nov-12 15:02pm    
Thank you, Sergey ;)

And thank you for sharing a link.
Using Microsoft.Office.Interop.Excel to convert XLS, XLSX into PDF or XPS.
http://excelconverter.codeplex.com/[^]
 
Share this answer
 
v2
Hi,

You can open the excel file into report viewer and then can export in any format.



Hope it ll work for you.

Thanks.
 
Share this answer
 

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