G
Guest
I have placed an ActiveX PDF control (the Adobe Reader OCX) on a .Net Windows
form and manually set the "src" property to "c:\myfolder\1234.PDF". The
control displays this file when the application is run. So far so good.
However, when I add a button to change the src file (to be displayed) with a
single line of code in the button click event as shown below:
AxPdf1.src = "c:\myfolder\1235.PDF"
....I get the following error:
An unhandled exception of type 'System.NullReferenceException' occurred in
mscorlib.dll
Additional information: Object reference not set to an instance of an object.
So what am I doing wrong?
form and manually set the "src" property to "c:\myfolder\1234.PDF". The
control displays this file when the application is run. So far so good.
However, when I add a button to change the src file (to be displayed) with a
single line of code in the button click event as shown below:
AxPdf1.src = "c:\myfolder\1235.PDF"
....I get the following error:
An unhandled exception of type 'System.NullReferenceException' occurred in
mscorlib.dll
Additional information: Object reference not set to an instance of an object.
So what am I doing wrong?