The webbrowser control can display a PDF, if the PDF viewer you install also installs an IE plugin, and that's the case with many PDF viewers. To explain, why it won't work with the image control is simple: PDF is not a picture format at all, and even if it would be, you can only display some picture formats with the image control. VFP supports BMP, JPG, GIF, PNG and TIF, perhaps I forgot some more, but those are the mostly used picture formats anyway. PDF is a document format, like DOC, and you also can't expect an image control to display a word doc. I have successfully used an OLE Bound Control on a form to display a PDF.
Out of Microsoft Visual Foxpro (VFP), I can print a report to the printer “PDFCreator”. I determine the PDF Creator output directory for the pdf output file in the PDF creator In VFP, a print command looks like: REPORT FORM c: myform TO PRINTER whereby the PRINTER is set to the printer PDFCreator.
![Visual Foxpro Report Form To Pdf Visual Foxpro Report Form To Pdf](http://www.ml-consult.co.uk/foxst31.jpg)
I set its ControlSource to the name of a General field in a cursor created just for this purpose. You can also adjust how the image fits inside the control by setting its Stretch property. Here's an example of the basic code:. In the form's Init the cursor is created. CREATE CURSOR csrForOLE (Image G) APPEND BLANK. Then for each PDF to be displayed.
CDocName = 'SomeDocument.PDF' APPEND GENERAL Image FROM (cDocName) LINK. To clear the display. APPEND GENERAL Image.
Attention, Internet Explorer User Announcement: Jive has discontinued support for Internet Explorer 7 and below. In order to provide the best platform for continued innovation, Jive no longer supports Internet Explorer 7. Jive will not function with this version of Internet Explorer.
Please consider upgrading to a more recent version of Internet Explorer, or trying another browser such as Firefox, Safari, or Google Chrome. (Please remember to honor your company's IT policies before installing new software!).