2

I have made a Windows client application where I use the AxAcroPDF control to display a pdf-file on a form.

It seems to me that after I have upgraded my Acrobat reader from version 8 to version 9 the LoadFile method returns true when the file is opened correctly, where version 8 returned false. Is this a correct observation?

Best Regards, Krimson

Krimson
  • 762
  • 6
  • 25

3 Answers3

3

I realize this thread is a little old, but I made the same observation and I had to change my code for the 9.0 version.

maguidhir
  • 167
  • 8
0

LoadFile returns -1 on success, 0 on failure. This can be found in the documentation for Acrobat 9. I can't find the online reference for version 8, but I downloaded it from Adobe and it is the same. What programming language are you using? Have you got some sample code?

Sam Brightman
  • 2,831
  • 4
  • 36
  • 38
  • I'm using c#. I've created a Windows Forms UserControl, where the AxAcroPDFLib.AxAcroPDF control is hosted. This Windows Forms UserControl is used within a WindowsFormsHost in a WPF application. Which part do you want to see sample code from? – Krimson Sep 08 '09 at 15:07
  • Where the mystery return code is obtained - the call and the result, and the difference between version 8 and 9. – Sam Brightman Sep 22 '09 at 09:49
0

Not at all! The version of Acrobat doesn't influence in the way AxAcroPDF control works. You must debug to see what happens

Iralda Mitro
  • 7,190
  • 5
  • 24
  • 29