If you’ve ever spent anytime using InfoPath, you know how awesome this tool is. It enables you to create forms in a WYSIWYG application and even let’s you connect it to data sources. The sweetest part is that if you’re using Microsoft Office SharePoint Server 2007 Enterprise you can publish these forms straight to your server and have users fill them out via the browser! MOSS 2007 Enterprise comes with InfoPath Forms Services which renders InfoPath forms as html so you don’t have to install the client software on all of your users’ computers, although you do lose some of the richness.
I was creating some forms the other day and couldn’t figure out for the life of me how to make a multi-line textbox expand dynamically without the use of scrollbars. My scenario was that I wanted to have the users be able to fill out the form as well as be able to print the form. But if they go over their alotted # of lines, then their text won’t get printed. So I dug around InfoPath for awhile, going through all the controls and properties, then finally stumbled upon the Rich Text Box. I proceeded to feel enlightened and an idiot at the same time…
I was previously trying to use the regular Text Box but that couldn’t be dynamically expanded with browser-based forms. The Rich Text Box control uses XHTML and works great!
I have found that when printing, in my case, the text box is not showing up as expanded although on screen it shows correctly. Are you able to print properly?
Hey Paul, yes my forms are being printed with the dynamic text boxes expanded.
In this case I saw that I was not giving enough time for the form to be fully rendered.
I have seen something new though. If too much data is entered into the Rich Text box, say 20 lines. The browser does not print it properly, although it prints fine in the Infopath 2007 client.
Thanks for the update Paul. How’s it not printing properly? Is the box getting cut off and going to the next page?
Just try and put the rich text box into a repeating table and watch how your IE will consume 500 megs of memory and crash your computer with more than 10 rows.
The rich text box editor causes serious memory leaks in ie
Any one knows how to create a rich text box programmatically?
I know how to fill it with rich text, but I would rather create one on the fly.
If you want to obtain much from this post then you have to
apply such techniques to your won weblog.
Hello, its fastidious piece of writing on the topic of media print, we all know media is a wonderful source of facts.
I am really impressed along with your writing skills as smartly as with the structure in your blog.
Is that this a paid subject matter or did you customize it your self?
Anyway stay up the nice quality writing, it is rare to see
a nice blog like this one nowadays..