469,332 Members | 7,043 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,332 developers. It's quick & easy.

view pdf in oracle forms

13
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 18226
amitpatel66
2,367 Expert 2GB
Try this:

Expand|Select|Wrap|Line Numbers
  1. DECLARE
  2. AppID PLS_INTEGER;
  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;
  9.  
Dec 28 '09 #2
cmuraz
13
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
amitpatel66
2,367 Expert 2GB
Check this:

Syntax:

SHOW_DOCUMENT(url, target);

Description:

Specifies the URL and target window of a Web application.

Parameters:

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.

Restrictions:

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

Example:

Expand|Select|Wrap|Line Numbers
  1.  
  2. BEGIN 
  3.   Web.Show_Document(‘http://www.abc.com’, ‘_self’); 
  4. END; 
  5.  
  6.  
Dec 29 '09 #4
cmuraz
13
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.
muthu
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
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by haryvincent176 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.