Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement