private static Barcode GetBarcodeObj(string mBarcodeData) { var result = new Barcode { DataToEncode = mBarcodeData, Resolution = Barcode.Resolutions.Printer, /*..Custom,*/ //ResolutionCustomDPI = "600", /*"203",*/ SymbologyID = Barcode.Symbologies.Code128 }; result.RefreshPrinterDPI(); return result; }