Microsoftofficeinteropword word to pdf c. This blog explains how you could use the office interop assemblies to convert word powerpoint and excel files to pdf. Install package microsoftofficeinteropword version 15047971003. Create a simple windows application and place a button control in it. You can rate examples to help us improve the quality of examples.
But what if you have a lot of documents you want to convert to pdf. Office to pdf conversion can be performed on a linux or windows server to automate office centric workflows or entirely in the users client web browser. Install it with the following command or you can also get it from nuget. This article shows how to create a word document using c and office 2013.
Ie the prg has to go the specific path n if there is any word document it has to get converted to pdf. Specifically to work with word files youre going to need the microsoftofficeinteropworddll. Sample c code for using pdftron sdk to convert office documents to pdf including word excel powerpoint and publisher without needing any external dependencies or ms office licenses. The default is false.
C csharp microsoftofficeinteropwordapplication 30 examples found. This post shows how to convert a word document to pdf grammatically using c. If you set this parameter to true the resulting files are more reliably self contained but may be larger or show more visual artifacts due to the restrictions of the format. These are the top rated real world c csharp examples of microsoftofficeinteropwordapplication extracted from open source projects.
Then the office interop assemblies could help you. To work with word files we need to add reference to microsoftofficeinteropworddll first.