Print Window Form with high quality text
i want to print window form with high quality output text on a thermal printer anyone help me plzzzz i am in trouble plzzzzzzzzzzzzzzzz bundle of thanks in advance
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Bhabani prasad Dash168 reputationPosted Jun 28, 2013, 12:50 AM EDT
Mubashir Ajaib11 reputationPosted Jun 28, 2013, 12:54 AM EDT
Bhabani prasad Dash168 reputationPosted Jun 28, 2013, 1:01 AM EDT
Mubashir Ajaib11 reputationPosted Jun 28, 2013, 1:06 AM EDT
Bhabani prasad Dash168 reputationPosted Jun 28, 2013, 1:07 AM EDT
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jun 28, 2013, 1:11 AM EDT
http://social.msdn.microsoft.com/Forums/vstudio/en-US/69301374-425d-4f7e-a11b-aab4c520f962/increasing-print-quality-of-images
if any problem reply
if it helps you mark it as answered
Mubashir Ajaib11 reputationPosted Jun 28, 2013, 1:32 AM EDT
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing.Printing;
namespace CGC_Order_Taker
{
public partial class Bill : Form
{
private PrintDocument printDocument1 = new PrintDocument();
public Bill()
{
printDocument1.PrintPage += new PrintPageEventHandler(printDocument1_PrintPage); InitializeComponent();
}
Bitmap memoryImage;
private void CaptureScreen()
{
Graphics myGraphics = this.CreateGraphics();
Size s = this.Size;
memoryImage = new Bitmap(s.Width * 600, s.Height * 600, myGraphics);
Graphics memoryGraphics = Graphics.FromImage(memoryImage); memoryGraphics.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality; memoryGraphics.CopyFromScreen(this.Location.X, this.Location.Y, 0, 0, s);
}
private void printDocument1_PrintPage(System.Object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
e.Graphics.DrawImage(memoryImage, 0, 0);
}
public void label6_Click(object sender, EventArgs e)
{
CaptureScreen();
printDocument1.Print();
this.Close();
}
}
}
Mubashir Ajaib11 reputationPosted Jun 28, 2013, 1:36 AM EDT
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing.Printing;
namespace CGC_Order_Taker
{
public partial class Bill : Form
{
private PrintDocument printDocument1 = new PrintDocument();
public Bill()
{
printDocument1.PrintPage += new PrintPageEventHandler(printDocument1_PrintPage); InitializeComponent();
}
Bitmap memoryImage;
private void CaptureScreen()
{
Graphics myGraphics = this.CreateGraphics();
Size s = this.Size;
memoryImage = new Bitmap(s.Width * 600, s.Height * 600, myGraphics);
Graphics memoryGraphics = Graphics.FromImage(memoryImage); memoryGraphics.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality; memoryGraphics.CopyFromScreen(this.Location.X, this.Location.Y, 0, 0, s);
}
private void printDocument1_PrintPage(System.Object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
e.Graphics.DrawImage(memoryImage, 0, 0);
}
public void label6_Click(object sender, EventArgs e)
{
CaptureScreen();
printDocument1.Print();
this.Close();
}
}
}
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jun 28, 2013, 2:25 AM EDT
it may help you
if it helps you mark it as answered
Mubashir Ajaib11 reputationPosted Jun 28, 2013, 3:34 AM EDT