Open the Print Preview, no Printer installed produced error

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
VH1
Advanced
Posts: 105
Joined: Thu May 13, 2004 4:00 am
Location: UK

Open the Print Preview, no Printer installed produced error

Post by VH1 » Wed Dec 08, 2004 2:18 pm

Hi,

Version 1.1.1544.23908

Quite a simple problem really.

Steps to reproduce: -

Create a new windows project.
Add a teechart control (tchart1).
Add a teechart commander control (commander1).
Set the 'Chart' property of commander1 to tchart1.
Compile the application.
UNINSTALL all printers from the machine the application will run.
Run the application on that machine.

Finally, press the "PRINT" button on the commander or the bring up the Teechart Editor (press "Edit" on the commander) and press the "Print" tab.


/*-----------------------------------------------------------------------*/

I have just downloaded version 1.1.1769.19457.

In the release notes for this version it clearly states:

18) Opening the Print Preview with no Printer installed produced an untrapped error. Fixed.

This error still seems to exist?


Thanks

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 » Thu Dec 09, 2004 8:34 am

Hi ..
This error still seems to exist?
This seems to be a generic issue with the .NET framework's PrintPreviewControl in that it throws an exception when there's no printer installed.
We worked around this problem by not adding a PrintPreviewControl to the form when there was no printer installed, but it seems that it has slipped back into the form at designtime so giving the error.

This problem will not occur again in future versions. Apologies for the slip-up.
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