Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Storing Word documents in SQL Server
Message
De
06/11/2004 13:47:03
Jon Neale
Bond International Software
Wootton Bassett, Royaume Uni
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
00958440
Message ID:
00958869
Vues:
17
Hi David,

We read the word documetn into memvar by using this:

w_retval = ""
w_fh = FOPEN(p_fn, 0)
IF w_fh >= 0
w_flen = FSEEK(w_fh, 0,2)
=FSEEK(w_fh, 0,0)
w_retval = FREAD(w_fh, w_flen)
=FCLOSE(w_fh)
ENDIF

We then save this back to a memo field in the Foxpro View of the SQL Table.

Then when we try and reopen the document it errors. I have read somewhere that binary information passed back to SQL from Foxpro was changed. In that SQL modified some of the characters passed back from Foxpro. My understanding is that the Image type doesnt do this just the text type.

I think I need to some more reading and maybe just try it out and see what happens.

Thanks for your input.

Jon
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform