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.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

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 = "https://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 %>

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Barcode SDK Home Page

Explore ByteScout Barcode SDK Documentation

Explore Samples

Sign Up for ByteScout Barcode SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Barcode SDK Home Page

Explore ByteScout Barcode SDK Documentation

Explore Samples

Sign Up for ByteScout Barcode SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next