cancel
Showing results for 
Search instead for 
Did you mean: 

How to show PrintDialog Box (Crystal Report)

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello

When you debug, itt will be started in the background. When you compile and run it will be started in the foreground, so you do not have to press the ALT+TAB.

regards

J