G
Guest
Hello,
I'm trying to make an application in C# that can, from a DataSet, create a
PDF file.
I'll made that (and it works) using iTextSharp library.
Now I want to print this PDF file within the code.
I just have the free Acrobat Reader 7.0.
In my Visual project, I included a reference to AcroPDFLib, and tried to
work with it.
This is my simple code :
AcroPDFLib.AcroPDFClass test = new AcroPDFClass();
test.LoadFile("listing.pdf");
test.printAll();
Unfortunatelly, I've got an error with LoadFile() : a NullReferenceException
with VS2003 and "Attemped to read or write protected memory. This is often an
indication that other memory is corrupt." with VS2005 Beta2.
Any help would be welcome
PS: I also apologize for my poor english
I'm trying to make an application in C# that can, from a DataSet, create a
PDF file.
I'll made that (and it works) using iTextSharp library.
Now I want to print this PDF file within the code.
I just have the free Acrobat Reader 7.0.
In my Visual project, I included a reference to AcroPDFLib, and tried to
work with it.
This is my simple code :
AcroPDFLib.AcroPDFClass test = new AcroPDFClass();
test.LoadFile("listing.pdf");
test.printAll();
Unfortunatelly, I've got an error with LoadFile() : a NullReferenceException
with VS2003 and "Attemped to read or write protected memory. This is often an
indication that other memory is corrupt." with VS2005 Beta2.
Any help would be welcome
PS: I also apologize for my poor english