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: Nikom Douzuru
Country: Mayotte
Language: English (Spanish)
Genre: Health and Food
Published (Last): 22 December 2015
Pages: 491
PDF File Size: 15.33 Mb
ePub File Size: 7.38 Mb
ISBN: 769-7-27539-828-6
Downloads: 15198
Price: Free* [*Free Regsitration Required]
Uploader: Faeramar

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. Specifies the starting page number, if the Range parameter is set to wdExportFromTo. OpenAfterExport — True to open the file after creating it. FixedFormatExtClassPtr — A variant that gives a pointer to an add-in that provides an alternate implementation of code.

How to Convert Office File to PDF File Format in C# | Software Development for ECM

It doesnt crash the document though. Proudly powered by WordPress.

Hi Tom, Many thanks for your response. The following snippet is used to try what you said on my side:. Don’t tell someone to read the manual. Word to PDF conversion. Articles Quick Answers Messages Use my saved content filters. I should also point out wofd if we were to use a PDF print driver we dont get the issue and the markups are shown.

Email Required, but never shown. Hi, I have to convert the word document.

Member 9-Mar 9: Thanks for your patience. The only 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. A pointer to an implementation of the IMsoDocExporter interface that enables the document to be saved in a different fixed format. This produces a markup. Understand that English isn’t everyone’s first language so be lenient of bad spelling and grammar.


The question is solved already! Hello Anna, Can you look into the “Programs and Features” of the Windows control panel applet and tell us what build of Word or of Office you are running?

Run that program on a PC that has office installed.

For information on optional parameters, see Optional Parameters in Office Solutions. IncludeDocProps Exporttasfixedformat true to include document properties in the new file; otherwise, false. Is there anyway to debug this? The following snippet is used to try what you said on my side: It looks like something is embedded in this document but I am unsure how you are supposed to deal with it. The only visual we get is at the bottom right hand side of word which states “Finding Internal Hyperlink targets” – this process never stops – the count seems to go on forever until word finally dies.

I found a bit hacky solution, but for exportaafixedformat purposes it works well and uses Foxit Reader to convert to pdf. I wondered if we should be looking to switch a setting off for it to cope with this – of course the users need the markups switched on.

Post as a guest Name. Here is the corresponding VBA code for this: If Truethe resulting files are more reliably self-contained but may be larger or show more visual artifacts due to the restrictions of the format.


During the entire delay do you see a progress bar, and if so, what is the text? Insults are not welcome. The following code shows the call to ExportAsFixedFormat. Once we get the go ahead, I will upload it to skydrive – will keep you posted on that one. I can’t reproduce your issue on my side.

Print Word File to PDF

The lawyers want to send out a marked up document in these cases but as a PDF so it cannot be changed. Sign in to vote.

Hi Still reproduces error. Thanks for sharing sample. Can anyone shed any light on this issue?

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

DocStructureTags Boolean true to include extra data to help screen readers, such as information about the flow and logical organization of the content; exportasfixedfomrat, false. It’s better for creating a PDF document from scratch.

Tuesday, May 1, 5: This email is in use. I hope them can solve it. Word; public partial class Default2: By clicking “Post Your Answer”, you acknowledge that you have read our updated exportaasfixedformat of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

Follow these for other office application. It’s also unsupported by Microsoft, and may violate your Office license.