I have created a C# .NET Wrapper Class & DLL to convert a given Word File into a given PDF File. The .NET DLL I have made visible to COM. I have then used that DLL in a Classic ASP page. The ASP page hangs whilst generating. It does create the Xml file from the Word Document, but hangs on the final Save to PDF. Once the Script Times out the PDF is saved successfully. I'm a bit puzzled as to why it would wait until the script times out to complete the PDF save. The snippet of code in the Class is:
***********************************
// Open the document.
Document doc = new Document(wordFile);
// Save the document in the Aspose.Pdf.Xml format.
string xmlFile = "C:\\Document.ConvertToPdf Out.xml";
doc.Save(xmlFile, SaveFormat.AsposePdf);
// Read the document into Aspose.Pdf.
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
// If you have purchased a license,
// Set license like this:
string licenseFile = "C:\\Program Files\\Aspose\\Aspose.Pdf\\Bin\\net2.0\\Aspose.Pdf.lic";
Aspose.Pdf.License lic = new Aspose.Pdf.License();
lic.SetLicense(licenseFile);
pdf.BindXML(xmlFile, null);
// Instruct to delete temporary image files.
pdf.IsImagesInXmlDeleteNeeded = true;
// This seems to speed up Aspose.Pdf if you convert multiple files in one session.
pdf.IsTruetypeFontMapCached = true;
pdf.TruetypeFontMapPath = Path.GetTempPath();
// Produce the PDF file.
pdf.Save(pdfFile);
*****************************************
Can anyone help?