PDF Reader control (Windows, C#) - How to get current page number?
I built a six-panel PDF display app, with 6 instances of the PDF Reader COM control on a Windows Form, and everything works great.
When the program loads, it reads a settings file to open the last set of PDF files so the user can continue where he left off.
I use SetCurrentPage so the user can specify what page to start each PDF on. But when the app exits, I need to SAVE the new current page so the user doesn't have to do this manually.
In order to restore the last page in each PDF, I have to find out the current page of the PDF Reader controls.
The control exposes a .setCurrentPage method, but nothing to GET the current page number. The exposed methods and properties don't seem to provide any access to the current page number.
Is there a way to do this?
Two DLL's are resident in the project: AxInterop.AcroPDFLib.dll and Interop.AcroPDFLib.dll, if that's relevant.
Thanks in advance,
Allen
