Error: Invalid number of parameters
Hello,
I am working on inter-application communication using OLE Automation APIs.
I want to get the page number on which text has been selected by user.
For this, I am using the function GetPage() of the class CAcroPDTextSelect.
I have done with all the initialization part.
Here is my code snippet:
CAcroPDTextSelect *textSelect;
COleException e;
textSelect->AttachDispatch(m_pAcroApp->GetActiveDoc(), TRUE);
long pageNumber = textSelect->GetPage();
But when I execute this function, I am getting below error:
Invalid number of parameters
Please help. This is real urgent!
Best regards,
Navnath.
