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.
Opening pdf file in windows application using c#
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Niradhip ChakrabortyRank #428 · 5.8K pointsPosted May 4, 2008, 12:17 AM EDT
Check out the following URL:
http://www.codeproject.com/KB/graphics/iTextSharpTutorial.aspx