Normal Topic Formatting Code in Programming (Read 629 times)
CapitalG
Full Member
Members
***
Offline



Posts: 143
Location: Phoenix, Arizona
Joined: Mar 4th, 2003
Formatting Code in Programming
Apr 4th, 2007 at 9:54pm
Print Post Print Post  
I would like to have a mail merge that would selectively include paragraphs of text in a MS Word document depending on the value in a field (a checkbox in my case.)

I have this part working.

What I need is a way to put some formatting codes in the programming so that the paragraphs can have bold text or centered text.  Can this be done in programming? If not in programming - any other ideas?  

Thanks
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Formatting Code in Programming
Reply #1 - Apr 5th, 2007 at 12:55pm
Print Post Print Post  
I've had good luck doing this with HTML and IncludeText in Word.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
CapitalG
Full Member
Members
***
Offline



Posts: 143
Location: Phoenix, Arizona
Joined: Mar 4th, 2003
Re: Formatting Code in Programming
Reply #2 - Apr 5th, 2007 at 2:01pm
Print Post Print Post  
Thanks!   Grin
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Formatting Code in Programming
Reply #3 - Apr 5th, 2007 at 2:38pm
Print Post Print Post  
Take a look at the August 206 Inside Sesame.  I wrote this up in terms of subrecords, but it's worked well with other HTML options as well.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
CapitalG
Full Member
Members
***
Offline



Posts: 143
Location: Phoenix, Arizona
Joined: Mar 4th, 2003
Re: Formatting Code in Programming
Reply #4 - Apr 5th, 2007 at 6:06pm
Print Post Print Post  
It works perfectly.  I just put the paragraphs I want to include in a separate word document and use a conditional with IncludeText.  The conditional compares the results of the desired element in Sesame and if true includes the other word document complete with all formatting.

Thanks again.  

Great article!   This opens up so many more possibilities.   Thank you.
  
Back to top
 
IP Logged