<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Word Wrap / Alignment in Button Control?</title><link>https://www.infopathdev.com:443/forums/thread/65394.aspx</link><pubDate>Wed, 23 Mar 2011 18:41:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65394</guid><dc:creator>dms.WebDev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65394.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=65394</wfw:commentRss><description>&lt;p&gt;I know this is an old post but this worked like a charm.&amp;nbsp; Albert special thanks to you for explaining what the function does - this was extremely&amp;nbsp;helpful.&amp;nbsp; At first this appeared to not&amp;nbsp;work - I had to view it in preview to see the line break.&amp;nbsp; Thanks again!&lt;/p&gt;</description></item><item><title>Re: Word Wrap / Alignment in Button Control?</title><link>https://www.infopathdev.com:443/forums/thread/28302.aspx</link><pubDate>Fri, 25 Apr 2008 18:27:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28302</guid><dc:creator>cbrown00</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28302.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28302</wfw:commentRss><description>&lt;p&gt;Albert:&lt;br /&gt;Outstanding; I&amp;#39;m an MS Excel hack, so I&amp;#39;m familiar with concatenate function; thanks for connecting it to XML which I do not know.&amp;nbsp; I have been reading up on InfoPath and learning about data sources, so I can follow that, too.&amp;nbsp; I will be trying your last suggestions soon.&amp;nbsp; Best Regards.&amp;nbsp; Chris&lt;/p&gt;</description></item><item><title>Re: Word Wrap / Alignment in Button Control?</title><link>https://www.infopathdev.com:443/forums/thread/28273.aspx</link><pubDate>Fri, 25 Apr 2008 06:37:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28273</guid><dc:creator>Albert</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28273.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28273</wfw:commentRss><description>&lt;p&gt;And also change&amp;nbsp;characters (the bold one: concat(&amp;quot;hi&amp;quot;, xdXDocument:GetDOM(&amp;quot;&lt;strong&gt;characters&lt;/strong&gt;&amp;quot;)/characters/@crlf, &amp;quot;there&amp;quot;)) into the name of your secondary datasource, most likely &lt;strong&gt;buttonstyle&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;If you have more knowledge of what you doing you might be able to solve more problems, so here we go:&lt;/p&gt;
&lt;p&gt;The text on the button is constructed with data from a secondary datasource, in this case probably buttonstyle.xml. &lt;/p&gt;
&lt;p&gt;Concat is an xpath function that joins strings ( = text) into one string, for example: concat(&amp;quot;a&amp;quot;, &amp;quot;bc&amp;quot;, &amp;quot;d&amp;quot;) will result in &amp;quot;abcd&amp;quot;. Because InfoPath won&amp;#39;t let you enter a carriage return (cr) or linefeed (lf), someone constructed this xml file. The &amp;#39;weird characters&amp;#39; are a &amp;#39;special&amp;#39; representation of a carriage return and linefeed, InfoPath will display them as cr/lf. If you just add &lt;em&gt;&amp;amp;#xD;&lt;/em&gt; on the label it will display it as text, not the &amp;#39;special&amp;#39; representation. So what happens here is: combine the text&amp;nbsp;&lt;em&gt;hi&lt;/em&gt; with crlf from the secondary datasource &amp;#39;buttonstyle&amp;#39; and &lt;em&gt;there, &lt;/em&gt;resulting in a button with two lines of text.&lt;/p&gt;
&lt;p&gt;Goodluck,&lt;/p&gt;
&lt;p&gt;Albert&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Word Wrap / Alignment in Button Control?</title><link>https://www.infopathdev.com:443/forums/thread/28257.aspx</link><pubDate>Thu, 24 Apr 2008 23:19:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28257</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28257.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28257</wfw:commentRss><description>&lt;p&gt;You can&amp;#39;t just type in the formula into the label text box, otherwise it WILL interpret it as plain text. You need to click on the formula button (labeled &amp;quot;fx&amp;quot;) to the right of that text box and add the formula there. Then it will interpret it as a concat() function.&lt;/p&gt;</description></item><item><title>Re: Word Wrap / Alignment in Button Control?</title><link>https://www.infopathdev.com:443/forums/thread/28205.aspx</link><pubDate>Wed, 23 Apr 2008 21:03:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28205</guid><dc:creator>cbrown00</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28205.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28205</wfw:commentRss><description>&lt;p&gt;Albert: I am still working on getting my InfoPath 2007 buttons to show more than one line of text. I have done the following:&lt;/p&gt;
&lt;p&gt;1. created a file named buttonstyle.xml that contains the following:&lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;characters &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cr=&amp;quot;&amp;amp;#xD;&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lf=&amp;quot;&amp;amp;#xA;&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; crlf=&amp;quot;&amp;amp;#xD;&amp;amp;#xA;&amp;quot; &lt;br /&gt;/&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;2. I&amp;#39;ve added this file as a secondary data source within my InfoPath file&lt;/p&gt;
&lt;p&gt;&amp;nbsp;3. I&amp;#39;ve embedded a button control and keyed in the formula you indicated:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;concat(&amp;quot;hi&amp;quot;, xdXDocument:GetDOM(&amp;quot;characters&amp;quot;)/characters/@crlf, &amp;quot;there&amp;quot;)&lt;/p&gt;
&lt;p&gt;All I get is a button with the formula text.&amp;nbsp; I suspect I am not putting in the correct second argument in the formula.&amp;nbsp; Does it need to reference the xml filename?&amp;nbsp; Also, do I need to publish the form before I can see the results?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks!&amp;nbsp; Chriis&lt;/p&gt;</description></item><item><title>Re: Word Wrap / Alignment in Button Control?</title><link>https://www.infopathdev.com:443/forums/thread/28103.aspx</link><pubDate>Mon, 21 Apr 2008 23:04:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28103</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28103.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28103</wfw:commentRss><description>&lt;p&gt;Thanks Albert. I should note that this will only work in InfoPath 2007 as InfoPath 2003 does not support dynamic button labels. Well, not entirely true. The InfoPath 2003 DESIGNER does not support them. But if you design in InfoPath 2007, the InfoPath 2003 edit will display them.&lt;/p&gt;</description></item><item><title>Re: Word Wrap / Alignment in Button Control?</title><link>https://www.infopathdev.com:443/forums/thread/28071.aspx</link><pubDate>Fri, 18 Apr 2008 14:47:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28071</guid><dc:creator>cbrown00</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28071.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28071</wfw:commentRss><description>&lt;p&gt;Greg / Albert / Clay:&lt;/p&gt;
&lt;p&gt;Thank you so much.&amp;nbsp; This forum is pretty amazing due to your kind of expertise.&amp;nbsp; It is helping me ramp very quickly.&amp;nbsp; Very much appreciated.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;</description></item><item><title>Re: Word Wrap / Alignment in Button Control?</title><link>https://www.infopathdev.com:443/forums/thread/28069.aspx</link><pubDate>Fri, 18 Apr 2008 14:13:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28069</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28069.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28069</wfw:commentRss><description>&lt;p&gt;Nice Albert.&lt;/p&gt;
&lt;p&gt;Thanks for the post.&lt;/p&gt;
&lt;p&gt;Another trick is create an image with the text and then use that trick but Albert&amp;#39;s is better.&lt;/p&gt;</description></item><item><title>Re: Word Wrap / Alignment in Button Control?</title><link>https://www.infopathdev.com:443/forums/thread/28066.aspx</link><pubDate>Fri, 18 Apr 2008 13:58:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28066</guid><dc:creator>Albert</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28066.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28066</wfw:commentRss><description>&lt;p&gt;If you &lt;em&gt;really&lt;/em&gt; want a button with multiple lines, do the following:&lt;/p&gt;
&lt;p&gt;Create a new xmlfile with (kudos to the guy who though of this)&lt;/p&gt;
&lt;p&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;&amp;lt;characters &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cr=&amp;quot;&amp;amp;#xD;&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lf=&amp;quot;&amp;amp;#xA;&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; crlf=&amp;quot;&amp;amp;#xD;&amp;amp;#xA;&amp;quot; &lt;br /&gt;/&amp;gt;&lt;/p&gt;
&lt;p&gt;and add it as a secondary datasource.&lt;/p&gt;
&lt;p&gt;Set the label of the button to something like: concat(&amp;quot;hi&amp;quot;, xdXDocument:GetDOM(&amp;quot;characters&amp;quot;)/characters/@crlf, &amp;quot;there&amp;quot;);&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t be suprised if the button doesn&amp;#39;t have a linefeed in designmode. It will show when you fill in the form.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Albert&lt;/p&gt;</description></item><item><title>Re: Word Wrap / Alignment in Button Control?</title><link>https://www.infopathdev.com:443/forums/thread/28065.aspx</link><pubDate>Fri, 18 Apr 2008 13:43:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28065</guid><dc:creator>cbrown00</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28065.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28065</wfw:commentRss><description>&lt;p&gt;Wow, I&amp;#39;m surprised.&amp;nbsp; So in all its glory, one will never see a button in an InfoPath form that has more than one row of text?&lt;/p&gt;</description></item><item><title>Re: Word Wrap / Alignment in Button Control?</title><link>https://www.infopathdev.com:443/forums/thread/28053.aspx</link><pubDate>Thu, 17 Apr 2008 22:45:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28053</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28053.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28053</wfw:commentRss><description>&lt;p&gt;Unfortunately, InfoPath uses &amp;lt;input type=&amp;quot;button&amp;quot;/&amp;gt; rather than &amp;lt;button/&amp;gt;. This means that you have no way of wrapping text.&lt;/p&gt;
&lt;p&gt;You might try using a narrower font, like Arial Narrow.&lt;/p&gt;</description></item><item><title>Word Wrap / Alignment in Button Control?</title><link>https://www.infopathdev.com:443/forums/thread/28049.aspx</link><pubDate>Thu, 17 Apr 2008 19:13:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28049</guid><dc:creator>cbrown00</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28049.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=28049</wfw:commentRss><description>&lt;p&gt;Howdy:&lt;/p&gt;
&lt;p&gt;I&amp;#39;m new to InfoPath; trying to create my first form; I&amp;#39;m attempting to embed a button control; button needs to be labelled&amp;nbsp;&amp;quot;Project Requirements Definition&amp;quot;; I can key that in the button control creation field, but when it displays, cannot see the whole label.&amp;nbsp; I do not see any way to format the button lable for text word-wrap and/or alignment.&amp;nbsp; How can I stack button label text to fit in a narrower space?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;</description></item></channel></rss>