Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to save a report to html at runtime
Message
De
28/09/2000 08:56:09
 
 
À
21/08/2000 15:14:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00407475
Message ID:
00421970
Vues:
16
Jason,

I haven't seen a solution to your problem.

Like you, I figured there must be an easy way to do this. One of my clients asked me to do something like this last week, so I played around with it and came up with a "satisfactory" solution.

1. Design your report as you normally would, for a paper printout.

2. Add html tags to the report. I keep all tags in a Notepad txt file so I can cut and paste.

The following tags should be the first entries in your header (minus the spaces):

< HTML >< HEAD >< TITLE >
VFP Sample to htm file
< /TITLE >< /HEAD >< BODY >
< PRE >

Your report (previously designed) goes here. You can place html tags for font, bold, color, size, etc. throughout the report just as you would if you were designing a basic web page.


The following tags should be the last entries in your footer:

< /PRE >< /BODY >< /HTML >

3. To generate the report, use a command similar to the following:

report form htmltest to file htmltest.htm ascii

(You can save it to any directory you choose, for web access or an email attachment)

It's really that easy.........you were right:>)

Dale


>I need to be able to save a report to an html file at runtime. I think this is probably an easy one, but I can't seem to figure it out.
>
>Thanks in advance,
>Jason Mower
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform