Home > database >  Ole control pdfview. Ocx how to open the PDF file
Ole control pdfview. Ocx how to open the PDF file

Time:09-17

Requirements: displays the PDF file, and you can print,
Process: pb9.0 form to join ole controls Pdfview Control, ole_1. Object. The open (), ole_1. Object. FileOpen () is wrong, can not open the PDF file
Problem: use Pdfview Control to open the PDF $\ \ 192.168.93.33 \ folder of PDF file, grammar is how, how do you write the code? Ask for advice

CodePudding user response:

Try the openfiledlg

CodePudding user response:

Or setfilename

CodePudding user response:

Use ole_1. Object. Setfilename="E: \ PDF \ FG0829001100 PDF" and ole_1 object. Openfiledlg (" E: \ PDF \ FG0829001100 PDF "), an error:

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
The original concept Application Execution Error (R0036)
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
The Application terminated.

Error: the Name not found accessing external object property setfilename at line 18 in the open event of object w_tzbrowser_pdf.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sure
--------------------------

CodePudding user response:

reference crishadow reply: 3/f
with ole_1. Object. Setfilename="E: \ PDF \ FG0829001100 PDF" and ole_1 object. Openfiledlg (" E: \ PDF \ FG0829001100 PDF "), an error:

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
The original concept Application Execution Error (R0036)
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
The Application terminated.

Error: the Name not found accessing external object property setfilename at line 18 in the open event of object w_tzbrowser_pdf.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sure
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --


Browse in pb (menu) to find the object, take a look at the ole's methods and properties

CodePudding user response:

Click on the browser in pb - ole the item below, the program automatically shut down

CodePudding user response:

reference 5 floor crishadow reply:
pb in click on the browser - ole the item below, program automatically closed


If installed pay treasure, pay treasure to first uninstall, generally it is for this reason

Doubt your window controls also wrong, delete, add a try again

CodePudding user response:

Include a VB, use the object browser to have a look at the controls
  • Related