Hi Kevin,
I've had this exact same problem since v1.0 of the framework and
unfortunately it's a shortcoming which hasn't been rectified, even in v2.0.
It usually occurs because, as the error message implies, there is no default
printer for the current user profile. It can also occur however if the
current user doesn't have sufficient access rights on the existing default
printer. Unfortunately you can't even do a print preview in these cases
without it throwing an exception.
The only recourse is to trap the error, grin, and bear it.
Regards,
Alex Clark
"KevinK" <ke*****************@ThiSbitconsult.be.rem> wrote in message
news:43***********************@news.skynet.be...
Hi,
I want to print my crystal report without showing a preview of the report.
So I use the myreport.ReportSource.PrintToPrinter(2, True, 0, 0) command,
but when doing so I get an exception saying: no default printer
Can anyone help me?
Thanks