PDF Creator and Delphi

If you are a Delphi developer and have any questions about using our products from Delphi here is the place to post them.
Post Reply
durban
Posts: 26
Joined: Tue Oct 01 2002
Contact:

PDF Creator and Delphi

Post by durban » Sun Nov 02 2003

This code is not working ? Can you help me ? Thanks
The objective is to access to all the objects in the page with Delphi.

Tanks
Didier

var
i : Integer;
Tab : OleVariant;
Objet : OleVariant;
begin
pdf.ReportState:=acReportStateDesign;
Tab:=pdf.ObjectAttribute['Pages[1]','Objects'];
// showmessage(inttostr(VarArrayLowBound(Tab,1)));
// showmessage(inttostr(VarArrayHighBound(Tab,1)));
for i := VarArrayLowBound(Tab,1) to VarArrayHighBound(Tab,1) do
begin
Objet:=Tab;
// here an error occur
showmessage(Objet.Attribute('Name'));
end;
end;

durban
Posts: 26
Joined: Tue Oct 01 2002
Contact:

I find the bug

Post by durban » Tue Nov 04 2003

Thanks, i just find the bug :

showmessage(Objet.Attribute('Name'));

=

showmessage(Objet.Attribute['Name']);

Thanks again
Didier

Post Reply