- André Monz
- PowerBuilder
- Wednesday, 23 November 2022 07:28 AM UTC
Hi Community,
we use a third party OLE-Control to sign PDF-Documents, what basically works well.
I have trouble using a particular method of the control, i can't find the correct datatype in Powerscript for the argument searchresult/pstruct .
Every call of olecontrol.object.SearchString(....) ends up in
"Error calling external object function searchstring ...".
The method returns a structure array with the positions of the search string in a PDF Document.
I have sample code from the Author of the Control, but i have no idea, how i can declare the "ref pstruct" part in Powerscript.
Can someone help me with this?
Regards,
André
Edit: 5.12.2022
I have not found a datatype to use the desired method.
But after inspecting die ActiveX-Control with the PB-Objectbrowser i found a undocumented method with less arguments (just the searched string)
which returns the correct datatype (any array) .
But also with the return value of this method
the original method cannot be called.
Strange,but it doesn't matter now.
Thank you for help.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.