ByteScout Premium Suite - C# - Generate pharmacode 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 – C# – Generate pharmacode with barcode sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – C# – Generate pharmacode with barcode sdk

How to generate pharmacode with barcode sdk in C# using ByteScout Premium Suite

Learn to generate pharmacode with barcode sdk in C#

ByteScout simple and easy to understand tutorials are planned to describe the code for both C# beginners and advanced programmers. What is ByteScout Premium Suite? It is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can help you to generate pharmacode with barcode sdk in your C# application.

This prolific sample source code in C# for ByteScout Premium Suite contains various functions and other necessary options you should do calling the API to generate pharmacode with barcode sdk. IF you want to implement the functionality, just copy and paste this code for C# below into your code editor with your app, compile and run your application. Use of ByteScout Premium Suite in C# is also described in the documentation included along with the product.

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

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

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

Program.cs
      
using System; using System.Diagnostics; using System.Drawing; using System.Drawing.Imaging; using Bytescout.BarCode; namespace GeneratePharmaCode { class Program { static void Main(string[] args) { try { // Create new barcode using (Barcode 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 = barcode.ResolutionY = 300; barcode.SaveImage("300dpi.png", ImageFormat.Png); // Save 600 DPI Image barcode.ResolutionX = barcode.ResolutionY = 600; barcode.SaveImage("600dpi.png", ImageFormat.Png); } // Show image in default image viewer Process.Start("300dpi.png"); Process.Start("600dpi.png"); } catch (Exception ex) { Console.WriteLine(ex.Message); } Console.WriteLine("Press enter key to exit..."); Console.ReadLine(); } } }

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