Text Trimming

Stimulsoft Reports.WEB discussion
Post Reply
sbaxter
Posts: 17
Joined: Thu Apr 02, 2009 5:32 am

Text Trimming

Post by sbaxter »

Hi guys,

I have a report which have a Text object inside a DataBand, but it doesn't trim the text. If the text doesn't fit, it always span to multiple rows. I tried ALL the Text Options, even setting the Max Number of Lines to 1 without a luck.


Code:

this.Text10 = new Stimulsoft.Report.Components.StiText();
this.Text10.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(4.2, 0, 3.2, 0.6);
this.Text10.Guid = "b71d63a7efa344afb9586f97915530c9";
this.Text10.Name = "Text10";
this.Text10.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.Text10__GetValue);
this.Text10.Type = Stimulsoft.Report.Components.StiSystemTextType.Expression;
this.Text10.VertAlignment = Stimulsoft.Base.Drawing.StiVertAlignment.Center;
this.Text10.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.Text10.Brush = new Stimulsoft.Base.Drawing.StiEmptyBrush();
this.Text10.Font = new System.Drawing.Font("Tahoma", 9F);
this.Text10.Interaction = null;
this.Text10.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.Text10.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.DimGray);
this.Text10.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
this.Data1.DataRelationName = null;
this.Data1.Guid = null;
this.Data1.Interaction = null;
this.Data1.MasterComponent = null;


Specifications:

Visual Studio 2008
.Net 2.0 & 3.5 ( I tryed both versions)
Stimulsoft Reports.Web 2008.2
Version 2009.1.359.0



Any help?

Regards,

Scott.
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Text Trimming

Post by Jan »

Hello Scott,

Html format (which used in StiWebViewer component) does not support trimming. Please set ExportAsImage property of required textbox to true .

Thank you.
Post Reply