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: Tusida Mezuru
Country: Czech Republic
Language: English (Spanish)
Genre: Software
Published (Last): 26 December 2004
Pages: 480
PDF File Size: 11.62 Mb
ePub File Size: 12.98 Mb
ISBN: 600-8-14762-931-9
Downloads: 72025
Price: Free* [*Free Regsitration Required]
Uploader: Tagis

Let’s work to help developers, not make them feel stupid. Leave a Reply Cancel reply Your email address will not be published.

How to convert word document to pdf in C#

For information on optional parameters, see Optional Parameters in Office Solutions. Hi The person who can authorise the release of the document is off for another week – so apologies for not getting this to you. If I specify any other output format ex. Exportasfixedflrmat code is the same as in the previous example except when it comes to saving the file.

The only output is at the bottom right of the word application stating “Finding Internal Hyperlink targets” press ESC. Ex;ortasfixedformat this point we have noticed that if we have printview on rather than outline view, the hyperlinks start to be checked in loops.


Proudly powered by WordPress.

How to export Word document to PDF and/or XPS? – Damir Dobric Posts –

Thursday, May 3, 2: Yes it is intended behaviour. Default value is False. DocStructureTags — Determines whether to include extra data to help screen readers.

Very short and easy to undersatand The default is exportasfixedfodmat export the entire document. Top Rated Most Recent. The default is false. Provide an answer or move on to the next question. Wednesday, May 16, If you change the argument to the ‘item’ parameter to another value does the problem happen.

Here is the corresponding VBA code for this: Post as a guest Name.

Sign up or log in Sign up using Google. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. If there is a link can you resolve it by clicking the text associated with the link?

DocStructureTags Boolean true to include extra data to help screen readers, such as information about the flow and logical organization of the content; otherwise, false. The question is solved already! Saravanan 4, 35 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.


Could you expand on your statement that “of course the users need the markups switched on. Exportasfiedformat also unsupported by Exportasfixedgormat, and may violate your Office license.

IncludeDocProps — Determines whether document properties are included. The only visual we get is at the bottom right hand side of word which states “Finding Internal Hyperlink exportastixedformat – this process never stops – the count seems to go on forever until word finally dies. Stack Overflow works best with JavaScript enabled.

You’ll have to use a 3rd party library to do this, like Apose.

I have found that as soon as the wdexportdocumentwithmarkup parameter is placed on the export it causes this particular export to pdf to fail. Why do you post an answer to a question from may? Can anyone shed any light on this issue?

Is there some other reason you want the change tracks to show up on the PDF version?