crystal report printing code

mega1987

Member
Joined
May 25, 2009
Messages
7
Programming Experience
Beginner
can anyone supply me with a printing code for crystal report?

i'm new to handling crystal report object...ty.
 
Supposing you allready have the report and code to fill it with data, this
is an example how to print the report:

My code:

VB.NET:
dim icopies as integer = 1
dim sprinter as string = "\\ALITER\Kyocera FS-1118MFP (ICT)"

rpt.PrintOptions.PaperOrientation = PaperOrientation.Portrait
rpt.PrintOptions.PaperSource = CrystalDecisions.Shared.PaperSource.Auto

rpt.PrintOptions.PrinterName = sprinter
rpt.PrintToPrinter(icopies, False, 1, 1)
rpt.Close()
More information about CR in VB.net: VB.NET Crystal Reports Tutorials
 
Last edited:
Back
Top