I am seeing a weird behavior when generating a data matrix code when the data string contains dash characters. Instead of a square data matrix code, the generated image is a long rectangle that looks like the square cut in half with the halves setting right next to each other. If I remove the dashes, then there's no problem with the image generated. Is there something special I need to do when the text contains dashes?
Based on the DataMatrix Code example form, I have the following code, which generates the weird image:
BarcodeSettings bs = new BarcodeSettings();
bs.Type = BarCodeType.DataMatrix;
bs.Data2D = "1P2-F02679-90";
bs.ShowText = true;
bs.AutoResize = true;
string filename = "Test.png";
bg.GenerateImage().Save(filename);
System.Diagnostics.Process.Start(filename);