This my codes:
Code:
using (var dlg = new PrintDialog())
{
// configure dialog
dlg.AllowSomePages = true;
dlg.AllowSelection = true;
dlg.UseEXDialog = true;
dlg.Document = Document;
// show allowed page range
using (var dlg = new PrintDialog())
{
// configure dialog
dlg.AllowSomePages = true;
dlg.AllowSelection = true;
dlg.UseEXDialog = true;
dlg.Document = Document;
// show allowed page range
private void Form1_Load(object sender, EventArgs e)
{
//See if any printers are installed
if (PrinterSettings.InstalledPrinters.Count <= 0)
{
MessageBox.Show("Printer not found!");
Leave a comment: