Printdlg in 64-bit Apps Problem

Stimulsoft Reports.NET discussion
Post Reply
rksaskia
Posts: 58
Joined: Fri Apr 27, 2012 9:16 am

Printdlg in 64-bit Apps Problem

Post by rksaskia »

Hello,

in 64-bit applications you show the PrintEx dialog, instead of the normal print dialog.

From your source code:
StiPrintProvider.UseEXDialog = StiPrintProvider.UseEXDialog | size;

First Question: Why?

Now the problem:
In that dialog you must click twice to print. The dialog has not the focus.
32bit.png
32bit.png (84.62 KiB) Viewed 1769 times
64bit.png
64bit.png (94.96 KiB) Viewed 1769 times
Can you help?

Greetings
Attachments
PrintDlg.zip
(684.25 KiB) Downloaded 162 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Printdlg in 64-bit Apps Problem

Post by Alex K. »

Hello,

In the .NET framework 2/3 often appeared the following bug: the standard print dialog box appears behind the current window, and out of focus.
The PrintEx dialog always appears always ahead, but the focus is not always.

In the new framework (4 and higher) we did not check it if it is important - we will check it.

Thank you.
rksaskia
Posts: 58
Joined: Fri Apr 27, 2012 9:16 am

Re: Printdlg in 64-bit Apps Problem

Post by rksaskia »

Hello,

have they found a solution (printex-dialog no focus)?

Greetings
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Printdlg in 64-bit Apps Problem

Post by Alex K. »

Hello,

You can use the static option in your code:
Stimulsoft.Report.Print.StiPrintProvider.UseEXDialog = false;

Also, some clients on the Windows 7 64 bit the problem of the print dialog not showing up and immediately returning Canceled.

Thank you.
Post Reply