- Gunnar Gisleberg
- PowerBuilder
- Thursday, 15 February 2024 07:42 AM UTC
Hi
I am developing functinality to convert .jpg to pdf using webbrowser to open the file and save as pdf.
The problem is make script creating the web browser windows wait until the browser is finished opening the file save the pdf.
the webbrowser automatically saves the on naviagationcompleted event the PrintAsPDF method, but this event is not handled when running from a script function
Is there a solution to wait until a window has completed event handling when called from a script function?
When i run the debugger and breaks the browser finish ok - not when i run without debugger and using a very long sleep. The browser events does not complete.
Gunnar Gisleberg
Locus Solutions AS
Norway
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.