How do I print crystal reports directly to the default printer

Hey guy!!

I have 3 pharmacy prescription labels created in Crystal Reports that I want to print on an EPSON TM-C3400 inkjet printer.  I need them to print consecutively to this printer as the default.  They are rptRxLabel.rpt, rptRxReceipt.rpt, and rptFileCopy.rpt.

Any ideas would certainly be helpful,

Jerry
JDL129Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
something like this:    

        ReportDocument rd = new ReportDocument();
        rd.Load("ReportFile.rpt");
        rd.PrintToPrinter(1, false,0,0);

and do the same for the other 2
0
 
mlmccCommented:
That should work.

If not then what version of Crystal?

mlmcc
0
 
Ido MilletProfessor of MIS at Penn State Erie and Owner, Millet SoftwareCommented:
If you wish to avoid doing software development for this, there are inexpensive 3rd-party Crystal Reports viewers (see list at http://kenhamady.com/bookmarks.html) and some of them allow you to use desktop shortcut, batch file, or command line that calls the viewer and specifies the report, parameter values, login info, and printer target.
0
 
JDL129Author Commented:
Thanks Eric!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.