I'm trying to user wxRichTextPrinting to print out the content of a wxRichTextCtrl. The code ist like this:
Code: Select all
wxRichTextPrinting *rtp = new wxRichTextPrinting ();
wxRichTextBuffer buf = richtextctrl->GetBuffer ();
rtp->PreviewBuffer (buf);
//rtp->PrintBuffer (buf);
What am I doing wrong - and: Is there any way to solve this problem?
Thanks for your help!