1. Thorsten Kummer
  2. PowerBuilder
  3. Friday, 11 June 2021 06:27 AM UTC

Hello,

 

I am using a webbrowser control on a tabpage.

I am using the navigate(..) function to load that URL.

The page displays a PDF, has other controls for downloading the PDF etc.

Those downloading controls do not work at all. I can click them, the react (enable/disable etc.) but no download happens.

 

When opening the same page with a call to  iinet_base.HyperlinkToURL(sle_url.text) the download is possible.

Of course here no webbrowser control is involved.

 

What could be the reason ?

 

Thanks in advance

Thorsten

 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 11 June 2021 17:58 PM UTC
  2. PowerBuilder
  3. # 1

Hi Torenston;

  There were updates and new features added to the internal PB Web Browser in both the R2 and R3 releases. What version (release & build of PB are you using?

Regards ... Chris

Comment
There are no comments made yet.
Arnd Schmidt Accepted Answer Pending Moderation
  1. Sunday, 13 June 2021 13:27 PM UTC
  2. PowerBuilder
  3. # 2

Hi Thorsten,

eventually your download already worked.

Have you checked the download directory and the downloadingstart event?

https://docs.appeon.com/pb2019r3/pbug/ch04s05.html#d0e24171

https://docs.appeon.com/pb2019r3/powerscript_reference/ch02s03s35.html

hth

Arnd

Comment
There are no comments made yet.
Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Monday, 14 June 2021 01:37 AM UTC
  2. PowerBuilder
  3. # 3

Hi Torenston,

When clicking the ‘Download’ button, the pdf file will be downloaded automatically. It will trigger the downloadingstart and downloadingstatechanged event. The filename argument in downloadingstart will return the full file path
of the downloaded file, for example:
C:\Users\Appeon\AppData\Local\Temp\pbcefdownload\datawindow.pdf

You can use WebBrowserSet/WebBrowserGet to set/get the download path.

Regards,
ZhaoKai

Comment
There are no comments made yet.
Thorsten Kummer Accepted Answer Pending Moderation
  1. Monday, 14 June 2021 06:54 AM UTC
  2. PowerBuilder
  3. # 4

Dear all,

 

thanks for your answers. The problem is solved:

 

Of course the download happened, the file was downloaded "silently" into the default download directory. i was not aware of that because there was no info shown the same way you normally download a file within the Chrome browser.

 

Bit in the end the download worked. I will use the appropriate events to notify the user.

Thanks for your help.

Thorsten

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.