Page 1 of 1

Change barcode type

Posted: Wed Sep 26, 2012 8:17 am
by DavideBak
Hello!
There is a way to change dynamically the barcode type of a barcode element in a template MRT?

Thank in advance,
Davide

Re: Change barcode type

Posted: Thu Sep 27, 2012 6:30 am
by Ivan
Hello,

Can you please describe your task in details. And, if possible, send us a sample.

Thank you.

Re: Change barcode type

Posted: Thu Sep 27, 2012 7:25 am
by DavideBak
Hi, this is my MRT.
I have a simple barcode and at runtime I want (if it possible) to change the barcode type, for example from QRCode to DataMatrix.

Dimension and other properties will be always the same, I want only change the type from C# code. It's possible?

Thank you,
Davide

Re: Change barcode type

Posted: Fri Sep 28, 2012 10:43 am
by DavideBak
Ivan, can you help me?

Thank you.

Re: Change barcode type

Posted: Mon Oct 01, 2012 6:38 am
by Jan
Hello Davide,

You can use following code in BeforePrintEvent of barcode component:

Code: Select all

this.BarCode1.BarCodeType = 
	new Stimulsoft.Report.BarCodes.StiDataMatrixBarCodeType(
		40F, 
		Stimulsoft.Report.BarCodes.StiDataMatrixEncodingType.Ascii, 
		false, 
		Stimulsoft.Report.BarCodes.StiDataMatrixSize.Automatic);
Thank you.