Hi TeeChart,
I was using release TeeChart for .NET v21.0.1992.14012 on upgraded to v2.0.2040.15119. 19
Now when I print my chart then image is 84% of what it was in the old version there appears to be an additional 10% margin. All margins are set to 0.
I uninstalled v2.0.2040.15119. 19 and reinstalled v21.0.1992.14012 and it works the way I originally programmed it
I see TeeChartNET2Release.txt has
13) Improvements made to the default printer routines.
Suggestions?
Thanks
Print changed with maintenance release
Hi Avatar,
You could customize the default margins to your needs in the following way:
You could customize the default margins to your needs in the following way:
Code: Select all
tChart1.Chart.Printer.MarginUnits = Steema.TeeChart.PrintMarginUnits.Percent;
tChart1.Chart.Printer.Margins.Left = 10;
tChart1.Chart.Printer.Margins.Top = 10;
tChart1.Chart.Printer.Margins.Right = 10;
tChart1.Chart.Printer.Margins.Bottom = 10;
tChart1.Chart.Printer.Preview();
Miguel Hi
What I am Saying is my currents setings are:
tChart1.Chart.Printer.MarginUnits = Steema.TeeChart.PrintMarginUnits.Percent;
tChart1.Chart.Printer.Margins.Left = 0;
tChart1.Chart.Printer.Margins.Top = 0;
tChart1.Chart.Printer.Margins.Right = 0;
tChart1.Chart.Printer.Margins.Bottom = 0;
with the new release my image is 17% smaller and it makes no differance if I change all to 5. I get the same result.
Thanks
What I am Saying is my currents setings are:
tChart1.Chart.Printer.MarginUnits = Steema.TeeChart.PrintMarginUnits.Percent;
tChart1.Chart.Printer.Margins.Left = 0;
tChart1.Chart.Printer.Margins.Top = 0;
tChart1.Chart.Printer.Margins.Right = 0;
tChart1.Chart.Printer.Margins.Bottom = 0;
with the new release my image is 17% smaller and it makes no differance if I change all to 5. I get the same result.
Thanks
Hi Avatar,
I can see now what you say. It is a problem of refreshing the preview window the first time you come in. Once you enter, if you change the margins manually through the window controls all works ok.
Thanks for the notification and sorry for the inconvenience. I'll add this issue to our bug list and we'll fix it for the next release.
I can see now what you say. It is a problem of refreshing the preview window the first time you come in. Once you enter, if you change the margins manually through the window controls all works ok.
Thanks for the notification and sorry for the inconvenience. I'll add this issue to our bug list and we'll fix it for the next release.
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi Avatar,
Yes, you could try:
The extra code will be 'internalised' in the next TeeChart for .NET maintenance release.
Yes, you could try:
Code: Select all
private void button1_Click(object sender, System.EventArgs e)
{
tChart1.Chart.Printer.MarginUnits = Steema.TeeChart.PrintMarginUnits.Percent;
tChart1.Chart.Printer.Margins.Left = 0;
tChart1.Chart.Printer.Margins.Top = 0;
tChart1.Chart.Printer.Margins.Right = 0;
tChart1.Chart.Printer.Margins.Bottom = 0;
tChart1.Printer.PrintDocument.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(tChart1.Chart.Printer.Margins.Left,
tChart1.Chart.Printer.Margins.Right,
tChart1.Chart.Printer.Margins.Top,
tChart1.Chart.Printer.Margins.Bottom);
tChart1.Printer.Print();
}
Thank you!
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/
Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/