How to: save barcode to a file.

Anything related to Barcode ActiveX programming

How to: save barcode to a file.

Postby vibhu(legacy Member) on Wed Jun 21, 2006 9:13 am

Hi,

Can someone please advice on how to save the barcode to a file from the ASP code. using the ActiveX control.

Thanks,

Vibhu
vibhu(legacy Member)
 

Re: How to: save barcode to a file.

Postby glitch (legacy member) on Wed Jun 21, 2006 11:14 am

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)
glitch (legacy member)
 

Re: How to: save barcode to a file.

Postby vibhu(legacy Member) on Wed Jun 21, 2006 11:39 am

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
vibhu(legacy Member)
 

Re: How to: save barcode to a file.

Postby glitch (legacy member) on Tue Jul 11, 2006 3:22 pm

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")
glitch (legacy member)
 


Return to Barcode ActiveX Control

Who is online

Users browsing this forum: No registered users and 0 guests