Print changed with maintenance release

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
avatar
Newbie
Newbie
Posts: 18
Joined: Mon Jun 20, 2005 4:00 am
Location: Calgary, Canada
Contact:

Print changed with maintenance release

Post by avatar » Wed Aug 10, 2005 9:40 pm

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

Miguel
Site Admin
Site Admin
Posts: 12
Joined: Thu Jul 28, 2005 4:00 am
Location: Barcelona
Contact:

Post by Miguel » Thu Aug 11, 2005 9:12 am

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();
Best regards
Miguel Espinosa

Steema Software
http://support.steema.com

avatar
Newbie
Newbie
Posts: 18
Joined: Mon Jun 20, 2005 4:00 am
Location: Calgary, Canada
Contact:

Post by avatar » Thu Aug 11, 2005 1:31 pm

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

Miguel
Site Admin
Site Admin
Posts: 12
Joined: Thu Jul 28, 2005 4:00 am
Location: Barcelona
Contact:

Post by Miguel » Fri Aug 12, 2005 9:02 am

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.
Best regards
Miguel Espinosa

Steema Software
http://support.steema.com

avatar
Newbie
Newbie
Posts: 18
Joined: Mon Jun 20, 2005 4:00 am
Location: Calgary, Canada
Contact:

Post by avatar » Fri Aug 12, 2005 1:28 pm

Hi Miguel,

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

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Tue Aug 16, 2005 8:25 am

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.
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/

Post Reply