PowerBuilder and handles to objects

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
greg.rusak@mustimuhw.solutions
User
Posts: 31
Joined: Thu Sep 20, 2018 12:45 am

PowerBuilder and handles to objects

Post by greg.rusak@mustimuhw.solutions »

I'm running into a situation I don't understand. In the following code snippet, I'm able to successfully get a handle to IPXC_AcroForm, but not to Info or Pages:

Code: Select all

lb_result = ole_tracker_pdf.Object.SetLicKey(ls_key)
ole_tracker_pdf.object.OpenDocFromPath(this.is_temp_file, lole_null)
lole_frame =  ole_tracker_pdf.object.frame
lole_inst = ole_tracker_pdf.object.inst
lole_doc = ole_tracker_pdf.Object.doc
lole_coredoc = lole_doc.CoreDoc

// ** This works **
IF lole_coredoc.HasAcroForm THEN
	// The following line does create a pointer to IPXC_AcroForm and stores it in lole_AcroForm
	lole_AcroForm = lole_coredoc.AcroForm
END IF

// ** This doesn't work **
// The following line does NOT store a pointer to IPXC_DocumentInfo. Why? lole_info = null
lole_info = lole_coredoc.Info

// Same with Pages. Can't get a pointer to it?
lole_pages = lole_coredoc.Pages
Any ideas what I still need to do to get a handle to those? Thanks

Greg
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: PowerBuilder and handles to objects

Post by Sasha - Tracker Dev Team »

Hello Greg,

Can you please try this in the FullDemo C# application? Can be something related to your language.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply