HI,There is a ASP.NET program that use to convent the Word to PDF. I used PDFMAKERAPI.DLL in this program.this is the code
"
using System;
using PDFMAKERAPILib;
namespace test1
{
public partial class index : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string wordPath = "C://123.doc";/ source word file
string pdfPath = "C://123.pdf";// saved pdf file
PDFMakerApp app = new PDFMAKERAPILib.PDFMakerApp();
int iReslut = app.CreatePDF(wordPath, pdfPath, PDFMakerSettings.kConvertAllPages, false, false, false, System.Type.Missing);
if (iReslut == 0)
{
a.Text = "Success!";
}
else
{
//false!
a.Text = Enum.GetName(typeof(PDFMakerRetVals), iReslut);
}
}
}
}
"
I run this program in a computer with win7,office2007 and adobe acrobat 9 pro.However, it couldn't convent Word to PDF.The wrong messege is "kPDFMErrorLaunchingAssociatedApp".Does anyone have a suggestion? Thanks for any help you can provide.
David