You are not logged in.
Pages: 1
Hello,
I have a quickreport with some png-images on it with transparent background.
When I render this report, the images get a black background instead of being transparent.
This is the code I use:
function TfrmMain.ExportPdf(aReport: TQuickRep; aFileName: String): Boolean;
var
I: Integer;
PdfDocument: TPdfDocumentGDI;
Page: TMetafile;
begin
Result := False;
PdfDocument := TPdfDocumentGDI.Create();
PdfDocument.UseUniscribe := True;
try
aReport.Prepare;
for I := 1 to aReport.QRPrinter.PageCount
do begin
PdfDocument.AddPage;
Page := aReport.QRPrinter.GetPage(I);
try
PdfDocument.Canvas.RenderMetaFile(Page);
finally
Page.Free;
end;
end;
Result := PdfDocument.SaveToFile(aFileName);
finally
PdfDocument.Free;
end;
end;
this is the result in the pdf. Is there a fix for this?
Thx!
Bart
Pages: 1