Print Each page with different printer

hello

i have created groups according to printer name in database and i have applied the property STARTNEWPAGE: TRUE so its printing each groups and details on separate page now what i want is when i say print each page should print on separate printer according to the value of Group Field because Grouping is done based on printer name

For example :-

page 1 : Groupname : EPSON LASER JET 3390
Item name :- Chocolate Cake
Price :- 5
===============================
Item name :- Chocolate cream
Price :- 2
===============================
Item name :- Black Forest
Price :- 7

page 2 : Groupname : Juice Printer EPSON LASER
Item name :- Mocktail
Price :- 15
===============================
Item name :- Orange Juice
Price :- 5
===============================
Item name :- Cocktail
Price :- 4



In this case page 1 should print on EPSON LASER JET 3390 AND Page 2 should print on printer named Juice Printer EPSON LASER


How can i do that ?

please reply ASAP


with regards
kutbi nahar

Comments

  • edited 7:49PM
    Hello,

    You can call the report.PrintPrepared method several times (according to number of your printers):

    report.Prepare();
    report.PrintSettings.ShowDialog = false;
    report.PrintSettings.PageRange = PageRange.PageNumbers;

    // print the first page
    report.PrintSettings.Printer = "EPSON LASER JET 3390";
    report.PrintSettings.PageNumbers = "1";
    report.PrintPrepared();

    // print the second page on a different printer
    report.PrintSettings.Printer = "Juice Printer EPSON LASER";
    report.PrintSettings.PageNumbers = "2";
    report.PrintPrepared();

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.