1
Answer

opening pdf file in windows application using c#

Ask a question
maruthi

maruthi

16y
4.9k
1
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)