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\12 34.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\12 35.PDF"
....I get the following error:
An unhandled exception of type 'System.NullRef erenceException ' occurred in
mscorlib.dll
Additional information: Object reference not set to an instance of an object.
So what am I doing wrong?
--
Andy, MCDBA
form and manually set the "src" property to "c:\myfolder\12 34.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\12 35.PDF"
....I get the following error:
An unhandled exception of type 'System.NullRef erenceException ' occurred in
mscorlib.dll
Additional information: Object reference not set to an instance of an object.
So what am I doing wrong?
--
Andy, MCDBA
Comment