| By: SunWuKung Date: 2006-05-11 Time: 12:51 | formatted text as variableMy variables that I want to insert into an Oo document are generated by some complicated process and would need to include some formatting.
 Is it possible to insert formatted text into an Oo document (by eg. inserting actual oo xml into the file)?
 eg. I would like to insert this as one variable:
 plaintext <b>boldtext<b> plaintext
 
 Thanks for the help.
 SWK
 | 
	
      | By: Olivier Loynet Date: 2006-05-19 Time: 22:40 | Re: formatted text as variableHello, 
It's not's possible to put XML tag, because there are converted to html equivalent. But you can you some tbs tags to have bold like....
 | <b>[var.foo;if [val]='x';then [val]]</b>[var.foo;if [val]='y';then [val]] 
 | 
I've place <b> and </b> but you don't have to write them, you just have to select in OpenOffice the code : [var.foo;if [val]='x';then [val]] and make in bold
 
You can also use conditional blocks
 
Olivier
 | 
	
      | By: SunWuKung Date: 2006-06-28 Time: 18:45 | Re: formatted text as variablewhy would TBS want to convert XML tags to html?this doesn't sound logical to me, is there a simple way to prevent that (I am only using TBS for Oo)?
 
 thx
 SWK
 | 
	
      | By: SunWuKung Date: 2006-06-28 Time: 19:47 | Re: formatted text as variableI commented out TBSOo lines 257 and 258 and now it seems to work.I am using UTF-8. Did I mess up something that will pop up later?
 
 //$string_encode = str_replace('<'   ,'<',  $string_encode);
 //$string_encode = str_replace('>'   ,'>',  $string_encode);
 
 thx
 SWK
 | 
	
    
	
    
      |  | 
		  Posting in progress.Please wait...
 |