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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with printing from VB app

Status
Not open for further replies.

vladk

Programmer
May 1, 2001
991
US
How to send Crystall Report to the printer without showing it first on the screen?
Currently I use Action method in my Visual Basic code. The Action method always shows report on the screen first.

Thank you

Vlad
 
try this code in the form load procedure

'CRViewer1.ViewReport do not put this in your code the report will not be displayed
DoEvents

For X = 1 To 5 'This loop tabs over to the Ok button
SendKeys "{TAB}" 'on the print msgbox
Next

SendKeys "{ENTER}" 'This clicks the OK button

Report.PrintOut 'Print out report
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top