|Published (Last):||6 November 2013|
|PDF File Size:||2.99 Mb|
|ePub File Size:||10.69 Mb|
|Price:||Free* [*Free Regsitration Required]|
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.
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.
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.
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.