Retrieving the list of objects available in a document

If you are a Power Builder developer and have any questions about using our products from Power Builder here is the place to post them.
Post Reply
Patrick
Posts: 2
Joined: Wed Oct 19 2005
Location: Minneapolis, MN

Retrieving the list of objects available in a document

Post by Patrick » Wed Oct 19 2005

Could someone please show me how to get the list of objects in the PDF document in Powerbuilder? Here is the code I'm trying and it blows up when I call the objectattribute function.

oleobject lole[]
Integer i
String ls_text

lole[] = ole_1.object.objectattribute("Pages[1]","Objects")

FOR i = 1 to Upperbound(lole[])
ls_text = ls_text + lole.attribute("name") + "~n~r"
NEXT

MessageBox("",ls_text)

Thanks

Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan » Thu Oct 20 2005

Hello,

I changed my system and didn't install Powerbuilder yet to be able to verify your code.

But i guess the issue is not related to the code itself, which version of the PDF Creator are you using?

Please try the latest version 2.0e

Thanks.

Patrick
Posts: 2
Joined: Wed Oct 19 2005
Location: Minneapolis, MN

Post by Patrick » Thu Oct 20 2005

I just downloaded the demo version yesterday. When I run the PDF Creator application, that says that I am running 2.0e.

The version of Powerbuilder I am running is 9.0.1 build 7204.

Thanks for you help!

cluzhoxsie
Posts: 4
Joined: Thu May 06 2004

Post by cluzhoxsie » Fri Jul 27 2007

This problem also occurs in Powerbuilder 10.5.1 build 6565. It only occurs if using the visual control. It does not occur when using the non-visual control as shown below.

oleobject ole_1
oleobject lole[]

ole_1 = create oleobject
ole_1.ConnectToNewObject("PdfCreactivex.PDFCreactiveX")

lole = ole_1.ObjectAttribute("Pages[1]", "Objects")

Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan » Tue Jul 31 2007

Hello,

Which version of the PDF Creator are you using?

This post is originally created in 2005, the version that was available at that time is currently old.

Post Reply