Welcome to the WinForms feedback portal. We’re happy you’re here! If you have feedback on how to improve the WinForms, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

PdfDataMatrixBarcode

dmBarcode = new PdfDataMatrixBarcode();

dmBarcode.Size = PdfDataMatrixSize.Auto;

dmBarcode.Text="12345678901234567890";

// always prints {Width=0, Height=0}

Console.WriteLine((dmBarcode as PdfBidimensionalBarcode).Size);

PdfBidimensionalBarcode qrBarcode = new PdfQRBarcode();

qrBarcode.Version = QRCodeVersion.Auto;

qrBarcode.Text="1234567890123456789012345678901234567890";

// always prints {Width=21, Height=21}, Version is still QRCodeVersion.Auto

Console.WriteLine(qrBarcode.Size);

// unless you call ToImage();

qrBarcode.ToImage(); 

// prints {Width=29, Height=29}, Version is now QRCodeVersion.Version02

Console.WriteLine(qrBarcode.Size);

// the ToImage()-trick does not work for PdfDataMatrixCode, its PdfDataMatrixSize stays at Auto
// so it is not even possible to manually calculate it

Note: In my opinion PdfDataMatrixBarcode.Size shouldn't hide PdfBidimensionalBarcode.Size, I think it'd be better to rename it to
PdfDataMatrixBarcode.
DataMatrixSize or something like that.