Skip to Content
0
Former Member
Jul 11, 2010 at 05:35 PM

How to show PrintDialog Box (Crystal Report)

19 Views

Hi all,

Help me, Why printdilog hide behind.

Code:

this.printDialog.Document = this.printDocument;

if (this.printDialog.ShowDialog() == DialogResult.OK)

{

int nCopy = this.printDocument.PrinterSettings.Copies;

int sPage = this.printDocument.PrinterSettings.FromPage;

int ePage = this.printDocument.PrinterSettings.ToPage;

string printerName = this.printDocument.PrinterSettings.PrinterName;

// Call Crystal Report to print

rpt.PrintOptions.PrinterName = printerName;

rpt.PrintToPrinter(nCopy, false, sPage, ePage);

}

I Want to appear. Without pressing Alt + Tab.

Thank you for answer.