Anybody have used this code?

Dec 2, 2011 at 11:32 AM

Hi,
    I m trying to use this code,but its giving problem. ie if i m trying to convert a word file to pdf, it goes forever on this line

 

    Document doc = word.Documents.Open(ref filename, ref oMissing,
                    ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
                    ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
                    ref oMissing, ref oMissing, ref oMissing, ref oMissing);

 

and it also hangs iis. Does any faces this problem? Here I want to mention that the file I m trying to convert is very small file around 10kb.

 

Mehul

Jan 12, 2012 at 9:53 PM

I am using this to convert ~4 MB Word documents with no problem.

Mar 10, 2014 at 9:00 AM
I'm using this nice little tool to convert Word to PDF in VB.NET.