Free Trial
Web API version
Licensing
Request A Quote
HAVE QUESTIONS OR NEED HELP? SUBMIT THE SUPPORT REQUEST FORM or write email to SUPPORT@BYTESCOUT.COM
QR Code With CalenderEntry | VB.NET
Program.vb:
VB
Imports Bytescout.BarCode Module Program Sub Main() Try ' Create new barcode Dim barcode As 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 ex As Exception Console.WriteLine("Error: " + ex.Message) Console.WriteLine("Press enter key to exit...") Console.ReadLine() End Try End Sub ''' <summary> ''' Return Calender Entry Format ''' </summary> ''' <returns></returns> Private Function GetCalenderEntryFormatText() As String 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" End Function End Module