Hi There
Should I give up on trying to create a new RTF datawindow or is there some special way I need to implement Rich Text Format?
The IDE crashes on a regular basis opening and closing a new RTF window which I created to try to do a mail merge
No special formatting added yet, just a logo on the header line (tried both jpg and png) and about 12 columns from a sql query as fields.
My clients all have Word installed and I'm thinking of using that for the mail merge but its a lot more indirect and I need a direct answer: If I am creating a new function should I avoid RTF datawindows?
I'm on Appeon PowerBuilder Universal Edition Version 2019 Build 2082
I've attached the latest datawindow in question. Barely begun I'm afraid.
Cheers
Brett
The "built-in Rich text control" does do some things better than the other one, but then .. has it's own bugs.
Warning: the SelectedText() function, chops off characters of text when the text starts with enters and is followed by enters, although I think it's fixed on 2019. (broken in the beta R2 2019 though!). https://www.appeon.com/standardsupport/search/view?id=3600
Just do a search on the bug site to see if it's really a good solution for you. (most of the bugs also apply to the rte datawindow by the way).
An alternative way, would be to use a HTML editor using the (for now MS) browser control. I think there's some sample of that on topwizprogramming.com by Roland Smith. There are also other html online freeware editors.
Maybe the most secure thing is to use MS Word for now, as your going to need OLE anyway to send your email.
My advice, since you are on 2019 and certain bugs have been fixed, is to simply try it. If it doesn't work, go html or word
or .... do something like what I'm doing, build your own RTE (I'm not totally done with that one though):
https://community.appeon.com/index.php/qna/q-a/outlook-email-using-richertext-activex
Any questions, let me know.