>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