Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bold/Italic in a memo field something I could do in FP 2
Message
De
07/06/1998 10:10:53
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
04/06/1998 16:36:55
Jeroen Naus
Harte-Hanks Europe
Hasselt, Belgique
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00103772
Message ID:
00105611
Vues:
23
>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform