Solved

microsoft office compatibility pack - some .doc files do not convert to docx

Posted on 2011-09-14
3
1,169 Views
Last Modified: 2012-05-12
Hi, I have a 2003 server running IIS with a .Net site that allows a user to upload .doc files and I convert them to .pdf on the server. My pdfconvert program requires the .doc to be converted to docx first. So I have the latest Office Compatibility Pack installed on the server and I run OFC.EXE which in the case of .doc files runs the wordconv.exe program to convert the file to .docx. Some .doc files do not successfully complete the wordconv.exe process and I see this process running on the server and have to manually kill it. A few instances of these "stuck" wordconv.exe processes bring my server to its knees. Looking at the documents in Word show that these problem documents have embedded excel tables or other graphics or other oddities.

My server has all of the latest updates installed.


My questions: Is there anything I can do to determine exactly why these documents hang?
Is there a better solution to convert .doc to .docx that I can incorporate into the code of my .Net website?
Is there a way to have the process automatically die after a certain amount of time(I see OFC.INI has a timeout setting and it does not seem to work if wordconv.exe is executed)


0
Comment
Question by:jellydog
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
Arman Khodabande earned 500 total points
ID: 36594927
Hi

Read this.
Then go to explanation of the command line parameters.

This can be useful:
Homepage and explanation:         http://b2xtranslator.sourceforge.net/
Download Page:                           http://sourceforge.net/projects/b2xtranslator/


Or you may use "Aspose.Words for .NET"
Perhaps it's not free but has a 30 day evaluation.
0
 

Author Closing Comment

by:jellydog
ID: 36718943
Thanks so much
0
 
LVL 10

Expert Comment

by:Arman Khodabande
ID: 36813289
You're welcome.
Wish you good luck
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now