ByteScout BarCode Generator SDK - C# - QR Code Barcode With Calender Entry - ByteScout

ByteScout BarCode Generator SDK – C# – QR Code Barcode With Calender Entry

  • Home
  • /
  • Articles
  • /
  • ByteScout BarCode Generator SDK – C# – QR Code Barcode With Calender Entry

QR code barcode with calender entry in C# using ByteScout Barcode SDK

Tutorial: how to do QR code barcode with calender entry in C#

We’ve created and updating regularly our sample code library so you may quickly learn QR code barcode with calender entry and the step-by-step process in C#. ByteScout Barcode SDK helps with QR code barcode with calender entry in C#. ByteScout Barcode SDK is the robost library (Software Development Kit) that is designed for automatic generation of high-quality barcodes for printing, electronic documents and pdf. All popular barcode types are supported from Code 39 and Code 129 to QR Code, UPC, GS1, GS-128, Datamatrix, PDF417, Maxicode and many others. Provides support for full customization of fonts, colors, output and printing sizes. Special tools are included to verify output quality and printing quality. Can add generated barcode into new or existing documents, images and PDF.

You will save a lot of time on writing and testing code as you may just take the code below and use it in your application. To do QR code barcode with calender entry in your C# project or application you may simply copy & paste the code and then run your app! Enhanced documentation and tutorials are available along with installed ByteScout Barcode SDK if you’d like to dive deeper into the topic and the details of the API.

Free trial version of ByteScout Barcode SDK is available on our website. Get it to try other samples for C#.

Try it today: Get 60 Day Free Trial or sign up for Web API

Program.cs
      
using System; using System.Diagnostics; using Bytescout.BarCode; namespace QRCodeWithCalenderEntry { class Program { static void Main(string[] args) { try { // Create new barcode using (Barcode barcode = new Barcode()) { // Set symbology barcode.Symbology = SymbologyType.QRCode; // Get QRCode value in CalenderEntry format barcode.Value = GetCalenderEntryFormatText(); // Save barcode to image barcode.SaveImage("result.png"); } // Show image in default image viewer Process.Start("result.png"); } catch (Exception ex) { Console.WriteLine("Error: " + ex.Message); Console.WriteLine("Press enter key to exit..."); Console.ReadLine(); } } /// <summary> /// Return Calender Entry Format /// </summary> /// <returns></returns> private static string GetCalenderEntryFormatText() { return @"BEGIN:VCALENDAR BEGIN:VEVENT DTSTART:20181113T100000Z DTEND:20181113T150000Z SUMMARY:New Calendar Entry DESCRIPTION:Description Text LOCATION:Chicago RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3 END:VEVENT END:VCALENDAR"; } } }

Try it today: Get 60 Day Free Trial or sign up for Web API

QRCodeWithCalenderEntry.csproj
      
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ProjectGuid>{99735776-2956-463D-9795-EBCE16928C30}</ProjectGuid> <OutputType>Exe</OutputType> <RootNamespace>QRCodeWithCalenderEntry</RootNamespace> <AssemblyName>QRCodeWithCalenderEntry</AssemblyName> <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> <FileAlignment>512</FileAlignment> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PlatformTarget>AnyCPU</PlatformTarget> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> <OutputPath>bin\Debug\</OutputPath> <DefineConstants>DEBUG;TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PlatformTarget>AnyCPU</PlatformTarget> <DebugType>pdbonly</DebugType> <Optimize>true</Optimize> <OutputPath>bin\Release\</OutputPath> <DefineConstants>TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> <ItemGroup> <Reference Include="Bytescout.BarCode, Version=4.80.0.993, Culture=neutral, PublicKeyToken=f7dd1bd9d40a50eb, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> <HintPath>c:\Program Files\Bytescout BarCode Reader SDK\net2.00\Bytescout.BarCodeReader.dll</HintPath> </Reference> <Reference Include="System" /> </ItemGroup> <ItemGroup> <Compile Include="Program.cs" /> </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> </Project>

Try it today: Get 60 Day Free Trial or sign up for Web API

MORE INFORMATION

Get 60 Day Free Trial or Visit ByteScout Barcode SDK page

Explore ByteScout Barcode SDK documentation

WEB API VERSION

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next