By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,375 Members | 1,111 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,375 IT Pros & Developers. It's quick & easy.

view pdf in oracle forms

P: 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
Share this Question
Share on Google+
4 Replies

Expert 100+
P: 2,367
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

P: 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

Expert 100+
P: 2,367
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(‘’, ‘_self’); 
  4. END; 
Dec 29 '09 #4

P: 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.
Dec 29 '09 #5

Post your reply

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