Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COPY TO Word Document
Message
De
06/10/2002 18:40:59
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
06/10/2002 16:27:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00708219
Message ID:
00708235
Vues:
8
>I have an export function in an application which uses for example:
>
>COPY TO c:\test.xls xls
>
>The users always want to copy the Excel file into word so have been asked if I can import it directly into word.

Tim,

It's hard to imagine that users would want data in Word unless it's a small amount of data or they've got a table in Word that the data goes into. Craig suggested a CSV file which is comma delimited and has the field names at the top, but it won't be nice to look at since the columns won't line up nicely. You can use TYPE SDF to get a fixed width format but again there are no column headings.

Can you describe the data in more detail? Perhaps you could automate Word to open a document. Then, if you don't have a lot of data, use _VFP.DataToClip(,,3) to paste in a TAB delimited version of your data.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform