Re: Problem using wxHtmlEasyPrinting
David Connet <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
On 5/15/2023 9:55 AM, David Connet wrote: > Something happened between 3.2.2 and trunk - I can no longer bring up > the print dialog on Windows (10 and 11) when clicking 'Print' from the > Preview window. Tracing in, I can see in printdlg.cpp that it has > changed from calling PrintDlg to PrintDlgEx - when that is called, I > get an E_INVALIDARG return code. I've tried tracing, but got lost... > > Any ideas on what to look for? > > Dave > Ah ha! In the past, I did not set the from/to range (or min/max) - and defaulted to all-pages. With moving to PrintDlgEx, that no longer works. Before creating my wxPrinter, I now set the from/to pages, and then SetAllPages (if that isn't done, the page range radio is selected by default). This is something that should probably be called out in release notes... Dave -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/a19ebd1c-e313-f184-ffc7-973fa64d648f%40agilityrecordbook.com.