Link to home
Start Free TrialLog in
Avatar of Techno_sol
Techno_sol

asked on

getting printers name with ASP.net & crystal reports

HI
I m using ASP.net 1.1 to print crystal report 9 everything is working fine to load but when i do
PrintToPrinter i get error for default printer well i found some solutions to give the printer name/path for the client side printing . what i want to know is there anyway to get the printer list/ name on the clients printer ?
Only in ASP.net  web forms
thanks
Avatar of Mike McCracken
Mike McCracken

Was the report built with a default printer defined?

What error are you getting?

mlmcc
Avatar of Techno_sol

ASKER

report is designed with no printer option
and the error is no default printer



You need to design the report with a printer.  If there is no printer whenthe report is designed or you choose the no printer option then you cannot print.

Is there a printer default on your development machine?
If not install the printer you want to use (the priter doesn't have to exist).  Crystal needs the printer driver.

Open the report in the designerUncheck the NO PRINTER option
Select the printer you want to use

mlmcc
I have done all these things but this will get the server printers whereas
i want the Only client printer name that can be passed to the code
Thanks
The report will use the clients default printer if the one the report was built against is not available.

mlmcc
any other option to get the printers ?
any script?
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial