Skip navigation
Blond1e
Currently Being Moderated

printing everything from a text box

Nov 2, 2009 7:38 PM

I'm new to this, but having a problem printing text from a text box once the text box shows scroll bars.  I'm trying to make a descirption field for a invoice, and was hoping to do the description field to cover small descriptions, but if more than the size of the text box was entered, then the textbox adjusting to that text and all of the text printing.

I hope that I have explained this OK.

K

 
Replies
  • Currently Being Moderated
    Nov 3, 2009 4:32 AM   in reply to Blond1e

    Hi Blond1e,

     

    The way to do this is to make the field expandable. You should read up on creating dynamic forms with expandable fields, there are several requirements needed to make an expandable field function correctly. Here's a link to a post with a sample form.

     

    http://forums.adobe.com/message/2182624#2182624

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 3, 2009 6:22 AM   in reply to djaknow

    If you have lots of data that is overflowing then having an expandable field is the answer. There is an option to have the font in th efield shrink when the field overflows. If there is only a little bit of overflow then this works well if there is a lot it is not so good because the text can become so small that it cannot be read.

     

    Let me know if you want to use this technique instead.

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 5, 2009 5:21 AM   in reply to Blond1e

    The changing font can be achieved by clicking on the object and then activatinng the font palette. Make sure that you are editing the value only ...not caption and value. Then set the font to 0 and make sure that the multiline checkbox is on.

     

    Paul

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 5, 2009 6:07 PM   in reply to Blond1e

    Hi Paul,

     

    That is a great tip, I can throw away some rather dodgy code that tried to do just that.  I hope it gets marked as correct so more people might read it.

     

    Hi K,

     

    For some text fields I would go with reducing the font but for some (with a lot of text) I would have a scrolling textbox on the screen (so it doesn't muck up my layout) and an expanding textbox for when printing.  So in the prePrint event have;

            

    this.minH

    = this.h;

    this.h

    = 0;

     

    and in the postPrint event have;

     

    this.h

    = this.minH;

    this.minH

    = 0;

     

    Thanks again Paul,

     

    Bruce

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points