that will be one of my next assignment in my project soon. If anyone have idea on how the two can work together I would be happy to get direction. I'm not very conversant with wxPDF.
Any direction/idea or anything is appreciated!
has anyone worked with wxRichtextctrl and wxPDFDoc? Topic is solved
- evstevemd
- Part Of The Furniture
- Posts: 2409
- Joined: Wed Jan 28, 2009 11:57 am
- Location: United Republic of Tanzania
has anyone worked with wxRichtextctrl and wxPDFDoc?
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Re: has anyone worked with wxRichtextctrl and wxPDFDoc?
If you want to output the contents of a single wxRichtextCtrl only then writing a specialized file handler transforming the contents to PDF could be an option. In the documentation of wxRichtextCtrl it reads "Custom file formats can be supported by creating additional file handlers and registering them with the control."evstevemd wrote:that will be one of my next assignment in my project soon. If anyone have idea on how the two can work together I would be happy to get direction. I'm not very conversant with wxPDF.
Any direction/idea or anything is appreciated!
If you want to output the contents of a window which has a wxRichtextCtrl among other controls you might try to use wxPdfDC which was added to the wxPdfDocument component recently.
Regards,
Ulrich
Maybe you can just use the various printing classes, like :
http://docs.wxwidgets.org/trunk/classwx ... nting.html
On Linux and OSX, printing to PDF is available by default; and on Windows, printing to PDF only requires installing the PDFCreator freeware
http://docs.wxwidgets.org/trunk/classwx ... nting.html
On Linux and OSX, printing to PDF is available by default; and on Windows, printing to PDF only requires installing the PDFCreator freeware
"Keyboard not detected. Press F1 to continue"
-- Windows
-- Windows
- evstevemd
- Part Of The Furniture
- Posts: 2409
- Joined: Wed Jan 28, 2009 11:57 am
- Location: United Republic of Tanzania
Re: has anyone worked with wxRichtextctrl and wxPDFDoc?
is it supporting wxRTC yet?
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Re: has anyone worked with wxRichtextctrl and wxPDFDoc?
Well, the wxPdfDC sample coming with wxPdfDocument demonstrates, how to print the contents of a wxRichTextCtrl to PDF using a wxPdfPrinter instance. That is, the answer to your question is yes.evstevemd wrote:is it supporting wxRTC yet?
However, if you are looking for a wxRichTextFileHandler that is capable of producing PDF output, the answer is no. Such a file handler for wxRichTextCtrl unfortunately wasn't implemented yet. (And currently I don't have any plans to do that.)
Regards,
Ulrich
- evstevemd
- Part Of The Furniture
- Posts: 2409
- Joined: Wed Jan 28, 2009 11:57 am
- Location: United Republic of Tanzania
Re: has anyone worked with wxRichtextctrl and wxPDFDoc?
Thank you. I wanted to write to PDF regardless of how. So its a fine solution for me.utelle wrote:Well, the wxPdfDC sample coming with wxPdfDocument demonstrates, how to print the contents of a wxRichTextCtrl to PDF using a wxPdfPrinter instance. That is, the answer to your question is yes.evstevemd wrote:is it supporting wxRTC yet?
However, if you are looking for a wxRichTextFileHandler that is capable of producing PDF output, the answer is no. Such a file handler for wxRichTextCtrl unfortunately wasn't implemented yet. (And currently I don't have any plans to do that.)
Regards,
Ulrich
I didn't knew there was such sample, thank you for pointing that out.
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?