1. Rick Domogalik
  2. PowerBuilder
  3. Friday, 3 April 2020 13:14 PM

I want to add a document preview to my application.  I currently have an app that shows a list of various document types in a list.  These documents could be, but are not limited to: Word Docs, Excel Docs, PowerPoints, PDFs and Images(various types). 

Currently if the user double clicks the item, it will open in its native application and the user can edit and save.  I would like to implement a preview window to the right of the document list, so that when the user single clicks on the item in the list, it will preview in the window on the right.

I played a little with inserting an ole object, but this seems really clunky.  I have only done this with PDFs and I assume I would have to change the ole object based on what file type is selected to an appropriate ole object control based on type.  

Is there a way to just generically pop a preview with no edit capabilities, just basic scroll up/dn view of an external file?

 

Thanks

 

 

Rick

Bjarne Anker Accepted Answer Pending Moderation
  1. Monday, 11 May 2020 07:48 AM
  2. PowerBuilder
  3. # 1
0
Votes
Undo

Which runtime DLL's is required for the new web browser control?

I've added pbwebbrowser190.dll to our distribution, but it will not load the local htm file containing a logo.

Works just fine with the old OLE control.

 

Bjarne

Comment
Ok, that'a lot of files I don't have.

Where can I find them?

Not in the Shared folder. GAC_32 og GAC_MSIL
  1. Bjarne Anker
  2. Monday, 11 May 2020 09:01 AM
I have them in C:\Program Files (x86)\Appeon\Shared\PowerBuilder\pbcef190
  1. René Ullrich
  2. Monday, 11 May 2020 09:18 AM
Found it. Thanks.

Now the application just crashes.



I think I'll revert back to the old OLE control for now.
  1. Bjarne Anker
  2. Monday, 11 May 2020 09:22 AM
There are no comments made yet.
Daryl Foster Accepted Answer Pending Moderation
  1. Monday, 6 April 2020 04:23 AM
  2. PowerBuilder
  3. # 2
0
Votes
Undo

Hi Rick,

 

If you are after a paid solution then Oracle's Outside In ActiveX component will do what you need.  We license it for our internal Powerbuilder apps and have been using it for about 10 years.  I'm not sure of the cost of licensing if you are selling your app, but it might be something to consider.

 

https://docs.oracle.com/en/middleware/standalone/outsidein/8.5.4/viewer-for-activex.html

 

 

Comment
There are no comments made yet.
Marco Meoni Accepted Answer Pending Moderation
  1. Sunday, 5 April 2020 06:35 AM
  2. PowerBuilder
  3. # 3
0
Votes
Undo

Hi Rick,

did you try the new WebBrowser control?

It works great for majority of file types. Place it on your window and then just

wb_1.navigate(is_someurl) // can be web URL or local file

Best,

.m

Comment
What a Marco mentioned is in PowerBuilder 2019 R2, which was released April 3, 2020. https://docs.appeon.com/appeon_online_help/pb2019r2/whats_new/ch01s05.html
  1. Armeen Mazda @Appeon
  2. Sunday, 5 April 2020 06:44 AM
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.