Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP5-Report to ascii text file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00310059
Message ID:
00310075
Vues:
17
>Hello All,
>
>How do you get the font to follow a report from vfp5 to Word 2000.
>
>I'm printing a report to a text file that can be opened in Word 2000 and then be massaged.
>
>My default in the vfp5 report writer is arial 8pt. normal.
>
>My default in Word 2000 is the same.
>
>When I do this, "repo form strpconsignorstatement to file tempreport ascii" and, then load "Word" and open the document I get a "File Conversion" box, where I select "Plain text".
>
>When the document opens it contains the font "Courier New" 10 pt.
>
>Why won't it keep my default fonts? Is there something I can add to the vfp5 command to carry the fonts to the text file?
>

The problem is that the default font that Word has for imported text files is Courier 10 - a monospaced font which makes sense for columnar reports received as ASCII text. Obviously, as ASCII text, there are no embedded control characters.

You might want to investigate using Word Automation to get the file formatted for you, either by feeding the data in via a mailmerge, or by directly inserting the text line-by-line into the document after setting some defaults like font and page height and width.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform