Page 1 of 1

Printing and angled x-axis labels

Posted: Wed Apr 02, 2014 12:41 pm
by 16666481
test2.zip
Zipped printout files (.xps).
(144.05 KiB) Downloaded 902 times
Whenever I print one of our TeeChart Charts with m_TeeChart.GetPrinter().Print() or m_TeeChart.GetPrinter().PrintChart() all of the x-axis Labels disappear. The left boundary of the Chart is also missing, and there are some strange dots (parts of the labels?) above the Chart at the top left.
If I print using the Print Preview Dialog and set the "smooth" Option, the Chart is printed correctly. I have attached .xps files with the correct printout when "smooth" is set (test2.xps), and the messed up printout if just printing without print preview or without the "smooth" Option set. (text4.xps).
The x-axis Labels on my Chart are set to a 90° angle. If they are horizontal, printing is ok, though still not as good as the "smooth" result: The tabel texts are rather distorted and the left boundary is still missing.

Re: Printing and angled x-axis labels

Posted: Thu Apr 03, 2014 9:48 am
by yeray
Hi,

Thanks for the attachments but we'd need a project to reproduce the problem here. Please, see the instructions about "how to post in this forum" below in my signature.
To reproduce smooth checkbox behavior you should use StretchDraw as explained here.

Re: Printing and angled x-axis labels

Posted: Mon Apr 07, 2014 9:22 am
by 16666481
I have attached a sample project demonstrating the problem.
Unfortunately, I have not been able to apply the StretchDraw approach to simulate the smooth Checkbox behaviour as the respective methods are not available in MFC/Visual Studio. Also, the Printer class does not have a getCanvas() method. Do you have any hints on how I could achieve this in my environment?

Hoping you can help - thank you!