Expanding Text Box

depawl

Registered User.
Local time
Today, 14:22
Joined
May 19, 2007
Messages
144
I have a form with a memo field which is used to generate a report. The text that I have to enter into the memo field can be anywhere from 2 lines to five pages long. When it prints out on the report, I would like to have it appear as an expanding text box. For example if it was only a couple lines of text, that’s all that would print (no blank pages). If it was 4 pages, it would expand and print out all 4, still retaining the page header on each page. Is this possible?
Thanks.
 
Yes you can do this. In the properties for the Memo text box you will see the Can Grow property. Set it to yes.

hth
Chris
 
Thanks Chris.
I realized that the memo field on the form had a "Can Grow" property but didn't remember seeing it in the properties of text box on the report. Seems to work fine.
 
You can do this using style sheets and an image. The code for the style sheets is given below. Just copy this code in to any HTML page and it should work.

<HTML>
<Head>
<style type=text/css>
.if5_400{overflow-y:visible;font-family:tahoma;font-size:12px;font-weight:bold;border:0px;background-image:url(tabck1.gif);line-height:18px;width:100}
</style>
</Head>
<Body>
<Form name='Form1'>
<textarea name=text1 style="height:20" class=if5_400></textarea>
</Form>
</Body>
</HTML>

The important thing here is the overflow-y:visible which makes it expand, font-size, line height and the background image. I am also attaching the background image. Put it in the same folder as the HTML

--K
 

Attachments

  • tabck1.gif
    tabck1.gif
    666 bytes · Views: 900

Users who are viewing this thread

Back
Top Bottom