Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 510
  • Last Modified:

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
0
JDL129
Asked:
JDL129
1 Solution
 
Éric MoreauSenior .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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now