Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

report prints in adobe

Status
Not open for further replies.

jockey

Programmer
Nov 18, 2003
34
GB
I am using crystal 10 from a ASP.NET page. The report is fine displays as expected. What I dont want is that when I want to print the report it does not print off straight away. What it does is open the report in an ADOBE window and you then have to print from there. How do can I stop the ADOBE window opening and get the report to print straight fron the report viewer??

Many Thanks in advance

Cheers

Jamie
 
look up print to printer method
its included in the CrystalDecisions.CrystalReports.Engine
Code:
Imports CrystalDecisions.CrystalReports.Engine
Dim rptFinance As New ReportDocument()
rptFinance.Load("FinanceReport.rpt")

rptFinance.PrintOptions.PrinterName = "Your printer's name"

rptFinance.PrintToPrinter(1, False, 0, 0)

Good luck


Note:Copying and Pasting is NoT Creativity.
What would you attempt to accomplish if you knew you would not fail?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top