-
December 7th, 2005, 08:29 AM
#1
Printing Report Without Printer Prompt
I am using vb6 and Crystal 10. I am trying to print my report without displaying the report. When I do I get the printer prompt. Does anyone know how to get around this. I have had no luck searching the forum. Below is a sample of my code.
Set rst_Crystal = g_cls_Data.SelectTicketData(g_str_Conn, g_lng_TicketNum)
Set CRXReport = CRXApplication.OpenReport(App.Path & "\Ticket.rpt", 1)
Set CRXDatabase = CRXReport.Database
CRXDatabase.SetDataSource rst_Crystal, 3, 1
Screen.MousePointer = vbHourglass
CRViewer1.ReportSource = CRXReport
'CRViewer1.ViewReport
CRXReport.PrintOut
Any Help would be appreciated.
thanks,
Jason
-
December 13th, 2005, 04:31 AM
#2
Re: Printing Report Without Printer Prompt
hi,
just add false after printout and it should work, at least it does so in CR 8
CRXReport.PrintOut false
-
December 13th, 2005, 08:51 AM
#3
Re: Printing Report Without Printer Prompt
Thanks,
I will give that a try.
Jason
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|