I'm using Delphi 2006 and I'm interested in creating PDF documents. I've
been looking around and one free application is PowerPDF. I've been
playing around with it and at first it appeared easy enough to create
things visually. My problem is I can't create things programmatially.
I've tried with no luck:
/////////////
var
APage: TPRPage;
PRLayoutPanel: TPRLayoutPanel;
PRLabel: TPRLabel;
begin
with PReport1 do
begin
FileName := 'C:\test.pdf';
BeginDoc;
APage := TPRPage.Create(PReport1);
try
PRLayoutPanel := TPRLayoutPanel.Create(APage);
try
PRLabel := TPRLabel.Create(PRLayoutPanel);
try
PRLabel.Caption := 'I can not read this!!';
Print(APage);
finally
PRLabel.Free;
end;
finally
PRLayoutPanel.Free;
end;
finally
APage.Free;
end;
EndDoc;
end;
end;
//////////////////////
Anyone have experience with this library and be willing to shed some light.
Thanks!
Exist a filter export for Freereport using PowerPDF look http://freereport.sf.net, that can help you like example.
Ricardona