Conversion of Word doc having links to external files fails

Using OLE Automation API
ahsan
Posts:34
Joined:Thu Oct 31, 2013 8:41 am
Re: Conversion of Word doc having links to external files fa

Post by ahsan » Tue Dec 31, 2013 12:16 am

staff wrote:We checked this document. It was converted by ASP.NET sample with Word 2010 correctly. Do you experience this problem only with documents with external links or with other Word documents as well?
I am experiencing this problem only with documents with external links.

ahsan
Posts:34
Joined:Thu Oct 31, 2013 8:41 am

Re: Conversion of Word doc having links to external files fa

Post by ahsan » Tue Dec 31, 2013 7:10 am

I am attaching the ASP.Net sample, please run this sample in VS 2012.
Attachments
ASP.NET sample .rar
(15.09KiB)Downloaded 1008 times

staff
Posts:267
Joined:Sat Dec 15, 2007 4:48 pm

Re: Conversion of Word doc having links to external files fa

Post by staff » Fri Jan 03, 2014 2:14 am

We checked your sample and it worked without a problem. "Before printing timeout" error indicates there is a problem in your MS Word installation. This error arises in this way:
1. You invoke ConvertFile method of Automation API to convert your Word document
2. Print2Flash invokes MS Word and instructs it to print your document on the Print2Flash Printer
3. However, during the timeout specified in the BeforePrintingTimeout property of BatchProcessingOptions object MS Word has not started printing. Print2Flash waits for this timeout and returns "Before printing timeout" error in this situation. Print2Flash can do nothing better in this case as it is a virtual printer and it cannot convert a document without a printing application sending a document to the Print2Flash Printer. So the problem lies in your MS Word installation.

Please try to re-install MS Word or install another version of MS Word or install another application capable of printing of .doc files, e.g. OpenOffice.

Post Reply