I am using Crystal report. want to print a report without pressing the print button. will you please help me?
Printable View
I am using Crystal report. want to print a report without pressing the print button. will you please help me?
Here is one example of setting the printer for a report without the print dialog.
This part invokes the actual printing.
Report.PrintOut True, 1
http://www.vbforums.com/showpost.php...17&postcount=2
thank you for your code
RPTCashMemo.PrintOut True, 1
with this code only the print dialog box is appearing but i wnat to print the page automaticly. without click the diolog box ok button.
Please help me
thank you
Yes it will do that unless you populate the previous properties like shown in my code. ;)
hi RobDog888! do you happen to know where i could find a documentation of all methods and properties of the report viewer, and their corresponding parameters?
like
vb Code:
Report.PrinterSetup lHwnd
what the hell "lHwnd" means or what else can be used aside from it.
a valuable link or file would be cool...
thanks in advance dude.
The PrinterSetup dialog takes a owner window handle that I passed in the variable: lHwnd. ;)
I found most of the stuff back in the day in the help file but since 8.5, CR has really improved their help file and online knowledge base. For documentation there is a pdf download from CR that is a basic walk though on using the latest version of CR.
found what im looking for
many thanks