/// <summary> /// Gets the barcode image URI for the specified text using the /// Code 128 barcode symbology. /// </summary> /// <param name="text"></param> /// <returns></returns> public string GetBarcode128(string text) { BarcodeImageUriBuilder uri = new BarcodeImageUriBuilder(); uri.Text = text; uri.EncodingScheme = BarcodeSymbology.Code93; uri.BarMinHeight = uri.BarMaxHeight = 30; uri.BarMinWidth = uri.BarMaxWidth = 1; return(uri.ToString()); }
/// <summary> /// Gets the barcode image URI for the specified text using the /// Code 11 barcode symbology without checksum. /// </summary> /// <param name="text"></param> /// <returns></returns> public string GetBarcode11NC(string text) { BarcodeImageUriBuilder uri = new BarcodeImageUriBuilder (); uri.Text = text; uri.EncodingScheme = BarcodeSymbology.Code11NC; uri.BarMinHeight = uri.BarMaxHeight = 30; uri.BarMinWidth = 1; uri.BarMaxWidth = 3; return uri.ToString (); }