Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi do you know a pdf printer free and open source compatible with c# windows forms, i tried with MS Word and saveas

Word.Application wordApp = new Word.Application();
object FileFormat = Word.WdSaveFormat.wdFormatPDF;
C#
object missing = Type.Missing;
         wordApp.Visible = false;

         Word.Document doc = wordApp.Documents.Open(ref filename, ref missing, ref missing, ref missing, ref missing,
             ref missing, ref missing, ref missing, ref missing, ref missing,
             ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);

         doc.Activate();
         doc.SaveAs(ref filepdf, ref FileFormat, ref missing,
         ref missing, ref missing, ref missing,
         ref missing, ref missing,
         ref missing, ref missing,
         ref missing, ref missing, ref missing,
         ref missing, ref missing, ref missing);


but is not works.
Posted

1 solution

Try iTextSharp[^].
 
Share this answer
 
Comments
hugojim 2-May-13 14:35pm    
hi, do you have some examples?, i not tried with iTextSharp, but dont put a tag in the documents?
Richard MacCutchan 2-May-13 15:16pm    
Try a Google search.
hugojim 2-May-13 18:26pm    
Tnks¡¡

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