Step 1:
To begin, first construct forms with whatever name you
choose. in my example, I made a PDFOPEN form.
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.
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.
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).
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');
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:
If you have any problem so download the file to click on "Download".
I hope it's helpful for you. If you have any queries, don't hesitate to contact me.
0 comments:
Post a Comment
If you have any doubts, please let me know. I will help you.