ReportBuilder
lPDFDevice := TppPDFDevice.Create(nil);
try
lPDFDevice.PDFSettings := ppReport1.PDFSettings;
lPDFDevice.FileName :=
UniServerModule.NewCacheFileUrl(False,'pdf','','', AUrl);
lPDFDevice.Publisher := ppReport1.Publisher;
// gerar o relatório
ppReport1.PrintToDevices;
UniURLFrame1.URL := AUrl;
finally
lPDFDevice.Free;
end;