Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Want toDisplay pdf on web server from forms in browser without Address(URL)

52337Oct 26 2007 — edited Oct 29 2007
I want to be able to display a pdf document in a users brower.
The pdf document is available on the server.
The problem is that I don't want to have the Address(URL) and menu
of the browser display.

I can display the pdf document fine using:
DECLARE
v_url varchar2(400);
BEGIN
v_url :='https://myserver.com/'||:BLOCK1.filename;
web.show_document(v_url, '_blank');
END

My question is how do I get it to display in the browser without the Address(URL) and menu? (we could assume Internet Explorer for simplcity if required).

I also tried to use something like:
TempHTMLFile := Text_IO.Fopen('C:\oracle\...\htdocs\tempfile.html','W');
Text_IO.Putf(TempHTMLFile, '<html> <head> <title> TEST Documents for Users </title> </head>
<frameset onload="window.focus()" rows="100%,*" border="0" frameborder="0" framespacing="0">
<frame name="" src=');
Text_IO.Putf(TempHTMLFile,'"https://myserver.com/'||:BLOCK1.filename||'"');
Text_IO.Putf(TempHTMLFile,'</frameset></html>');
Text_IO.Fclose(TempHTMLFile);
Web.show_document('https://myserver.com/tempfile.html', '_blank');

With this approach I used Text_IO to create an html file, and then opened
that file. With that approach I could open the pdf in that window or a new window. But could not modify the first window because already open and if opened a second window the original window stayed open in the background.

Not sure if
(1) there are other parameters to do what I want with web.show_document
(2) there is an HTML way two do this if I create a temphtml file with the right HTML code, or
(3) maybe I need to do it in Java with a call to a java bean...?

Thanks for your help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 26 2007
Added on Oct 26 2007
9 comments
627 views