I'm trying to write a small text editor in wxWidgets, using wxDev-Cpp. So far, all is well. However, for the life of me I can't work out how to print (As in, onto paper). As far as I can deduce, I need to use the wxPrinter class. Browsing the wxWidgets manual, though, proved a fruitless experience, as it might as well be written in chinese! Can anyone give me a simple way of printing the contents of an edit control?

Ben Ward

Re: Printing in wxWidgets 80 80

I'm trying to write a small text editor in wxWidgets, using wxDev-Cpp. So far, all is well. However, for the life of me I can't work out how to print (As in, onto paper). As far as I can deduce, I need to use the wxPrinter class. Browsing the wxWidgets manual, though, proved a fruitless experience, as it might as well be written in chinese! Can anyone give me a simple way of printing the contents of an edit control?

Ben Ward

When I use wxDevC++, I get a 'can't find -lwxmsw28' error... How did you get it to work?

Re: Printing in wxWidgets 80 80

When I use wxDevC++, I get a 'can't find -lwxmsw28' error... How did you get it to work?

Save yourself some pains and download codelite

Re: Printing in wxWidgets 80 80

I haven't done Printing but it my advice is that you post on wx-users mailing list. But google did bring these:

http://docs.wxwidgets.org/stable/wx_printingoverview.html
http://wiki.wxwidgets.org/Printing
http://www.informit.com/articles/article.aspx?p=405047&seqNum=4

Also I hope you have checked samples on printing found at wxDIRECTORY/samples

Re: Printing in wxWidgets 80 80

Save yourself some pains and download codelite

Has the codelite visual designer for wxWidgets like wxDevC++ ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.