Toggle navigation Hot Examples. C CSharp ReportDocument. PrintToPrinter Examples. PrintToPrinter - 24 examples found. PrintToPrinter extracted from open source projects. You can rate examples to help us improve the quality of examples.
|Published (Last):||21 July 2010|
|PDF File Size:||9.92 Mb|
|ePub File Size:||19.44 Mb|
|Price:||Free* [*Free Regsitration Required]|
Crystal Reports Online Training. Learn Online, Anytime, Anywhere. Step-by-step tutorials and online videos. The parameters of the PrintToPrinter method are listed in Table The first parameter, nCopies, sets how many copies of the report to print.
If more than one copy of the report is being printed, the second property tells whether to collate the copies or not. Passing False tells it to print each full report prior to printing the next copy. If nCopies is set to 1, then the collated parameter is ignored. The last two parameters, startPageN and endPageN, set the page range. Pass it the first page to print and the last page to print. To print the entire report, pass 0 to both parameters.
When using the viewer control, you also have the option of using a ReportDocument component see the example in Chapter 1. The ReportDocument component gives you a visual way Already a member? Sign in to read the entire tutorial! Learn at your own pace from the comfort of your home! Pause, rewind and watch online training videos anytime!
Members-only community where you can post and answer questions. The community is checked on a regular basis by best selling Crystal Reports book author Brian Bischof to help answer your questions.
Table PrintToPrinter parameters. Parameter Description nCopies The number of copies to print. Collated Set to True to collate the pages.
Set to 0 to print all pages. Step-by-step Online Videos Learn at your own pace from the comfort of your home! Online Community Members-only community where you can post and answer questions. NET Chapter 03 - Integrating Reports 3.
NET Development 3. Web Viewer 3. Return to top of page.
C# (CSharp) ReportDocument.PrintToPrinter Examples
This server-based method is documented in the Visual Studio help files. The syntax for this method is:. To print the entire report, set startpage and endpage each to 0. PrintToPrinter 1, False ,0,0.
Choosing a printer when printing from Crystal Reports in C#
The purpose of this document is to provide the ways to troubleshoot the issues related to PrintToPrinter when used in. NET applications for printing Crystal Reports. PrintToPrinter is either used to the print the report to a printer or to a file. It has 3 overloads that can be used depending upon the requirement.
Tip: How to Print a Crystal Report Programmatically in ASP.NET?