Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing blank lines from word .doc
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01430433
Message ID:
01430435
Vues:
65
>Is there a way to remove blank lines from a file "myfile.doc" using VFP ?


NOT TESTED!!!!!!!!!!!!!!
Assumed that oWord is your Word.Application object
lbFinedSomething = .t.
DO WHILE m.lbFinedSomething
   WITH oWord.Selection
        .HomeKey(6)            && Top of Document
        .Find.ClearFormatting()
        .Find.Replacement.ClearFormatting()
        lbFinedSomething = .Find.Execute("^p^p", .f., .f., .f., .f., .f., .t., 1, .f., "^p", 2)
   ENDWITH
ENDDO
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform