Tuesday, January 25, 2022

How to open PDF file in oracle forms

how to open PDF file in oracle forms

Step 1:

To begin, first construct forms with whatever name you choose. in my example, I made a PDFOPEN form.

how to open PDF file in oracle forms

Step 2:

The second step is to manually generate the DATA BLOCK. BLOCK3 is the name of the block that I made in my situation.

how to open PDF file in oracle forms

Step 3:

The next step is to design a button. only because I have selected the option to open a PDF document. It is called PUSH_BUTTON4 in my example, and it has the title OPEN PDF as its label.

how to open PDF file in oracle forms

Step 4:

The fourth step consists only in the creation of the trigger on the button. The trigger is identified by the term WHEN-BUTTON-PRESSED. Choose the button and press F11, or right click on the button and select smarttrigger from the context menu (optional).

how to open PDF file in oracle forms

Step 5:

After that, the WHEN-BUTTON-PRESSED trigger will open the window. Copy and paste the code I provided below.

In this code you just need to change the path of your PDF file. Where your file will be located in my case. It’s “E:\Sign.pdf”

host ( 'cmd /C start E:\Sign.pdf');

how to open PDF file in oracle forms

Step 6:

All of the steps have now been completed correctly. By using Ctrl + R, you may Run the form. And click the button. 

Output:

how to open PDF file in oracle forms

If you have any problem so download the file to click on "Download".

Download

I hope it's helpful for you. If you have any queries, don't hesitate to contact me.

Name : Muhammad Sahal Qasim
E-mail : s.m.sahal789@gmail.com
Thank you.

0 comments:

Post a Comment

If you have any doubts, please let me know. I will help you.