Page 1 of 1

barcode?

Posted: Thu Jul 07, 2011 3:56 am
by abi
hi..

how to change barcode type from code?

thanks

barcode?

Posted: Fri Jul 08, 2011 5:44 am
by Alex K.
Hello,

You can use the following code:

Code: Select all

StiReport report = new StiReport();
report.Load();

StiBarCode barCode1 = report.GetComponents()["BarCode1"] as StiBarCode;
bc.BarCodeType = new StiEAN8BarCodeType(13F, 1F, Stimulsoft.Report.BarCodes.StiEanSupplementType.None, null, true);
//bc.BarCodeType = new StiEAN13BarCodeType(13F, 1F, Stimulsoft.Report.BarCodes.StiEanSupplementType.None, null, true);
//...
report.Design();
Thank you.

barcode?

Posted: Wed Jul 20, 2011 3:22 am
by abi
thanks... its work..

what about if i change not for design?

thanks

barcode?

Posted: Wed Jul 20, 2011 7:19 am
by Alex K.
Hello,

You can use the following code:

Code: Select all

StiReport report = new StiReport();
report.Load();

StiBarCode barCode1 = report.GetComponents()["BarCode1"] as StiBarCode;
barCode1.BarCodeType = new StiEAN8BarCodeType(13F, 1F, Stimulsoft.Report.BarCodes.StiEanSupplementType.None, null, true);
//barCode1.BarCodeType = new StiEAN13BarCodeType(13F, 1F, Stimulsoft.Report.BarCodes.StiEanSupplementType.None, null, true);
//...

report.Compile();
report.Render();
report.Show();
Thank you.