Page 1 of 1

Print changed with maintenance release

Posted: Wed Aug 10, 2005 9:40 pm
by 9637235
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

Posted: Thu Aug 11, 2005 9:12 am
by Miguel
Hi Avatar,

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();

Posted: Thu Aug 11, 2005 1:31 pm
by 9637235
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

Posted: Fri Aug 12, 2005 9:02 am
by Miguel
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.

Posted: Fri Aug 12, 2005 1:28 pm
by 9637235
Hi Miguel,

Is there a way to do the refresh so the print works properly?

Posted: Tue Aug 16, 2005 8:25 am
by Chris
Hi Avatar,

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();
		}
The extra code will be 'internalised' in the next TeeChart for .NET maintenance release.