Using OLE Automation API
-
ahsan - Posts:34
- Joined:Thu Oct 31, 2013 8:41 am
Conversion of Word doc having links to external files fails
Post
by ahsan » Tue Dec 24, 2013 4:26 am
Hi staff,
I am using WPF for making client and WCF service calling "ConvertDocument" function().
When I try to convert MS Word document having links to external files, it fails and gives timeout error.
Here is the image showing how I attached external file in Word document. Right Click and click "view iamge"
![Image](https://www.dropbox.com/s/in20wevftepvp1s/Screenshot%202013-12-24%2014.25.46.png)
Last edited by
ahsan on Tue Dec 24, 2013 4:57 am, edited 1 time in total.
-
staff - Posts:267
- Joined:Sat Dec 15, 2007 4:48 pm
Post
by staff » Tue Dec 24, 2013 4:51 am
There are no images attached to your post. Could you send a sample Word document with which you experience this problem to our support e-mail?
-
ahsan - Posts:34
- Joined:Thu Oct 31, 2013 8:41 am
Post
by ahsan » Tue Dec 24, 2013 4:59 am
Image is there in my question. Just Right Click and click "view iamge" on last word of my question which is "Image".
File is attached in this reply. Please open MS word file and try to convert it using Automation API and not through Print2Flash Application.
staff wrote:There are no images attached to your post. Could you send a sample Word document with which you experience this problem to our support e-mail?
- Attachments
-
- Files.rar
- Please open MS word file and try to convert it using Automation API and not through Print2Flash Application.
- (16.64KiB)Downloaded 878 times
-
staff - Posts:267
- Joined:Sat Dec 15, 2007 4:48 pm
Post
by staff » Tue Dec 24, 2013 7:40 am
We can convert your Word document without problems both manually and using Automation API. However, each time we open your document manually, we get a message about updating document links. Try to disable this message by opening Word options window, switching to Advanced tab, scrolling to General options group and clearing "Update automatic links at open" checkbox.
-
ahsan - Posts:34
- Joined:Thu Oct 31, 2013 8:41 am
Post
by ahsan » Tue Dec 24, 2013 8:10 am
staff wrote:We can convert your Word document without problems both manually and using Automation API. However, each time we open your document manually, we get a message about updating document links. Try to disable this message by opening Word options window, switching to Advanced tab, scrolling to General options group and clearing "Update automatic links at open" checkbox.
I am using sdk sample of ASP.NET and same issue is faced.
File could not be converted. Before printing timeout expired
Before printing timeout expired
System.Runtime.InteropServices.COMException (0x80004005): Before printing timeout expired
at Print2Flash3.IServer.ConvertFile(String SourceFileName, String OutputFileName, Object Profile, Object BatchProcessingOptions, Object PrintingPreferences)
at AnasageServer.AnasageServerService.ConvertDocumentToSWF(String conversionSettings, Dictionary`2 info)
-
ahsan - Posts:34
- Joined:Thu Oct 31, 2013 8:41 am
Post
by ahsan » Mon Dec 30, 2013 5:04 am
Can you please use sdk sample of ASP.NET and please verify the issue.
On my end issue is facing even if i use sdk sample of ASP.NET.
Secondly, If I convert the document having links to external files; I succeeded.
But i want to convert document using Automation API.
Tools: WPF, WCF
-
staff - Posts:267
- Joined:Sat Dec 15, 2007 4:48 pm
Post
by staff » Mon Dec 30, 2013 6:23 am
We just checked your document with our ASP.NET SDK sample and it worked. For this we had to clear the "Update automatic links at open" option in the Advanced tab of Word Options window. We use MS Word 2010.
-
ahsan - Posts:34
- Joined:Thu Oct 31, 2013 8:41 am
Post
by ahsan » Mon Dec 30, 2013 7:37 am
staff wrote:We just checked your document with our ASP.NET SDK sample and it worked. For this we had to clear the "Update automatic links at open" option in the Advanced tab of Word Options window. We use MS Word 2010.
I did the same on MS Word 2010 but sdk sample is unable to convert the file. Re-attaching the file.
- Attachments
-
- word%2Bxl%282007%29.rar
- (18.98KiB)Downloaded 865 times
-
staff - Posts:267
- Joined:Sat Dec 15, 2007 4:48 pm
Post
by staff » Mon Dec 30, 2013 8:04 am
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?