Thanks for getting back to me! Here is the simplified sorce that we are using:
public void Test_ComplexBarcodeGenerator()
{
SwissQRCodetext qrCodeText = new SwissQRCodetext();
qrCodeText.Bill.Version = SwissQRBill.QrBillStandardVersion.V2_0;
qrCodeText.Bill.Account = "CH4431999123000889012";
qrCodeText.Bill.Amount = 1000m;
qrCodeText.Bill.Currency = "CHF";
qrCodeText.Bill.Reference = "210000000003139471430009017";
qrCodeText.Bill.Creditor = new Address
{
Name = "Robert Schneider AG",
Street = "Rue de Lac",
HouseNo = "1268",
PostalCode = "2501",
Town = "Biel",
CountryCode = "CH"
};
qrCodeText.Bill.Debtor = new Address
{
Name = "Pia-Maria Rutschmann-Schnyder",
Street = "Grosse Marktgasse",
HouseNo = "28",
PostalCode = "9400",
Town = "Rorschach",
CountryCode = "CH"
};
ComplexBarcodeGenerator generator = new ComplexBarcodeGenerator(qrCodeText);
generator.Parameters.Barcode.QR.QrEncodeMode = QREncodeMode.ECIEncoding;
generator.Parameters.Barcode.QR.QrECIEncoding = ECIEncodings.UTF8;
MemoryStream stream = new MemoryStream();
generator.Save(stream, BarCodeImageFormat.Bmp);
Stream fs = new FileStream(@"C:\Temp\Bmp1.bmp", FileMode.Create, FileAccess.Write);
stream.Seek(0, SeekOrigin.Begin);
fs.Seek(0, SeekOrigin.Begin);
stream.CopyTo(fs);
fs.Flush();
fs.Close();
}
this give the following QR-Code:
image.png (18.7 KB)
And that corresponds to the following text, which is all correct exept the last new-line (CR-LF) is to much (in yellow). According to the specification, this should be omitted:
image.png (7.3 KB)
Thanks
Tom