C# WORD EXPORTASFIXEDFORMAT PDF

By using our site, you acknowledge that you have read and understand our Cookie Policy , Privacy Policy , and our Terms of Service. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. In my Asp. I have used microsoft interoperability word package and using the method saveAs method.

Author:Akinorr Tojarn
Country:South Sudan
Language:English (Spanish)
Genre:Environment
Published (Last):6 November 2013
Pages:287
PDF File Size:2.99 Mb
ePub File Size:10.69 Mb
ISBN:172-9-13157-208-6
Downloads:32315
Price:Free* [*Free Regsitration Required]
Uploader:Vizil



But what if you have a lot of documents you want to convert to PDF. Then the Office Interop Assemblies could help you. Prerequisites: — Microsoft Office needs to be installed — Some dev skills. This is not something you would like to use on a large production environment. But if you are in need of a onetime solution this could be a solution.

Always keep in mind that you backup your Office documents and check the results after converting. But if you are in need of a onetime solution to convert a bulk of documents this could be a solution. And always make sure you test the results afterwards and make a backup of the original Office documents. Your email address will not be published. Prerequisites: — Microsoft Office needs to be installed — Some dev skills This is not something you would like to use on a large production environment.

Word Add Assembly reference to project: Microsoft. PDF", Microsoft. Close Microsoft. ExportAsFixedFormat Microsoft. Jeroen Ritmeijer Says: Good for one-offs though, providing you keep the bulk small and keep a good eye on the results. Stefan Feenstra Says: Sinethemba Says: Post a Comment Cancel reply Your email address will not be published.

EMBEDDED C CODING STANDARD BY MICHAEL BARR PDF

How to convert word document to pdf in C#

Therefore, I collected lots of materials. Now, I want to share a method I think is useful. You can download it from the Microsoft official website. Then, open VS. Take VS as an example.

BOXERCISE CIRCUIT CARDS PDF

Subscribe to RSS

Specifies whether the export range is the entire document, the current page, a range of text, or the current selection. Specifies the starting page number, if the Range parameter is set to wdExportFromTo. Specifies the ending page number, if the Range parameter is set to wdExportFromTo. Default value is True.

ASCITIS EN POLLOS PDF

C# (CSharp) Microsoft.Office.Interop.Word Document.ExportAsFixedFormat Examples

One of the WdExportOptimizeFor values that specifies whether to optimize for screen or print. One of the WdExportRange values that specifies whether the export range is the entire document, the current page, a range of text, or the current selection. The default is to export the entire document. Specifies the starting page number, if the Range parameter is set to wdExportFromTo.

Related Articles