I use py25 wx2880 (It's the same problem in previous versions)
Print is made many times in my programs with wx.html.HtmlPrintout. All works fine !...
In a particular situation (accounting program), the user needs to print 6,000 pages and then the program crashes with the message joined (Error.png).
In addition, some pages were printed, but the count of pages appear (@PAGENUM@ / @PAGESCNT@) : Page 1/999 !?...
I think that the 999 is hard coded as a "reasonable upper limit" in places where the true count can't be calculated.
I have found in "include/wx/html/htmldefs.h" : "#define wxHTML_PRINT_MAX_PAGES 999".
Is it possible to override it in my python program without to compile a specific package ?
You can ask about it on wx-users to be sure, but I don't think so. Take a look at how that constant is used in src/html/htmprint.cpp.
I know how to compile wxPython from source under Linux, but no under Windows and in this particular situation, he is a Windows user.
A possible alternative would be to have IE do the printing instead of wx. You could write the data to a file and then use COM to cause IE to load and print that file.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!