Reply
 
Thread Tools Display Modes
  #1   Report Post  
Steve
 
Posts: n/a
Default IF Condition for XML Tags

Is it possible to put IF field codes or some sort of IF condition using a Xml
tag as the expression (ie. to use the data supplied to a XML Tag). I have a
..Net application which supplies/populates XML tags in a word template. I have
done extensive searching on the net but can't work out if this is possible. I
know you can use mailmerge fields within a IF field code. Any help much
appreciated.
  #2   Report Post  
Cindy M -WordMVP-
 
Posts: n/a
Default

Hi ?B?U3RldmU=?=,

Is it possible to put IF field codes or some sort of IF condition using a Xml
tag as the expression (ie. to use the data supplied to a XML Tag). I have a
..Net application which supplies/populates XML tags in a word template. I have
done extensive searching on the net but can't work out if this is possible. I
know you can use mailmerge fields within a IF field code. Any help much
appreciated.

Try using an IncludeText field with the special switches for XML, nested within
the IF field. That will display the XML content as text, and the IF field can
work on that. This does mean, however, that this XML would have to be saved in a
file somewhere.

If that's not a possibility, then your XSLT or .NET will have to do the IF work,
before populating the document.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
smart tags ssorgtoille Microsoft Word Help 1 January 4th 05 04:28 PM
How do I print crack and peel name tags? BillyCorriher Microsoft Word Help 1 January 3rd 05 06:59 PM
Showing XML tags CathyL Microsoft Word Help 1 December 9th 04 01:22 PM
How do you add smart tags to a document LH Microsoft Word Help 1 December 3rd 04 08:43 PM
Christmas Name Tags? nannaoftwins Tables 2 November 2nd 04 11:28 AM


All times are GMT +1. The time now is 05:43 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"