ByteScout BarCode Generator SDK - ASP Classic - Generate Barcode Image - ByteScout

ByteScout BarCode Generator SDK – ASP Classic – Generate Barcode Image

  • Home
  • /
  • Articles
  • /
  • ByteScout BarCode Generator SDK – ASP Classic – Generate Barcode Image

How to generate barcode image in ASP Classic with ByteScout Barcode SDK

Tutorial on how to generate barcode image in ASP Classic

Sample source code below will show you how to cope with a difficult task like generate barcode image in ASP Classic. What is ByteScout Barcode SDK? It is the fully featured library to generate barcodes. Supports QR Code, Code 39, Code 128, UPC, GS1, GS-128, PDF417, Datamatrix and many other barcode types. Includes various options for barcode generation to ensure output quality, add barcodes to new or existing pdf files and images. It can help you to generate barcode image in your ASP Classic application.

This code snippet below for ByteScout Barcode SDK works best when you need to quickly generate barcode image in your ASP Classic application. In your ASP Classic project or application you may simply copy & paste the code and then run your app! Enjoy writing a code with ready-to-use sample codes in ASP Classic.

Free trial version of ByteScout Barcode SDK is available on our website. Documentation and source code samples are included.

Try ByteScout Barcode SDK today: Get 60 Day Free Trial or sign up for Web API

GenerateBarcode.asp
      
<% ' In case of "Server.CreateObject Failed", "Server object error "ASP 0177 : 8000ffff" or similar errors: ' Please try the following: ' - Open IIS ' - Find application pools (DefaultAppPool is used by default) ' - Open its properties and check .NET CLR version selected: ' - if you have .NET 1.1 then change to .NET CLR 2.00 ' - if you have .NET CLR 2.00 then try to change to .NET CLR 4.0 Set bc = Server.CreateObject("Bytescout.BarCode.Barcode") bc.RegistrationName="demo" bc.RegistrationKey="demo" ' set barcode type to Datamatrix bc.Symbology = 15 ' 15 = DataMatrix ' set barcode value to encode bc.Value = "http://www.bytescout.com" ' generate and get barcode image as PNG image array of bytes BarCodeImage = bc.GetImageBytesPNG response.ContentType = "image/png" ' add content type header response.AddHeader "Content-Type", "image/png" ' set the content disposition response.AddHeader "Content-Disposition", "inline;filename=BarCode.png" ' write the binary image to the Response output stream response.BinaryWrite BarCodeImage response.End ' disconnect from libraries Set bc = Nothing %>

Try ByteScout Barcode SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout Barcode SDK page

Explore ByteScout Barcode SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next