TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
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
Forums
Monthly Leaders
Forum guidelines
ahmed salah
NA
530
149.9k
How to allow multithreading to generate 100000 datamatrix 2d
May 7 2017 7:17 PM
I generating 2d matrix barcode using c# then create image file
but when i make generating to 100000 files it make very slow and take too much time
so that i need to make multithreading but i dont know how
my code as following
string
root = @
"D:\"
+textBox4.Text;
if
(!Directory.Exists(root))
{
Directory.CreateDirectory(root);
}
matrixClass CLS =
new
matrixClass();
DataTable dt = CLS.ShowalldataSerial(textBox4.Text);
for
(
int
i = 0; i <= Convert.ToInt32(textBox1.Text); i++)
{
Serial = SRL.Rnd().ToString();
txt =
"UserID"
+ dt.Rows[0][0] +
"FirmName"
+ dt.Rows[0][1] +
"OrderNo"
+ dt.Rows[0][2] +
"BtachNo"
+ dt.Rows[0][3] +
"Quantity"
+ dt.Rows[0][4] +
"ProductName"
+ dt.Rows[0][5] +
"SerialNo"
+ Serial;
dm.DM(txt, Color.FromName(comboBox1.SelectedItem.ToString()), Color.White).Save(root +
"\\" + Serial + "
.emf", System.Drawing.Imaging.ImageFormat.Emf);
}
MessageBox.Show(
"Records generated success"
);
Reply
Answers (
4
)
AccessTockenUrl is null
multithreading ping application in c# windows form