Martin Yergeau Posted December 14, 2020 Posted December 14, 2020 Hi cummunity, I have the below piece of code that does work as expected using IE but with Edge since the chrominium version, it doest. It is used to feed an hyperlink and when clicked, a blank page does open but the expected pdf file dont. When I test (copy/paste) the url in Edge, the pdf file opens. Same if I use GC or any other modern browser. What am I missing with the new chrominium version 20201212.png765112 3.23 KB
Manoj Chaurasia Posted December 15, 2020 Posted December 15, 2020 Hi Martin I was successful with using url=http://servername/approot/logo_img/doc/filename.pdf
Martin Yergeau Posted December 16, 2020 Author Posted December 16, 2020 Thanks Chuck I have uploaded two sample files from Public folder : SampleDocHyperlink which is the html code that use the below SampleOpenPDF Doc which is the used fex to open a pdf file Can you test with the below You will have to put a real servername in SampleOpenPDF Doc and reference to a existing file name. I will sure that you run it the way I do. SampleDocHyperLink.txt (4.6 KB) SampleOpenPDF Doc.txt (256 Bytes) I just found strange that if I test the generated url it does work but from the clicked button, it doesnt
David Briars Posted December 16, 2020 Posted December 16, 2020 For testing, consider taking the meta tag out of the equation, and put your URL in the onload property of the body tag: -HTMLFORM BEGIN <html> <head> </head> <body onload="window.location = 'http://ibi.com/'"> </body> </html> -HTMLFORM END
Martin Yergeau Posted December 16, 2020 Author Posted December 16, 2020 Thanks David, but this dont work. It does not open the expected pdf file.
David Briars Posted December 16, 2020 Posted December 16, 2020 OK, sounds like you successfully eliminated an issue with the meta tag. Network trace reveal anything Is browser blocking redirects
Martin Yergeau Posted December 16, 2020 Author Posted December 16, 2020 I may have misunderstand the test you want me to perform. If I use your sample it does work : ibi.com page does open. But if I put my url (instead of http://ibi.com/) to the server pdf file location it do not open the pdf file. The only error that I finally found is : Not allowed to load local resource And seems to be the problem that I am stuck with months with modern browser. I need to be able to open a file located on our servers.
Manoj Chaurasia Posted December 16, 2020 Posted December 16, 2020 Martin I tried your test and with the UNC URL you provided it does not work. If I change it to a valid WebFOCUS http URL it works fine. If I just use your UNC URL directly in a browser it works fine also. You probably should report it to techsupport.
Martin Yergeau Posted December 16, 2020 Author Posted December 16, 2020 Thanks Chuck I will open a case
David Briars Posted December 16, 2020 Posted December 16, 2020 MartinY: code that does work as expected using IE but with Edge since the chrominium version, it doest The latest Edge/Chromium versions have IE Mode. Does your version have the IE Mode option Is it on I didnt fully realize that you are calling the pdf via UNC. If you can convert to a URL, that might be advantageous.
Martin Yergeau Posted December 16, 2020 Author Posted December 16, 2020 david.briars: If you can convert to a URL, that might be advantageous. Sorry but I am not familiar with this. How will you do that
David Briars Posted December 16, 2020 Posted December 16, 2020 Sorry but I am not familiar with this. How will you do that Are your .pdfs stored in a WebFOCUS application folder If so they should be accessible from the web. In this sample a .pdf is stored within an application folder called work. Running from WFAS, on a local reporting server. approot is a standard web context, that your site may also use. image.png1326526 68.2 KB If your .pdfs are stored on a different web server, then your URL value would change accordingly.
Manoj Chaurasia Posted December 16, 2020 Posted December 16, 2020 Martin My initial reply basically said the same thing but I didnt provide the whole fex. html.png1228447 19.8 KB
Martin Yergeau Posted December 17, 2020 Author Posted December 17, 2020 Thanks David & Chuck It is working. Not exactly the way I would, but since it works, Im good
Martin Yergeau Posted November 24, 2021 Author Posted November 24, 2021 To make it working correctly, you need to have a virtual IIS directory that point to the folder where reside the files (on same server as the ReportingServer) and then point to this virtual directory instead.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now