Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing blank lines from word .doc
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01430433
Message ID:
01430435
Views:
64
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform