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
Retrieving the list of objects available in a document
-
- Posts: 4
- Joined: Thu May 06 2004
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")
oleobject ole_1
oleobject lole[]
ole_1 = create oleobject
ole_1.ConnectToNewObject("PdfCreactivex.PDFCreactiveX")
lole = ole_1.ObjectAttribute("Pages[1]", "Objects")