Howdy, I need to be able to print wpf from my application. I'm just trying to print a transaction receipt.
I found that using
PrintDialog pDialog = new PrintDialog();
pDialog.PrintVisual (new receipt ("transaction name", "my store"), "documentTitle");
Does the trick differ. "Receipt () is a user control that displays transaction details.
How are you going to do this? Is this the right way? What should I do if I do not know the printer to be used? should I make usercontrol only as wide as a printer with a thermal printer?
Any suggestions would be great!
source share