Solved

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

Posted on 2011-09-14
3
1,163 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
This article will show you how to use shortcut menus in the Access run-time environment.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

920 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