How do you produce your HTML/PDF documents
Jose Lerebours
fpgroups at gmail.com
Mon Aug 17 14:39:45 PDT 2020
On 8/17/20 5:24 PM, Fairlight via Filepro-list wrote:
> HTML and CSS, native open/writeline/close. As complex as necessary.
> Actually, OneGate has merge functionality now, so I only need to write
> out a merge file.
A while back I wrote a filePro routine that one could call to scan
through a given document, search for macros (that is what I called
it) such as &fp###; or &fpaa; $fpwx; and the routine will replace
the referenced macro with the value of the field (###) or the dummy
variable (aa, wx ...).
This came out of the need to produce receipt confirmation, work
orders and the likes and send them via email (this goes back early 2K).
I used arrays such as fields(999):1 and dummies(626):aa to reference
source fields.
What made this approach very flexible was the ability to produce any form,
in any design and push it to the application without any changes to the
filePro code. Those days use of WYSIWYG editors were very popular and so,
I took full advantage of it.
I do not recall if I defined the dummy array as global so that I could
use the
routine as a "call" or "chain" ... I tell you one thing, it was pretty
slick and
surprisingly simple and reliable solution to what, back then, seem like
a big
deal.
So, if you had something like:
<td>Name</td><td>&fp120;</td>
&fp120; would had been replaced with whatever value field 120 held.
Is your OneGate merge similar to this?
More information about the Filepro-list
mailing list