Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

How to solve this problem that the error message is "kPDFMErrorLaunchingAssociatedApp"?

$
0
0

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


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>