1. Leonardo Malinowski
  2. PowerBuilder
  3. Wednesday, 10 January 2024 20:58 PM UTC
Hello, I have a problem with the PrintAsPDF function of the WebBrowser object in version 2022. 
I am passing it a url where a PDF is hosted and then making the PrintAsPDF and saving it in a
local directory, but as long as the format of the hosted file is .PDF, I have a pop-up window
where it tells me to choose the printer and the directory, but that it should directly save
the file in the path that I am passing to the function. This problem started in the version
of power builder 2022, previously it worked OK. Someone help me please.
Thank you!

The code is something like this, quite simple:


wb_docs_adj.navigate(as_url)-- valid URL

ls_pdfpath = (ls_path) --valid path

li_rtn = wb_docs_adj.PrintAsPDF(ls_pdfpath)

this is the pop-up




There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.