Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm currently taking up a project on C#.NET and using Microsoft SQL server. The project is a restaurant/kitchen management system that allows you to take a single list of orders ( let say, pizza, Tacos, burrito, etc), then the application should be able to sort out the order and send them to different POS printers where these items are made/sold.

I do need help, I appreciate anyone kind gesture.
PS: I'm a newbie I just wanna learn. Thanks xx

What I have tried:

I've built the application to take up a single order but it can only print all on one single printer.
Posted
Updated 9-Aug-21 1:53am

1 solution

If you are using a PrintDocument[^] - and you probably should be - you can specify the printer it should use as well as exactly what gets printed where:
C#
public void Print(string printerName)
{
  PrintDocument doc = new PrintDocument();
  doc.PrinterSettings.PrinterName = printerName;
  doc.PrintPage += new PrintPageEventHandler(PrintAPage);
  doc.Print();
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900