I'm continuing to make good progress with the wxRichTextCtrl. This morning,
I decided to look into printing issues. So far, so good. It's pretty
simple. Here's my OnPrint code:
But I'd like to do a Print Preview. When I replace PrintBuffer(buf) with
PreviewBuffer(buf), the program crashes with an unhandled exception error
message on Windows. On OS X, it shows a print preview window of my first
page, but if I try to go to the next page, I get a crash saying the program
quit unexpectedly. I've also tried PreviewFile(), but nothing at all
happens when I call that on either platform.
Any ideas what I might be doing wrong here?
David K. Woods, Ph.D.
Researcher, Transana Lead Developer
Wisconsin Center for Education Research
University of Wisconsin, Madison http://www.transana.org
PreviewBuffer seems to be working fine in my current 2.8 workspace, so I'm guessing that there was a bug on the C++ side that has been fixed. It looks like there is going to be a 2.8.11 release in a couple weeks, so I'll try to get a wxPython build out around the same time.
···
On 1/28/10 9:47 AM, David wrote:
I'm continuing to make good progress with the wxRichTextCtrl. This morning,
I decided to look into printing issues. So far, so good. It's pretty
simple. Here's my OnPrint code:
But I'd like to do a Print Preview. When I replace PrintBuffer(buf) with
PreviewBuffer(buf), the program crashes with an unhandled exception error
message on Windows. On OS X, it shows a print preview window of my first
page, but if I try to go to the next page, I get a crash saying the program
quit unexpectedly. I've also tried PreviewFile(), but nothing at all
happens when I call that on either platform.