Solved

How do I print crystal reports directly to the default printer

Posted on 2014-01-20
4
482 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 69

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now