Re: Changing text in formatted field

2008-08-21 Thread Shari
Cool! I knew there had to be a simple way. All the letters already exist in Word so it should be a breeze to turn them into HTML. I like this solution as it let's the user edit the letter if they later need to. Thanks! (Will read the current newsletter shortly regarding the merge option :-

Re: Changing text in formatted field

2008-08-21 Thread Mark Schonewille
Hi Shari, Using the htmlText property is probably the way to go, but I just want to point out the you can put text into a position in a field without losing any formatting. put "bla" into word 2 of fld x put "bla" into char 1 to 4 of fld x put "bla" before fld x put "bla" after fld x All t

Re: Changing text in formatted field

2008-08-20 Thread J. Landman Gay
Tereza Snyder wrote: set the htmlText of fld "bodyText" to merge(the uFormText of field "bodyText") Presto! Wow. That's cool. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com

Re: Changing text in formatted field

2008-08-20 Thread Tereza Snyder
On Aug 20, 2008, at 9:20 PM, Shari wrote: I'm more than willing to use actual HTML if need be, or create an RTF file and have Rev open it, read it, replace the text, and paste it into the card for printing. I've just never done any of this so I'm kind of muddling. I wonder if I could

Re: Changing text in formatted field

2008-08-20 Thread J. Landman Gay
Shari wrote: I wonder if I could create the template letter in Word, have Word turn it into HTML for me, and store the HTML file in a folder... have Rev open the file, read it, change it, and paste it into the field, then print? That's what I usually do. Create your styled text letter, using

Re: Changing text in formatted field

2008-08-20 Thread Shari
The entire field loses it's formatting, not just the changed word. Every word in the field becomes plain text. I used: replace xyz with newText I had put specific text that would frequently be updated into the field, so I used placeholder text to swap out. Basically what I'm trying to do is

Re: Changing text in formatted field

2008-08-20 Thread Mark Schonewille
Hi Shari, Probably, Sarah wanted (or could have wanted) to write this: put the textStyle of word 3 of fld "Formatted" into tStyle put "new" into word 3 of fld "Formatted" set the textStyle of word 3 of fld "Formatted" to tStyle If you want to append text to a field, you can do this: put number

Re: Changing text in formatted field

2008-08-20 Thread Sarah Reichelt
On Thu, Aug 21, 2008 at 9:14 AM, Shari <[EMAIL PROTECTED]> wrote: > If I've got a field with nicely formatted text, some bold, some underlined, > etc., is there a way from within a script to change a word in that field > without losing the formatting? Untested, but how about storing the textStyle,

Changing text in formatted field

2008-08-20 Thread Shari
If I've got a field with nicely formatted text, some bold, some underlined, etc., is there a way from within a script to change a word in that field without losing the formatting? Shari -- Dogs and bears, sports and cars, and patriots t-shirts http://www.villagetshirts.com WlND0WS and MACl