1. Naveen M R
  2. PowerBuilder
  3. Monday, 4 May 2020 13:00 PM UTC

Is there any way to display the pdf in datawindow?

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 4 May 2020 18:01 PM UTC
  2. PowerBuilder
  3. # 1

Hi Naveen;

   The only way for a DWO to do this, is to use an OLE Type DW that links over to a PDF Viewer.

   In the new PB 2019R2 release though, there is a new Web Browser control where you could inject an HTML file that has a reference to the PDF file and then have the Web Control display it that way.

   You can also use the IE Active-X control to display web pages as well. So the above technique would work with this alternative control as well.

   Externally, you can link over to the default web browser for PDF viewing using the PB based built-in INET object and the HyperLinkToURL() command.

HTH

Regards ... Chris

Comment
  1. Roland Smith
  2. Monday, 4 May 2020 18:17 PM UTC
The new control can bring up a PDF file directly, no need for an HTML wrapper.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 4 May 2020 18:32 PM UTC
Only if available via a URL. Otherwise, an HTML wrapper is required when using a "local" PDF file.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.