I'm referencing "Adobe Acrobat 7.0 Browser Control Type Libary 1.0" and I have the following code:
Any idea why this isn't working? I'm using Acrobat 7.0 by the way. Also, when I use pdf.LoadFiles() instead of pdf.src, i get an error message saying "object not initialized", and this was with the "new AcroPDFLib.AcroPDFClass()" line included.Code:private void button1_Click(object sender, System.EventArgs e) { AcroPDFLib.AcroPDFClass pdf; pdf = new AcroPDFLib.AcroPDFClass(); pdf.src = @"C:\sample.pdf"; pdf.Print();//i tried pdf.PrintAll() and pdf.PrintPages() - both didn't work }




Reply With Quote