C microsoftofficeinteropword to pdf. If you want to convert a document to pdf you can save it as pdf file export pdf. True to limit pdf usage to the pdf subset standardized as iso 19005 1. If by list out the namespaces required to work with the document you mean the help for the object model. If youre using visual studio you can get it from nuget and attach to your application using the package explorer otherwise you will have to download and install the official distribution package.
The best way to access this is to start word press altf11 to go into its ide then use the help menu. The default is false. Specifies whether to limit pdf usage to the pdf subset standardized as iso 19005 1. Thirdly you need to set endrangeend 1 if you want to use.
C code to convert docx to pdf using microsoftofficeinteropword wordpdfconvertcs. This blog explains how you could use the office interop assemblies to convert word powerpoint and excel files to pdf. Ive never tried it but im told the exportasfixedformat method should convert a word 2007 document to pdf. Secondly you need to copy the specific word pages to a new document as a temporary document to store the content using application selectioncopy methodthen save the temporary document as a pdf file using documentsaveas method.
Hi samadhan firstly dont close the used document and word application if continue using them. Then the office interop assemblies could help you. You can rate examples to help us improve the quality of examples. C csharp microsoftofficeinteropwordapplication 30 examples found.
These are the top rated real world c csharp examples of microsoftofficeinteropwordapplication extracted from open source projects. 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.