| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
send output to printer - crystal report 8.5
Hi,
I am trying to send the output of a crystal report straight to the printer without viewing the report. I have already created the report using visual basic 6.0 and I can view the report. I just need to print it without viewing it. How can I do that ? I tried "viewer.printreport", but did not work. Thanks. |
|
#2
|
|||
|
|||
|
use the report obejct and the PrintOut method.
|
|
#3
|
|||
|
|||
|
Hi James,
I am actually using the report object, but when I use the printout method to print the report the print dialog box pops up. How can I get rid of it and make it seemless to the user ? Please advice Thanks. |
|
#4
|
|||
|
|||
|
How to get rid of the print dialog box
Hi,
I am using the report object and the Report.printout method to send a report straight ot the printer without viewing it. The problem is the print dialog box that keeps poping up every time. How can I get rid of it ? Thanks. |
|
#5
|
|||
|
|||
|
hi,
i am new to this group. I am facing the same problem... i want the output to be printed directly on a print click and also print dialogue box should not pop up... did you get any solution for this... then pls reply back... |
|
#6
|
|||
|
|||
|
Re: send output to printer - crystal report 8.5
HI
before giving "viewer1.Printreport" you also have to specify "Viewer1.Viewreport" , only then will the report be printed directly to the printer. |
|
#7
|
|||
|
|||
|
You can use
Report.PrintOut False 'printer report without prompt and it would work
|
|
#8
|
|||
|
|||
|
Re: send output to printer - crystal report 8.5
Hi,
I am facing a problem regarding "Report.PrintOut" method. After the sub containing " Report.PrintOut false" finish executing, the application closes. Can anyone tell me what could be the problem?? I am using Crystal Report 9.0 & VB6. Thanks |
|
#9
|
|||
|
|||
|
Re: send output to printer - crystal report 8.5
Quote:
__________________
Reporting Tool: CR9 |
|
#10
|
|||
|
|||
|
Re: send output to printer - crystal report 8.5
I am having an issue trying to do this.
I guess I am not understanding what the report object is. I currently use the Crystal Reports Object, but there is no PrintOut function to use, so I must be misunderstanding something. |
|
#11
|
|||
|
|||
|
Re: send output to printer - crystal report 8.5
There are several ways to activate the Crystal Reports 8.5 engine in a VB6 application
OCX, RDC & CRAPI The PrintOut is a method from the report object when we use RDC In order to use it, 1.- You must set a reference to a Crystal Reports ActiveX Designer RunTime Library 8.5 in Your VB6 project 2.- Declare Code:
Dim CRApp As New CRAXDRT.Application Dim CRReport As New CRAXDRT.Report Code:
Set CRReport = CRApp.OpenReport(App.Path & "\MyReport.rpt", 1) CRReport.PrintOut False Code:
Set CRReport = Nothing Set CRApp = Nothing Last edited by jggtz; December 8th, 2008 at 10:53 AM. |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|