Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Automation - Better List Control
Message
 
 
À
10/02/2003 11:42:03
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00751451
Message ID:
00751467
Vues:
22
Word does the same thing interactively, and as you note there are a variety of ways to work around it.

However, the "official" way to do this in word is NOT to create a paragraph (press enter) but use just a line feed (SHIFT-enter) instead.

So what you could send to Word is something like:

StrTran(yourMemo, CHR(13)+CHR(10), CHR(10) )

I have NO idea whether this will work, but it seems plausible. ;-)

Dan

>I am creating a list in MSWORD via automation. My data is coming from MEMO fields. Each record is to be 1 item in the list.
>
>My only difficulty comes when the user decides to put a carriage return within the text they are typing for spacing purposes. That causes WORD to think I want another List Item created at the carriage return when in-fact all I wish to do to insert a blank line within the SAME LIST ITEM.
>
>I can do that while in WORD by simply deleting the number of the list item. Anyone have an idea of how to accomplish that programmatically.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform