Ronin
Ronin

Reputation: 2077

Multi line text box in asp.net

I have a multi line text box like :

<asp:TextBox CssClass="txtform" ID="txtWhom" runat="server" Height="78px" 
     Rows="10" TextMode="MultiLine"></asp:TextBox>

say I write the following text in that text box :

Dear Sir,
General Manager,
HSBC.

when I take that text in a variable in the vb.net code behind... and send it to a crystal report to show ... only ... the first line is shown... in that case only "Dear Sir," is shown ... but I want all the text .... What Can I do ?

Upvotes: 0

Views: 4170

Answers (2)

Pilli
Pilli

Reputation: 171

Use "Can Grow" option for that text object in Crystal report.

=>Right Click -> Text Object
=>Select Format Object =>Use Can grow option in the dialog box.

It enables for variable length fields to grow vertically in the report and word wrap automatically. A maximum number of lines can be set with this option to control rogue or large data elements.

Upvotes: 1

Tom Highfield
Tom Highfield

Reputation: 55

I wonder if your entered string includes carriage return & line feed chars that Crystal is not dealing with properly. You may need to strip those out or replace them with correct characters that Crystal expects.

Upvotes: 1

Related Questions