Click here to Skip to main content
15,912,897 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello Friends,

Can we convert word file to pdf through C# code without installing any plugin?

Thanks

Mohit Sharma
Posted
Comments
Manfred Rudolf Bihy 2-Jan-12 6:35am    
Plugin for what?
Please clarify this! Use the link Improve question below your question.

Thanks for your cooperation!

Yes.
Read this discussion - How do I convert Word files to PDF programmatically?[^]
and this article from CodeProject - PDF creation using C# (and Office) from RTF/DOC files[^]

Hope this helps!
 
Share this answer
 
Hello Mohit,

See http://stackoverflow.com/questions/607669/how-do-i-convert-word-files-to-pdf-programmatically[^]

Having MS Word installed is enough.

Cheers

Andi
 
Share this answer
 
Thanks Andi,

I have already tried this code that is given in the link you provided. But if we have not installed SaveasPdf plugin then it will throw an error. But i don't want any dependency in my code. Can you tell me without installing any plugin save word doc in PDF.

Thanks for the Reply dear.
 
Share this answer
 
v2
Comments
Andreas Gieriet 2-Jan-12 9:58am    
Depends on the MS Office version. MS Office 2010 can natively save PDF, so, no "plugin" needed there. What version of MS Office do you use?

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