Image Viewer CP Pro SDK ActiveX

Image Viewer CP Pro SDK ActiveX

Platform : Windows 10, Windows 8, Vista, Windows 7, XP

It is a PDF Viewer and Document Viewer SDK , Export to PDF ,Image processing, 1D and 2D Barcode Reader, Writer, DICOM and OCR with C#, C , VB.NET , VB, Delphi, Vfp, MS Access.

Popular Solution Go   Back

VB.NET - How to generate QR Code using VB.Net

Step 1: To install the Image Viewer CP Pro ActiveX Control, begin by launching the setup file (imageviewercpprosetup.exe). Select the desired installation folder for the Image Viewer CP Pro ActiveX and continue with the installation on your development computer.

Step 2: Create New Visual Basic Project, select Windows Application.

Step 3: The next step is to install Image Viewer CP Pro ActiveX in ToolBox. Select Toolbox, select Components item, right click mouse button, select Choose Items...

Step 4: Select COM Components tab, select Image Viewer CP Pro ActiveX Control , click OK.

Step 5: Now you will see the Image Viewer CP Pro ActiveX's icon on toolbox, drag it to form. 

Step 6: Design the UI same as following

Step 7: When pressing the "Generate QR Code” button our sample’s code will call QRWriterSave method to generate the QR code to JPEG image.

Public Function QRWriterSave(
 ByVal strFileName  As String, _
 ByVal strFileType  As String, _
 ByVal strValue  As String, _
 ByVal ieccLevel  As long, _
 ByVal iVersion  As long, _
 ByVal iBorderWidth  As long, _
 ByVal clrFg  As Color, _
 ByVal clrBg  As Color, _
 ByVal iScale  As double

QR Code can store website URL's, plain text, phone numbers, email addresses and pretty much any other alphanumeric data.

You may define QR Code's error level, Version number, Border size, foreground color and background color.

Remember if you want to use QRWriterSave method, you need buy our  QR Barcode Writer Plug-in.

Step 8: If you run this project now, you will see black color rectangle. In this sample, you do not need display the image. You may set the width and height properties of Image Viewer CP Pro ActiveX  to 1 pixel, then the user will not see it.

Step 9: Download the sample source code from