Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I import a word doc into memo field
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01618713
Message ID:
01618759
Vues:
31
>>>>>>
REPLACE mMemo WITH FILETOSTR(cDocFile)
>>>>>
>
>my code
>
>REPLACE wordin WITH FILETOSTR("c:\my documents\colinnewnotes.doc")
>
>Wordin is a memo field
>
>What I get is a lot of rubbish in wordin
>
>What am I doing wrong?

Storing Word docs in memo fields is a very bad idea, but if you want to anyway, there are some ways:

1) You can create a General field and use APPEND GENERAL (see help file)

2) You can create a binary memo (with NOCPTRAN) and use the same replace you intended to use

3) Save in a normal memo field but converting to base64 with STRCONV()

Regards.-
Fernando D. Bozzo
Madrid / Spain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform