On this page you will learn from code samples for programming in ASP Classic.Writing of the code to generate barcode image with barcode SDK in ASP Classic can be executed by programmers of any level using ByteScout Premium Suite. What is ByteScout Premium Suite? It is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can help you to generate barcode image with barcode SDK in your ASP Classic application.
These ASP Classic code samples for ASP Classic guide developers to speed up coding of the application when using ByteScout Premium Suite. Follow the instructions from scratch to work and copy the ASP Classic code. Complete and detailed tutorials and documentation are available along with installed ByteScout Premium Suite if you’d like to learn more about the topic and the details of the API.
Trial version of ByteScout Premium Suite is available for free. Source code samples are included to help you with your ASP Classic app.
<% ' 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 %>