Page 1 of 1

Open the Print Preview, no Printer installed produced error

Posted: Wed Dec 08, 2004 2:18 pm
by 8125470
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

Posted: Thu Dec 09, 2004 8:34 am
by Chris
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.