ByteScout Premium Suite - VB.NET - Generate pharmacode barcode with barcode sdk - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout Premium Suite – VB.NET – Generate pharmacode barcode with barcode sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – VB.NET – Generate pharmacode barcode with barcode sdk

How to generate pharmacode barcode with barcode sdk in VB.NET with ByteScout Premium Suite

Learning is essential in computer world and the tutorial below will demonstrate how to generate pharmacode barcode with barcode sdk in VB.NET

Sample source code below will display you how to manage a complex task like generate pharmacode barcode with barcode sdk in VB.NET. Want to generate pharmacode barcode with barcode sdk in your VB.NET app? ByteScout Premium Suite is designed for it. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording.

The following code snippet for ByteScout Premium Suite works best when you need to quickly generate pharmacode barcode with barcode sdk in your VB.NET application. IF you want to implement the functionality, just copy and paste this code for VB.NET below into your code editor with your app, compile and run your application. Further improvement of the code will make it more robust.

The trial version of ByteScout Premium Suite can be downloaded for free from our website. It also includes source code samples for VB.NET and other programming languages.

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

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

Program.vb
      
Imports System.Drawing Imports System.Drawing.Imaging Imports Bytescout.BarCode Module Program Sub Main() Try ' Create new barcode Using barcode As Barcode = New Barcode() barcode.RegistrationName = "demo" barcode.RegistrationKey = "demo" ' Set symbology barcode.Symbology = SymbologyType.PharmaCode ' Optional margins barcode.Margins = New Margins(5, 5, 5, 5) ' Set Value barcode.Value = "12345" ' Set PharmaCode options: ' barcode.Options.PharmaCodeSupplementaryCode = True ' barcode.Options.PharmaCodeSupplementaryBarColor = Color.Orange ' barcode.Options.PharmaCodeMiniature = True ' barcode.Options.PharmaCodeTwoTrack = True ' Save 300 DPI Image barcode.ResolutionX = 300 barcode.ResolutionY = 300 barcode.SaveImage("300dpi.png", ImageFormat.Png) ' Save 600 DPI Image barcode.ResolutionX = 600 barcode.ResolutionY = 600 barcode.SaveImage("600dpi.png", ImageFormat.Png) End Using ' Show image in default image viewer Process.Start("300dpi.png") Process.Start("600dpi.png") Catch ex As Exception Console.WriteLine(ex.Message) End Try Console.WriteLine("Press enter key to exit...") Console.ReadLine() End Sub End Module

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