Print Directly
hiii alex
for example i am at invoice form once the invoice is made i want to print the invoice directly on a button click without showing the preview without showing the print dialogbox or anything AS FAST AS POSSIBLE I NEED TO PRINT INVOICE from printer
how can i do that and for this i am sure that i have to set printer how to do that also ??
with regards
k
for example i am at invoice form once the invoice is made i want to print the invoice directly on a button click without showing the preview without showing the print dialogbox or anything AS FAST AS POSSIBLE I NEED TO PRINT INVOICE from printer
how can i do that and for this i am sure that i have to set printer how to do that also ??
with regards
k
Comments
Use the following code:
Report report = new Report();
report.Load(...);
report.RegisterData(...);
report.PrintSettings.ShowDialog = false;
report.Print();
Webform app can print directly as you mentioned?
Rgds,
Viery
No, WebForms app cannot print directly. You need to export your report to PDF.
You may use the following code:
In this case, you don't need WebReport component.
How to print current page?
How to bring adobe reader print dialog automatically?
Dose interactive charts works?
It's all not possible in webreport.
Once a FastReport.NET report is on the screen:
1. Press FastReport.NET PRINTER icon.
2. In the File Download dialog box press "OPEN"
3. File opens in a new window for Adobe Reader. (yes this is a step because the widow has to be closed when done)
4. Click PRINT icon in Adobe Acrobat Reader.
5. Click OK in the print dialog
That's 5 steps to print a single page.
However, Developer Express ExtraReports has it down to the following 2 steps:
1. Print Current Page (there is a button to print current page or entire report)
2. OK in the print dialog button.
Only two steps for a web report. FastReport is a great product and I use it for all my VCL reports. But there has to be a way to improve the product in this one area. My customers wouldn't accept my products if I gave them 5 steps to print a web based report.