hi,
how can i enable the "current page" option in a print dialog?
i could not find a wxPrintDialogData::Enable...(bool) function like with all the other options.
thank you!
enable "print current page" in wxPrintDialogData
Re: enable "print current page" in wxPrintDialogData
This is years late, but:
Apparently wxWidgets uses PrintDlg() to show the print dialog, but only PrintDlgEx() can support "current page" selection.
In wxWidgets version 3.1.0.0 this is in src\msw\printdlg.cpp line 755:
I've been trying to figure out if there is a way to get the desired behavior just using PringDlg() but so far nothing. In my application, I'll be calling PrintDlgEx() manually to get user options and then I'll just have wxWidgets do the printing silently.
Apparently wxWidgets uses PrintDlg() to show the print dialog, but only PrintDlgEx() can support "current page" selection.
In wxWidgets version 3.1.0.0 this is in src\msw\printdlg.cpp line 755:
Code: Select all
int wxWindowsPrintDialog::ShowModal()
{
// ...
bool ret = (PrintDlg( pd ) != 0);
// ...
}
Operating System: Windows 1-, 64-bit / macOS 13.4.1, Apple M1
Compiler: Visual Studio 2019 / Xcode 14.3.1
wxWidgets version: 3.1.0 / 3.2.2
Compiler: Visual Studio 2019 / Xcode 14.3.1
wxWidgets version: 3.1.0 / 3.2.2
Re: enable "print current page" in wxPrintDialogData
Could you modify the wx sources and create a patch?
If using PrintDlgEx has any side-effects, you could discuss it on the wx-dev mailing list first.
https://groups.google.com/forum/#!forum/wx-dev
If using PrintDlgEx has any side-effects, you could discuss it on the wx-dev mailing list first.
https://groups.google.com/forum/#!forum/wx-dev
Use the source, Luke!