WYSIWYG Form generator

227 views
Skip to first unread message

Gilbert Vaillancourt

unread,
May 30, 2023, 11:39:06 AM5/30/23
to Harbour Minigui
Hi all,

My current project requires to developpe a WYSIWYG Form Generator for the user to created is Business Forms. It needs to allow placement of graphics and text and also reference variables that will be replaced by database field values. Then it needs to be saved as a PDF format before printing.

I tried with WORDPAD, creating .RTF file where I can place logos, signature and so on, text with font and size, and field reference that I replace with data using MEMOREAD, STRTRAN and MEMOWRITE. But the end result is catastrophic.

RICHEDITBOX does not allow to place a .JPG image as background so my options are very limited.

If anyone has an idea on how to do this or any hints that could put me on the right path, I would appreciate.

Regards
Gilbert


Ivanil Marcelino

unread,
May 31, 2023, 7:47:47 AM5/31/23
to Harbour Minigui
Good morning;

I have 2 suggestions:

If the corporate form is already mature enough and will not undergo further adjustments, the best solution is to go straight to the PDF;
Now, if the form can still undergo fine-tuning, I suggest using Word itself for this task; create a document template, and instead of variable information, use tags, then ask Word itself to replace them for you; take a look at this template that has what you need;

https://groups.google.com/g/harbour-users/c/tOPZC5wuhXQ/m/lSJJd0cOAgAJ

=Find

Just remember to work with a copy of the template so that you don't lose it during the first processing.

C.J. Koot

unread,
Jun 1, 2023, 11:15:45 AM6/1/23
to Harbour Minigui
Hello Gilbert,
In my program the user can make templates (kind of WYSIWYG) with text, images, logo's on it. Also the user can place database-fields an if the template is printed, the database fields are filled the right data.
I believe you speak Dutch? In that case you can take a look at www.plantenkennis.nl, where you can download a light version of my program to see how it works. If you are interested I can share some code with you (the whole program is over 100.000 lines).
You can send me a mail on my private mail info at plantenkennis.nl

Kind regards,

rene Koot

Op woensdag 31 mei 2023 om 13:47:47 UTC+2 schreef Ivanil Marcelino:
Reply all
Reply to author
Forward
0 new messages