ByteScout Premium Suite - VBScript - Set barcode size with barcode sdk - ByteScout

ByteScout Premium Suite – VBScript – Set barcode size with barcode sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – VBScript – Set barcode size with barcode sdk

How to set barcode size with barcode sdk in VBScript with ByteScout Premium Suite

Step-by-step tutorial on how to set barcode size with barcode sdk in VBScript

The documentation is designed for a specific purpose to help you to apply the features on your side. ByteScout Premium Suite can set barcode size with barcode sdk. It can be applied from VBScript. ByteScout Premium Suite is the bundle that includes twelve SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.

Want to quickly learn? This fast application programming interfaces of ByteScout Premium Suite for VBScript plus the guidelines and the code below will help you quickly learn how to set barcode size with barcode sdk. Follow the instructions from scratch to work and copy the VBScript code. Enjoy writing a code with ready-to-use sample VBScript codes.

You can download free trial version of ByteScout Premium Suite from our website with this and other source code samples for VBScript.

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

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

FitInto.vbs
      
Set bc = CreateObject("Bytescout.BarCode.Barcode") ' Display information about Code39 symbology msgbox "Easiest way to specify barcode size is to use FitInto_3(width, height, unitOfMeasure) method." & vbCRLF & "Let's generate barcode of 500x300 pixels." ' Set symbology to Code39 bc.Symbology = 1 ' 1 = Code39 symbology type ' Set barcode value to encode bc.Value = "012345" ' Set barcode size by specifying dimensions the barcode will be fit into. ' 3rd parameter is the unit of measure: 0 - Pixel, 1 - Point (1/72 inch), 2 - Inch, 3 - document unit (1/300 inch), 4 - Millimeter, 5 - Centimeter, 6 - Twip(1/20 inch). ' We use 3rd parameter as 0 (Pixel). bc.FitInto_3 500, 300, 0 msgbox "Generated barcode is saved into 'result.png' file" bc.SaveImage "result.png" Set bc = Nothing ' Open the output file in default app Set shell = CreateObject("WScript.Shell") shell.Run "result.png", 1, false Set shell = 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