Hope someone can please assist me. I need to generate a barcode in code-behind and then print is on a XPrinter without displaying it on the UI.
The problem that i have:
1. to print the bar code
2. Not to loose print quality
I generate my barcode like this:
var Barcode = new XamCode128Barcode();
Barcode.Data = "100 222 300 448"
In order to print the XamBarcode family of barcode controls, I would recommend using the Infragistics Reporting Engine, as this allows you to build a Report and place any visual element on it, render it, and export it to XPS or print it using a printer of your choice.
I am attaching a sample project that demonstrates usage of the Infragistics Reporting Engine with the XamCode128Barcode control. I hope this helps.
Please let me know if you have any other questions or concerns on this matter.