Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do I print crystal reports directly to the default printer

Posted on 2014-01-20
4
Medium Priority
?
508 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 2000 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 101

Expert Comment

by:mlmcc
ID: 39796947
That should work.

If not then what version of Crystal?

mlmcc
0
 
LVL 23

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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
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…

885 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