472,139 Members | 1,389 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,139 software developers and data experts.

view pdf in oracle forms

hi im using oracle forms 6i.
i need to view a pdf in oracle forms runtime window itself
the pdf name will differ depending on the previous parameter.
i need to show the pdf in an object in the canvas.

to explain roughly

i need an object/box in the canvas, in which the clients can view a pdf.
the pdf should not open in new window, so that i can restrict the user to do save as/print....
Dec 28 '09 #1
4 18805
2,367 Expert 2GB
Try this:

Expand|Select|Wrap|Line Numbers
  3. a varchar2(100) := 'C:\';
  4. BEGIN
  5. AppID := DDE.App_Begin('C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe '||a||:your_text_item,DDE.App_Mode_Maximized);
  6. exception when others then 
  7. message(sqlerrm(sqlcode));
  8. END;
Dec 28 '09 #2
thanks for the reply dude...

but i used this code already.

this will open the pdf separately. i dont want tat.

what i need is that i have to open the pdf files in the form itself [embedded in any object]
Dec 29 '09 #3
2,367 Expert 2GB
Check this:


SHOW_DOCUMENT(url, target);


Specifies the URL and target window of a Web application.


url Datatype is VARCHAR2. Specifies the Uniform Resource Locator of the document to be loaded.

target Datatype is VARCHAR2. Specifies one of the following targets:

_SELF Causes the document to load into the same frame or window as the source document.

_PARENT Causes the target document to load into the parent window or frameset containing the hypertext reference. If the reference is in a window or top-level frame, it is equivalent to the target _self.

_TOP Causes the document to load into the window containing the hypertext link, replacing any frames currently displayed in the window.

_BLANK Causes the document to load into a new, unnamed top-level window.


Can only be used from within a form run from the Web.


Expand|Select|Wrap|Line Numbers
  2. BEGIN 
  3.   Web.Show_Document(‘http://www.abc.com’, ‘_self’); 
  4. END; 
Dec 29 '09 #4
that similar to html codings rite?

but we dont use the web appln.

we use only the windows appln for all other purposes.

anyway thanks for the effort. if you have any other method regarding this, pl intimate me.

thanks a lot.
Dec 29 '09 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Azhar Bilgrami | last post: by
2 posts views Thread by Thomas Kindermann | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.