1. himanshi tayal
  2. PowerBuilder
  3. Thursday, 8 February 2024 12:03 PM UTC

We have migrated pb from 2009 to PB 2019 .

And while testing one flow to show PDF then we are getting null pointer reference.

image

Code which we use is below :

olewebbrowser.object.navigate("C:\Users\suraksw1\AppData\Local\Temp\30\amdDC31.pdf") 

oleobject i_pdfFileObject

i_pdfFileObject = olewebbrowser.object.Document

i_pdfFileObject.setCurrentPage(1)

and its failing at i_pdfFileObject.setCurrentPage(1)

 

Do we support navigate or oleobject in PB 2019 ?

Andreas Mykonios Accepted Answer Pending Moderation
  1. Thursday, 8 February 2024 13:11 PM UTC
  2. PowerBuilder
  3. # 1

Hi.

Here it works fine. I place a Microsoft Web Browser control on a window. Have a button with the following code:

ole_1.object.navigate("C:\Downloads\myTest.pdf") 
ole_1.object.Document.setCurrentPage(5)

And it loads at page 5...

Andreas.

Comment
  1. Andreas Mykonios
  2. Thursday, 8 February 2024 13:13 PM UTC
Forgot to mention: tested in PB 2019 R3 (2728) and PB 2022 R3.

Andreas.
  1. Helpful 1
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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.