Click to See Complete Forum and Search --> : send output to printer - crystal report 8.5
chadi
March 16th, 2004, 09:23 AM
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.
James Longstreet
March 16th, 2004, 03:25 PM
use the report obejct and the PrintOut method.
chadi
March 16th, 2004, 03:50 PM
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.
chadi
March 17th, 2004, 08:33 AM
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.
chetansalgaonkar
June 21st, 2005, 04:08 AM
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...
rahulvasanth
June 21st, 2005, 08:08 AM
HI
before giving "viewer1.Printreport" you also have to specify "Viewer1.Viewreport" , only then will the report be printed directly to the printer.
khizerharoon
October 25th, 2005, 07:41 AM
You can use
Report.PrintOut False 'printer report without prompt
and it would work :)
im_haroon2003
August 30th, 2008, 01:02 AM
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
CrystalBabysteps
September 4th, 2008, 04:09 AM
After the sub containing " Report.PrintOut false" finish executing,the application closes appears to be some coding problem. check if you have some lines like End or routine to exit the application, after executing the sub to view/print report
thecaptainjs
December 8th, 2008, 10:28 AM
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.
jggtz
December 8th, 2008, 10:46 AM
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
Dim CRApp As New CRAXDRT.Application
Dim CRReport As New CRAXDRT.Report
3.-Assign & Print
Set CRReport = CRApp.OpenReport(App.Path & "\MyReport.rpt", 1)
CRReport.PrintOut False
4.-Don't forget to clear resources
Set CRReport = Nothing
Set CRApp = Nothing
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.