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.
Loading
Niradhip ChakrabortyPosted May 4, 2008, 4:17 AM
Check out the following URL:
http://www.codeproject.com/KB/graphics/iTextSharpTutorial.aspx