maruthi

maruthi

  • NA
  • 3
  • 0

opening pdf file in windows application using c#

May 3 2008 5:50 AM
Hi ,
 
 i have try to open an PDF file in windows application using C#  I was getting an error that type should not be null following is the code . Please Help me Urgent.


 Acrobat.CAcroApp app = (Acrobat.CAcroApp)Activator.CreateInstance(Type.GetTypeFromProgID("AcroExch.App"));
            app.Show();

            Acrobat.CAcroAVDoc doc = (Acrobat.CAcroAVDoc)Activator.CreateInstance(Type.GetTypeFromProgID("AcroExch.AVDoc"));

            doc.Open(FileName, "Computed Mileage");  

Error Message is
Value cannot be null.
Parameter name: type

Thank u ,
Maruthi.

Answers (1)