Check this link -> convert doc to pdf in c#. It uses the . ExportAsFixedFormat(@”D:\”, WdExportFormat. ExportAsFixedFormat(@”D:\desktop\”, WdExportFormat. wdExportFormatPDF); } public nt wordDocument { get. C#. Hi all, is there a way to print a word file to pdf without using any third ExportAsFixedFormat(paramExportFilePath, paramExportFormat.

Author: Fenris Kajigor
Country: Nicaragua
Language: English (Spanish)
Genre: Technology
Published (Last): 16 June 2007
Pages: 193
PDF File Size: 14.25 Mb
ePub File Size: 5.92 Mb
ISBN: 993-8-99343-243-3
Downloads: 11322
Price: Free* [*Free Regsitration Required]
Uploader: Morr

OutputFileName — The name of the file to create.

Sign up using Facebook. Leave a Reply Cancel reply Your email address will not be published. Wednesday, May 23, DocStructureTags — Determines whether to include extra data to help screen readers.

Printing report as PDF,Word, etc.

Use Word to make a PDF containing pictures in C# – C# HelperC# Helper

The exportxsfixedformat output is at the bottom right of the word application stating “Finding Internal Hyperlink targets” press ESC If you dont eventually the document crashes as its in an infinite look. Yes the code usually works as you mention however Im getting certain scenarios where the document that the user has created has some form of hyperlinks and cross references in them that are causing this issue.


Insults are not welcome. Top Rated Most Recent. Exportasrixedformat Falsethe font is referenced, and the viewer’s computer substitutes an appropriate font if the authored one is not available.

Anwer Jamal 9-Sep 7: Chances are they have and don’t get it. Specifies the starting page number, if the Range parameter exportasfixedformqt set to wdExportFromTo.

Please Sign up or sign in to vote. Serkan Hekimoglu 3, 5 29 FixedFormatExtClassPtr — A variant that gives a pointer to an add-in that provides an alternate implementation of code.

Use Word to make a PDF containing pictures in C#

Browser symbol seems like loading, loading Sudheer Sid 2-Jul 1: DocStructureTags Boolean Boolean Specifies whether to include extra data to help screen readers, for example information about the flow and logical organization of the content.

For information on optional parameters, see Optional Parameters in Office Solutions. I have a problem with the step SaveAs. But since there are plenty of third-party products already available, why put yourself through all that pain?

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

Monday, May 28, 1: One of the WdExportCreateBookmarks values that specifies whether to export bookmarks and the type of bookmarks to export. Tuesday, May 1, 5: If it suits, you can use the workaround of saving the ActiveDocument to some temporary document docxclose Exportasfixedormat, open the temporary dord file and do ExportAsFixedFormat on this.


Existing Members Sign in to your account. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Hi Anna, Thanks for sharing sample.

Very grateful for any light you can shed on this issue anna Anna. Its something they have always done.

Monday, April 30, 7: Hiya Sord just finding out whether I can get a copy of the document – given its a legal document it will have sensitive information in it – so it will have to be changed. Range — The range to export. Hi Anna, Good troubleshooting. I have saved the compare document up on skydrive too and its the PDF version of this thats required. Set this parameter to True when font licenses do not permit a font to be embedded in the PDF file.