PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Can we use memo to store word & xls file?
Can we use memo to store word & xls file?
Débuté par PETER ZHOU, 19 aoû. 2008 00:55 - 3 réponses
Posté le 19 août 2008 - 00:55
Hi,
I want to do a search for a specific string on a folder containing xls & doc files...
Is it easier that :-
1) store the xls & doc file in a memo and do a search on it ?
2) use command in windev to search a specific string on a xls or doc file ?
Regards,
PETER ZHOU
Posté le 19 août 2008 - 00:54
Yo Thierry,
That's dangerous!
I have an program here an cannot do that in 1 step
must go into procedures himself to check if thats is possible
example:
on a screen a control is named DUREE was in French created
some things are doing with that control like DUREE = "200808183
When translating tot English duree BECOMES -> DURATION
translating is ok but always in pieces!
marc. :cool:
Posté le 19 août 2008 - 00:55
It's strongly recommended to use a programming charter to prevent such problems.
See also the "MyFile" topic
Regards,
Piet
Posté le 19 août 2008 - 00:56
Hello Peter
I would suggest it might be easier to check the actual file, rather than a stored copy, and also you know that you are dealing with the latest information.
In terms of word documents, have a look at the current thread [WD12] MS Word Automation.
It has some code using automation to do a find and replace in a word document and Piet's comments on translating MS Office macros will be a big help in setting up your own automation process.
There is an example in the Windev training examples for using automation on an Excel file that will also give you some pointers.

Regards
Al