dgowland Posted March 8, 2018 Share Posted March 8, 2018 Not a typical "mail-merge" app more of a standard letter based on inputs. I am working on the following: Load existing docx into a preview panel. Done this stripped xml and wrapped <p></p> around newlines (\n). Highlight text in panel to create field So I use the mouse to highlight text. on release a pop-up arrives and replaces the text with an input from the user for the field-name i.e {{Name}}. This is stored in a grid on another panel. So far this is a standard "mail merge" markup facility. Your thoughts Within the document there are paragraphs than can be one or the other. (Boolean Field) and (Drop down - Select). All the markup is held in a mySQL database on completion. Now that I have written the post I believe it becoming clearer in my mind. Any thoughts of doing it differently or is there something similar already. Quote Link to comment Share on other sites More sharing options...
ignace Posted March 10, 2018 Share Posted March 10, 2018 This is doable with a simple textarea with Selection. Using a WYSIWYG may be easier as they may provide the necessary tools and a simple way to get the highlighted text. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.