barcode?

Stimulsoft Reports.WEB discussion
Post Reply
abi
Posts: 55
Joined: Mon Feb 22, 2010 4:18 pm
Location: indo

barcode?

Post by abi »

hi..

how to change barcode type from code?

thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

barcode?

Post 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.
abi
Posts: 55
Joined: Mon Feb 22, 2010 4:18 pm
Location: indo

barcode?

Post by abi »

thanks... its work..

what about if i change not for design?

thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

barcode?

Post 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.
Post Reply