Nicola,

Had a chance to think about this for a while, and I came up with something you 
can use. It's not simply one rule, but a rule that calls a function. In your 
text box, simply make sure that you allow it to remove empty lines, and 
everything should come out fine.

Here's the function that I call tabCount and is put into the javaScript Global 
area...

function tabCount(xline,str)  {
var dataOut = '';
var s = str;

for (x=1;x<xline;x++)  {
        dataOut += '<t>';
}
dataOut += s;

return dataOut;
}


Here's the text rule that I call tabbedLineOut that you place into the text 
box...

lineNbr = 0;
strOutput = '<p 
tabstops=0;900,Left,,;1800,Left,,;2700,Left,,;3600,Left,,;4500,Left,,;5400,Left,,;>';

if (Field("Name") != "")  {
        lineNbr++;
        strOutput += '<br>' + tabCount(lineNbr, Field("Name"));
}
if (Field("Title") != "")  {
        lineNbr++;
        strOutput += '<br>' + tabCount(lineNbr, Field("Title"));
}
if (Field("Address") != "")  {
        lineNbr++;
        strOutput += '<br>' + tabCount(lineNbr, Field("Address"));
}
if (Field("Phone") != "")  {
        lineNbr++;
        strOutput += '<br>' + tabCount(lineNbr, Field("Phone"));
}
if (Field("Fax") != "")  {
        lineNbr++;
        strOutput += '<br>' + tabCount(lineNbr, Field("Fax"));
}
if (Field("E-mail") != "")  {
        lineNbr++;
        strOutput += '<br>' + tabCount(lineNbr, Field("E-mail"));
}
if (Field("Web") != "")  {
        lineNbr++;
        strOutput += '<br>' + tabCount(lineNbr, Field("Web"));
}
return strOutput;


You need to select "Treat as tagged string" in the rule editor. Also, you may 
need to play with the tabstop settings a bit to get exactly the look you want. 
These are currently set to increase by .125" (9 pts) with each successive tab. 
Whether you are closing from the top down or the bottom up, this works. Give it 
a try, and don't be confused by any line breaks in the rule as you're reading 
it, that's probably just the way e-mail sends it.

Good Luck,

---
David A. Sweet
Web Designer/Graphic Designer
HKM Direct Market Communications
A DirectConnectGroup Company

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Calling all FP Web Users!

Do you have a question or lots of knowledge to share about FusionPro Web?

If so, join our Printable Web to Print Users' Forum today!

Send email to [EMAIL PROTECTED] to find out how!
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-


--
Users of FusionPro Desktop have unlimited free email support. Contact Printable 
Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm

--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--


--
Note:  All e-mail sent to or from this address will be received or otherwise 
recorded by the e-mail recipients of this forum. It is subject to archival, 
monitoring or review by, and/or disclosure to someone other than the recipient. 
Our privacy policy is posted on www.printplanet.com
--

Reply via email to