Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How do I print crystal reports directly to the default printer

Posted on 2014-01-20
4
491 Views
Last Modified: 2014-01-21
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
Comment
Question by:JDL129
4 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 39796591
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
 
LVL 100

Expert Comment

by:mlmcc
ID: 39796947
That should work.

If not then what version of Crystal?

mlmcc
0
 
LVL 22

Expert Comment

by:Ido Millet
ID: 39797060
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
 

Author Closing Comment

by:JDL129
ID: 39797400
Thanks Eric!!!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question