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
Murli Jadhav
NA
258
16.2k
How do I print barcode appears on panel using C#
Jul 13 2017 5:05 AM
float x = e.MarginBounds.Left;
float y = e.MarginBounds.Top;
Bitmap bmp = new Bitmap(this.panel2.Width, this.panel2.Height);
this.panel2.DrawToBitmap(bmp, new Rectangle(0, 0, this.panel2.Width, this.panel2.Height));
e.Graphics.DrawImage((Image)bmp, 0, 0
System.Drawing.Printing.PrintDocument doc = new System.Drawing.Printing.PrintDocument();
doc.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(printDocument1_PrintPage);
PaperSize ps = new PaperSize("", panel2.Width, panel2.Height);
//print...
printDocument1.DefaultPageSettings.PaperSize = ps;
doc.PrinterSettings.Copies = 1;
doc.Print();
By this method it is possible to print barcode on THERMAL PRINTER??? Any Suggtions?? Or Source code??
Reply
Answers (
3
)
how to do crud operation in mvc c#
How to export HTML table data to MS-Excel Pivot Table?