Printing TRectangleTool in Windows 10 is misaligned
Posted: Tue Jun 26, 2018 2:28 pm
I'm using TeeChart Pro 2018 in C++ Builder XE5.
On the chart a TRectangle tool is placed below the legend, which is aligned to the right of the chart. It's position is set as follows:
This works fine within the application, and within the print preview, but since the most recent Windows 10 update it appears misaligned when the chart is printed. I've tried printing to the Microsoft PDF writer and also to actual printers and the result is the same. See the attached screenshots and printed PDF to view the problem.
The print code is straightforward:
Can you think why this might be?
Thanks
Tom
On the chart a TRectangle tool is placed below the legend, which is aligned to the right of the chart. It's position is set as follows:
Code: Select all
RectangleToolDates->Left = Chart1->Legend->RectLegend.Left;
The print code is straightforward:
Code: Select all
TRect PrintMarginsRect;
PrintMarginsRect.Top = 5;
PrintMarginsRect.Left = 5;
PrintMarginsRect.Bottom = 5;
PrintMarginsRect.Right = 5;
if(PrinterSetupDialog1->Execute()){
Chart1->PrintProportional = false;
Chart1->PrintMargins = PrintMarginsRect;
TeePreview(this, Chart1);
Chart1->Print();
}
Thanks
Tom