Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to print to a non default printer without showing any dialog boxes

Status
Not open for further replies.

Rissole

MIS
Jul 10, 2002
21
US
Here we have some network printers which are defined in the database along with their network paths.

The procedure'd automatically send print jobs to these printers without showing any selection dialog boxes to the user.

I mean to say, I've got this printer string with me, is there anyway I can send print job to that printer. I'm using Crystal Reports 9.

Thanks,
Rissole.
 
In CR .net all you have to do is set the .PrinterName property like this:

Report.PrintOptions.PrinterName = "Printer name goes here"

Then you can call the .PrintToPrinter method to print the report to that printer.

Hope that helped.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top