You are not logged in.
Pages: 1
As i want to convert the QuickReport to PDF and after reading this post: http://synopse.info/forum/viewtopic.php?id=138 and followed the steps, i found that it works great on the english words but the chinese words inside the report became garbled, so, is it the pdf engine doesn't support chinese words or i am missing something? Thank you! Below is the code snippet i used to convert the report -
pdf:=TPdfDocument.Create;
try
QRep.Prepare;
for i:=1 to QRep.QRPrinter.PageCount do begin
aMeta := QRep.QRPrinter.GetPage(i);
try
pdf.DefaultPageWidth := MulDiv(aMeta.Width, 72, pdf.ScreenLogPixels);
pdf.DefaultPageHeight := MulDiv(aMeta.Height, 72, pdf.ScreenLogPixels);
pdf.AddPage;
pdf.Canvas.RenderMetaFile(aMeta,1,0,0);
finally
aMeta.Free;
end;
end;
pdf.SaveToFile(fileName);
finally
pdf.Free;
end;
Pages: 1