Information générale
Catégorie:
COM/DCOM et OLE Automation
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement