Steema Issues Database

Note: 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.



Bug 69 - Printing GDI+ charts is wrong.
Summary: Printing GDI+ charts is wrong.
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Print (show other bugs)
Version: 131016
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-05 05:30 EST by narcís calvet
Modified: 2013-11-13 13:18 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version: RAD XE5


Attachments
CBuilderXE5 project, GDI and GDI+ prints. (74.91 KB, application/x-zip-compressed)
2013-11-05 05:30 EST, narcís calvet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description narcís calvet 2013-11-05 05:30:12 EST
Created attachment 11 [details]
CBuilderXE5 project, GDI and GDI+ prints.

The printout is not the same as preview, bad annotation tool and very big size of axis fonts. GDI and GDI+ modes have different printouts.

The bug can be reproduced in C++ Builder XE5 with the attached project. Also attached GDI and GDI+ results. Annotation size is also wrong in GDI. Print Preview is normal, but buggy on paper or virtual PDF printer.
Comment 1 david berneda 2013-11-13 13:18:23 EST
Fixed for VCL (GDI and GDI+) canvas classes.

The problem was, when creating the metafile to send to the printer, Font.PixelsPerInch is different than screen (normally 96 on 100% text size Windows).

In previous TeeCanvas version this was handled automatically, as TeeCanvas.Font was the same as Delphi or TMetafile canvas.
Now in this version, Font.PixelsPerInch must be explicitely set before assigning fonts (see TTeeCanvas.DoChangedFont for fix).