Page 1 of 1
How to: save barcode to a file.

Posted:
Wed Jun 21, 2006 9:13 am
by vibhu(legacy Member)
Hi,
Can someone please advice on how to save the barcode to a file from the ASP code. using the ActiveX control.
Thanks,
Vibhu
Re: How to: save barcode to a file.

Posted:
Wed Jun 21, 2006 11:14 am
by glitch (legacy member)
do you want to save the barcode image (JPEG, BMP ...) to the disk or save the barcode file (and load it later)? If you are looking for exporting the image to a disk file, use the ExportImage method. For the latter, see the documentation on the Save method.
Dim objBarcode
Set objBarcode = Server.CreateObject("Morovia.BarcodeActiveX")
...
objBarcode.ExportImage("c:\test.jpg", 1)
Re: How to: save barcode to a file.

Posted:
Wed Jun 21, 2006 11:39 am
by vibhu(legacy Member)
Hi,
Thanks for the reply. I want to save the image to a folder and load it later. I saw the save method. it just gave the syntax on how to save.
Is that enough??
Thanks a lot,
Vibhu
Re: How to: save barcode to a file.

Posted:
Tue Jul 11, 2006 3:22 pm
by glitch (legacy member)
Assume your barcode object is called bar_obj, you can save the object by calling
bar_obj.Save("c:\my_barcode.mbx")
Later on you can load by calling
bar_obj.Load("c:\my_barcode.mbx")