CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Dynamically Change Barcode(Data Code)

by farhath » 14 Jan 2016 11:48

I need to know if it is possible to change the Barcode ->Data ->Code at run time. I tried this code:
IWCGJQBarCode2.DataCodaBar.Code:='12234';
The Error I am getting: Invalid Class Type Cast

IWCGJQBarCode2 is displaying correctly but I need to change its code at run time, any help?
farhath
 
Posts: 10
Joined: 14 Jan 2016 10:55

by Alexander Bulei » 14 Jan 2016 12:51

Hi,

What is your BarcodeType?

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by farhath » 14 Jan 2016 13:00

jqbcCode128

Thanks..
farhath
 
Posts: 10
Joined: 14 Jan 2016 10:55

by Alexander Bulei » 14 Jan 2016 13:20

Hi,

So you need assign proper property/settigns:

delphi code
IWCGJQBarCode1.DataCode128.Code:= '1234';


And after the setting, you will need to use the AjaxReRender method:

delphi code
IWCGJQBarCode1.AjaxReRender(True,False);


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by farhath » 14 Jan 2016 14:02

It works perfectly

Many Thanks...
farhath
 
Posts: 10
Joined: 14 Jan 2016 10:55

by assapan » 19 Feb 2018 12:02

Hi,
is there a way to download image of barcode ?
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by Alexander Bulei » 21 Feb 2018 10:06

Hi assapan,

is there a way to download image of barcode ?


Yes, you must use the IWCGJQHTML2Canvas component for that.

Example:

Code: Select all
IWCGJQHTML2Canvas1.ConvertAndSaveAsPNG(IWCGJQBarCode1, 'C:\tmp\test.png');


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by assapan » 21 Feb 2018 10:08

Thank you
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France


Return to JQBarCode

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.