ByteScout Premium Suite - ASP Classic - Create PDF With Datamatrix Barcode with BarCode SDK - ByteScout

ByteScout Premium Suite – ASP Classic – Create PDF With Datamatrix Barcode with BarCode SDK

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – ASP Classic – Create PDF With Datamatrix Barcode with BarCode SDK

How to create PDF with datamatrix barcode with barcode SDK in ASP Classic with ByteScout Premium Suite

Step-by-step tutorial on how to create PDF with datamatrix barcode with barcode SDK in ASP Classic

The sample source code below will teach you how to create PDF with datamatrix barcode with barcode SDK in ASP Classic. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can be applied to create PDF with datamatrix barcode with barcode SDK using ASP Classic.

The following code snippet for ByteScout Premium Suite works best when you need to quickly create PDF with datamatrix barcode with barcode SDK in your ASP Classic application. This ASP Classic sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Applying ASP Classic application mostly includes various stages of the software development so even if the functionality works please test it with your data and the production environment.

You can download free trial version of ByteScout Premium Suite from our website to see and try many others source code samples for ASP Classic.

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

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

CreatePDFWithBarcode.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") ' set symbology to Datamatrix bc.Symbology = 15 ' 15 = DataMatrix symbology type ' set barcode value to encode bc.Value = "https://www.bytescout.com" ' Place barcode at top-left corner of every document page barcode.DrawToPDF "..\wikipedia.pdf", -1, 10, 10, "result.pdf" PDFImage = bc.BinaryImage response.ContentType = "application/pdf" ' add content type header response.AddHeader "Content-Type", "application/pdf" ' set the content disposition response.AddHeader "Content-Disposition", "inline;filename=HelloWorld.pdf" ' write the binary image to the Response output stream response.BinaryWrite PDFImage response.End ' disconnect from libraries Set bc = Nothing %>

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite 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 Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next