Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A word document in a general field
Message
 
 
À
17/06/2002 02:52:53
Dino Liberale
Ministero Lavori Pubblici
Trieste, Italie
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00669088
Message ID:
00669209
Vues:
11
>Hi all,
>A customer wants to save all text not as single file but
>all included in a database. I know to save docs in general field so:
>
>1) I write a document in Microsoft Word;
>2) select all then copy;
>3) swap to vfp, browse the file with general field, double clik on it;
>4) it opens a new window, I use Paste special to include previous copy
>5) all right but when next time I whant to modify text the layout is
>chanded, font, alignment etc.
>
>How to mantein inalterate layout as I copy from Word ?
>There are other solution to mantain docs without files ?
>
>T.I.A.
use FILETOSTR() and strtofile(
)
important ... store filetostring conversion in a binary memo field not a general field

ldoc=FILETOSTR(word.doc)
repl (yourdbf.binmemo) with ldoc

strTOfile(yourdbf.binmemo,'thisdoc.doc',0)

RonL
Ronl
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform