1. Alexander Skorokhodov
  2. PowerBuilder
  3. Friday, 1 February 2019 23:59 PM UTC

I use a msoft web browser control to access files on the web.

it works fine with non-secured sites, for example, the command:

 

 l_file_name =  'http://50.26.26.26/User_Docs/help_file.pdf'

w_web_browser.ole_1.object.Navigate( l_file_name )

 

works just fine and loads help_file.pdf to the control.

however, trying to access a file from a secured site

 

 l_file_name =  'https://50.26.26.26/User_Docs/help_file.pdf'

w_web_browser.ole_1.object.Navigate( l_file_name )

 

displays an error

The website declined to show this webpage

am I missing some kind of setup here?

please advise

thanks all/

 

sasha

 

 

 

Alexander Skorokhodov Accepted Answer Pending Moderation
  1. Saturday, 2 February 2019 18:13 PM UTC
  2. PowerBuilder
  3. # 1

Marco:

I found the answer here, the file names have to be exact

and match the case

so, the file

 'https://www.appeon.com/sites/default/files/pictures/Downloads/PowerBuilder_2017R3_datasheet.pdf'

is being loaded fine, but loading file

 'https://www.appeon.com/sites/default/files/pictures/Downloads/Powerbuilder_2017r3_datasheet.pdf'

 

spits out an error: file cannot be found

its a bit awkward, but at least I know the issue now.

 

thanks a lot, you gave me a good hint here!

 

sasha

Comment
There are no comments made yet.
Alexander Skorokhodov Accepted Answer Pending Moderation
  1. Saturday, 2 February 2019 17:59 PM UTC
  2. PowerBuilder
  3. # 2

Marco:

thank you for the answer.

unfortunately, the problem seems to be with the https:// web site,

that I m trying to access, not with the msoft web browser control.

I was able to bring up your document

https://www.appeon.com/sites/default/files/pictures/Downloads/PowerBuilder_2017R3_datasheet.pdf

in my application just fine.

so, I made a wrong assumption, and do not even know whats the real issue here.

will keep looking.

best regards.

sasha

 

 

 

Comment
There are no comments made yet.
Marco Meoni Accepted Answer Pending Moderation
  1. Saturday, 2 February 2019 15:51 PM UTC
  2. PowerBuilder
  3. # 3

Hello Sasha,

please check what viewer is associated to PDF extension. The Web browser control (which is based on MS IE 7) relies on the default PDF viewer.

On my machine I am using Foxit Reader and PDF files open just fine from secured Web page.

For example:

https://www.appeon.com/sites/default/files/pictures/Downloads/PowerBuilder_2017R3_datasheet.pdf

is displayed correctly, see attached picture.

Best,

.m

 

Attachments (1)
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.