Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OLE object in datawindow - error accessing external object property

Status
Not open for further replies.

yaho3

Technical User
Mar 2, 2012
3
0
0
SK
Please help me, I can't solve this error message in Powerbuilder v10.5. I would like to display pdf documents from saved links in datawindow.
I insert OLE object ole_1 (Acrobat acrobat document) to datawindow dw_1, dw_1 is DataObject in window w_datawindow_drawing. If I run this I get error message: error accessing external object property...
I try inserting OLE object to w_datawindow_drawing without problems, only when I insert to datawindow have it. Where I create mistake?
Thanks.

//Here is script:

open (w_datawindow_drawing)
string pdf_link
integer result
pdf_link = "c:\product.pdf"
result = w_datawindow_drawing.dw_1.object.ole_1.LinkTo( pdf_link )
 
Have you tried using the .Object for the OLE object itself? For instance, using your example, it would look like:

w_datawindow_drawing.dw_1.Object.ole_1.Object.LinkTo( pdf_link )
 
Thanks, I haven't see error message now. I think pdf document is linked ok, but I didn't see change in datawindow...Must be refreshed datawindow?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top