Want to build the ChatGPT based Apps? Start here
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
ahmed salah
1.7k
530
131.5k
How to print qr code in windows form c#
Dec 26 2016 3:01 PM
I work in visual studio 2015 windows form application and i need to print qr code by using c#
How can i print qr code generation ?
I generated using the following code :
if
(textBox1.Text ==
""
)
{
MessageBox.Show(
"Please Enter Value "
,
"Error"
);
textBox1.Focus();
}
else
{
using
(SaveFileDialog sv =
new
SaveFileDialog() { Filter =
"JPEG|.jpg"
, ValidateNames =
true
})
{
if
(sv.ShowDialog() == DialogResult.OK)
{
MessagingToolkit.QRCode.Codec.QRCodeEncoder encoder =
new
MessagingToolkit.QRCode.Codec.QRCodeEncoder();
encoder.QRCodeScale = 8;
string
encoding=
"UserName : "
+ textBox1.Text +
"\r\n"
+
"CardNo : "
+ textBox2.Text +
"\r\n"
+
"Address:"
+ textBox3.Text +
"\r\n"
+textBox5.Text;
Bitmap bmp = encoder.Encode(encoding);
pictureBox1.Image = bmp;
bmp.Save(sv.FileName, ImageFormat.Jpeg);
}
}
}
}
Im sorry i posted this in asp.net forum by wrong .
Reply
Answers (
4
)
Windows Phone 8.1 WCF Service Not Refreshing
MDI Container Help