1. Richard Carrier
  2. PowerBuilder
  3. Thursday, 21 December 2023 19:04 PM UTC

I'm in the process of developing a system using the latest release that will open a PDF with fillable fields. The form field data is loaded and unloaded to the database using an fdf file sent to a store procedure and parsed out. 

I'm really looking to only open this PDF and have a nice interface so that I can control the creation of the fdf when they click save either on the "controls" menu or my menu.

 

The user wil fill in the data, click a save button, I will export the data and populate a table. Then when its opened I will load the pdf from the database

 

Right now I have it working using the ole_view Web Browser and a .navigate will open the file and has a nice context menu. But its slow and seems clunky.

 

Should I be using the new Web Browser Control v2 that is in the latest version or does it not matter ?

 

Thanks in advance 

Richard

Richard Carrier Accepted Answer Pending Moderation
  1. Thursday, 21 December 2023 23:30 PM UTC
  2. PowerBuilder
  3. # 1

firgured it out and the web browser conrol is signficantly faster. 

Comment
  1. Chris Pollach @Appeon
  2. Friday, 22 December 2023 00:42 AM UTC
That's awesome news Richard!

Nice to hear that the performance is also faster. ;-)
  1. Helpful
There are no comments made yet.
Richard Carrier Accepted Answer Pending Moderation
  1. Thursday, 21 December 2023 23:20 PM UTC
  2. PowerBuilder
  3. # 2

I do have a question. On the OLE you navigate and then pass the pdf name. I assume its called URL in web browser control but what is the property or the method to open the pdf file. Any help appreciated.

Thanks

Comment
  1. Chris Pollach @Appeon
  2. Friday, 22 December 2023 00:40 AM UTC
Hi Richard;

You would use the Web Browser's Navigate() method for that.

FYI: https://docs.appeon.com/pb2022/powerscript_reference/Navigate_func.html

HTH

Regards ... Chris
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 21 December 2023 19:14 PM UTC
  2. PowerBuilder
  3. # 3

Hi Richard;

  That is up to you if you have the time to test your "fill-able" PDF with the new built-in PB based Web Browser control. However, I would not bother testing this unless you are using the latest PB 2022 R2 release. R2 updated the browser "engine" (under the hood) to use the new WebView2 Microsoft engine. This is more powerful than previous releases of PB that used the Chromium engine (under the hood) to render web content.  HTH

Regards ... Chris

Comment
  1. Roland Smith
  2. Thursday, 21 December 2023 20:07 PM UTC
The best part is that WebView2 is built into Windows 10/11. It is Chromium based so should support everything that Chrome does.
  1. Helpful
  1. Richard Carrier
  2. Thursday, 21 December 2023 21:21 PM UTC
Yes I'm on the latest and will give it a try. Thanks Roland and Chris !
  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.