>How can you easily print the HTML code you generate ? use the ActiveX IE4 control ? How fast is it ?
>Thanks for the tip it is defitely worth checking into.
So far I've done it in just a couple of occasions, when FPD users wanted to print fancy invoices, with logo and cute fonts. So I wrote a HTM invoicing routine, and it always goes to the same file at the same location. Then I taught them to keep Netscape open and where to click.
I have half-written a frx2htm.prg, which actually generates a .prg which will generate a .htm file, but it's rather buggy and uninteligent; nevertheless it works, just producing a .prg which will give you lousy .htm to start with. If I had more need for it, I'd have fiddled more with it.
As for speed, the speed of generating a .htm is practically the speed of text merge, i.e. practically stuffing strings into low level file, so it's quite quick. Since I'm doing it from DOS and therefore using an external browser, you may imagine my beard got double longer once I tried to
if alert("print the fancy invoice","yes;no")
run d:\progra~1\netscapeetscape.exe "c:\scratch\faktur2.htm" /print
endif
...on a 80MHz 486 with only 8M, with plus! installed, and they need it in triplicate... so I've told them not to use this, but to keep Netscape open in another task, keep an eye on the invoice, refresh when they make a new one, and print as they like.