Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Life is getting harder with PRINTING!!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00708279
Message ID:
00708464
Vues:
12
How did you get around the html page name and page number being printed on the bottom of every sheet?
>Hi Cyrus,
>
>You need to abandon the old way of printing in FP DOS.
>
>I just took on a project where they have some 200+ reports (none of which were written with the report writer and all of which were sending formatting codes directly to the printer -Eeeeeek!).
>
>Basically, what I did was:
>
>1) Re-Direct the output to a temp file.
>
>
>
>set device to FILE(GETENV("TEMP")+'\prtemp.txt')
>
>
>
>2) STRTRAN the page end marker to a CSS2 PAGEBREAK style
>
>
>
>*-- closes the temp file
>set device to screen
>
>*-- shows print dialog
>m.junk=FILETOSTR(GETENV('TEMP')+'\prtemp.txt')
>m.junk=STRTRAN(m.duh,CHR(12),CHR(13)+'<DIV CLASS="PAGEBREAK"></DIV>'+CHR(13))
>
>
>
>3) I then sucked the text file into an HTML wrapper and instanced a browser object to preview/print the report.
>
>It worked like a charm!
>
>Thank God! I didn't have to rewrite those reports. I would have gone literally nuts!!!
>
>
>Good luck!!
>
>If you want the details, let me know.
>
>Hugh
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform