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 12:40AM
    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