Printing Text from a text Box

Avatar

Avatar

rbane1668

Avatar

rbane1668

rbane1668

06-11-2011

Is there a way for the client to print all the data from a text box if they want to?

The client does not want to scroll through all the text to read it.Do we have the option to give them a print button?

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar

_Bruce_Robertson

MVP

Total Posts

1.8K

Likes

268

Correct Answer

372

Avatar

_Bruce_Robertson

MVP

Total Posts

1.8K

Likes

268

Correct Answer

372
_Bruce_Robertson
MVP

06-11-2011

Hi rbane1668,

The print button is a standard control from the object library, If your textbox has scrollbars, you can add the following code in the prePrint event of the textbox;

 

this.minH = this.h;

this.h = 0;

And in the postPrint event set it back;

this.h = this.minH;

this.minH = 0;

Regards

Bruce