Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation - Better List Control
Message
 
 
To
10/02/2003 11:42:03
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00751451
Message ID:
00751467
Views:
21
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform