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!

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?[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

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 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."

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.

thanks buddies,
let me check Urlich's solution If I hit a wall I will go for Aurias

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?[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

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?[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]

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.

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.)

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.

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

Thank you. I wanted to write to PDF regardless of how. So its a fine solution for me.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?[Ubuntu 15.04/Windows 10 Pro - GCC/MinGW, CodeLite IDE et al]