![]() | Steema Issues DatabaseNote: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;otherwise you can use StackOverflow. Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy. |
Summary: | Patterns and image backgrounds not exported to pdf | ||
---|---|---|---|
Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
Component: | Export | Assignee: | Steema Issue Manager <issuemanager> |
Status: | CONFIRMED --- | ||
Severity: | enhancement | CC: | yeray |
Priority: | --- | ||
Version: | 35.220329 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows | ||
URL: | https://www.steema.com/support/viewtopic.php?f=3&t=17736 | ||
Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: |
Description
yeray alonso
2022-09-27 02:22:13 EDT
A workaround is to create the pdf document "manually" (with TPDFCanvas), export the TChart to TBitmap with TeeCreateBitmap, and add that bitmap to the pdf document. Ie: procedure TForm1.ExportChartToPdf; var c : TPDFCanvas; b : TBitmap; const PDF='C:\tmp\chart1.pdf'; begin c:=TPDFCanvas.Create; try b:=Chart1.TeeCreateBitmap; try c.Draw(0,0,b); finally b.Free; end; c.SaveToFile(PDF); finally c.Free; end; end; |