Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

generate qr code c#

QRCodeGenerator qrGenerator = new QRCodeGenerator();
QRCodeGenerator.QRCode qrCode = qrGenerator.CreateQrCode(textBoxQRCode.Text, QRCodeGenerator.ECCLevel.Q);
pictureBoxQRCode.BackgroundImage = qrCode.GetGraphic(20);
Comment

qrcode c#

privatevoid Form1_Load(object sender, EventArgs e){OleDbConnection aConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/Demo/BarcodeDemoData.mdb");aConnection.Open();OleDbDataAdapter dataAdapter = new OleDbDataAdapter("select * from Customer", aConnection);DataSet ds = new DataSet();dataAdapter.Fill(ds);//add a new column named "Barcode" to the DataSet, the new column data type is byte[]ds.Tables[0].Columns.Add(new DataColumn("Barcode", typeof(byte[])));Matrix Barcode = new Matrix();Barcode. MatrixBarcode = MatrixBarcode. QRCode;foreach (DataRow dr in ds.Tables[0].Rows){Barcode.BarcodeData = (int)dr["CustomerId"] + "";byte[] imageData = Barcode.drawBarcodeAsBytes();dr["Barcode"] = imageData;}CrystalReport1 rpt = new CrystalReport1();rpt.SetDataSource(ds);this.crystalReportViewer1.ReportSource = rpt;aConnection.Close();
Comment

PREVIOUS NEXT
Code Example
Csharp :: Unity Interstitial ad C# 
Csharp :: multithreading in c# 
Csharp :: 1 line if c# 
Csharp :: github action get commit tag 
Csharp :: sorting a list of objects in c# 
Csharp :: unity create empty gameobject in code 
Csharp :: list search c# 
Csharp :: c# get foreground window 
Csharp :: unity no serializefield 
Csharp :: c# linq distinct group by nested list 
Csharp :: json property c# 
Csharp :: how to read particular line of file in c# 
Csharp :: c# unescape string 
Csharp :: c# list of properties from list of objects 
Csharp :: asp.net mvc image upload 
Csharp :: unity create 3d object in script 
Csharp :: unity send post request json 
Csharp :: c# remove all punctuation from string 
Csharp :: c# generate guid from hash 
Csharp :: c# get process file location 
Csharp :: how to create public variable in c# 
Csharp :: C# new form 
Csharp :: how to compare datetime in c# 
Csharp :: enum c# 
Csharp :: all Substring of String 
Csharp :: linq query in c# 
Csharp :: autofac .net core 6 
Csharp :: wpf how to focus on element 
Csharp :: c# normalize value 
Csharp :: why is called c# 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =