I Set this Properties For my Text
Allow Html Tags = True
TextQuality = Wysiwyg
Trimming = None
CanBreak = true
Code: Select all
using System;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using Stimulsoft.Controls;
using Stimulsoft.Base.Drawing;
using Stimulsoft.Report;
using Stimulsoft.Report.Dialogs;
using Stimulsoft.Report.Components;
namespace Reports
{
public class Report1 : Stimulsoft.Report.StiReport
{
public Report1()
{
this.InitializeComponent();
}
#region StiReport Designer generated code - do not modify
public Stimulsoft.Report.Components.StiPage Page1;
public Stimulsoft.Report.Components.StiDataBand MainDataBand;
public Stimulsoft.Report.Components.StiPanel Panel6;
public Stimulsoft.Report.Components.StiText txtComments;
public Stimulsoft.Report.Components.StiWatermark Page1_Watermark;
public Stimulsoft.Report.Print.StiPrinterSettings Report1_PrinterSettings;
public void txtComments__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = "Comment :
\r\nthis " +
"is a test";
}
private void InitializeComponent()
{
this.NeedsCompiling = false;
this.EngineVersion = Stimulsoft.Report.Engine.StiEngineVersion.EngineV2;
this.ReferencedAssemblies = new System.String[] {
"System.Dll",
"System.Drawing.Dll",
"System.Windows.Forms.Dll",
"System.Data.Dll",
"System.Xml.Dll",
"Stimulsoft.Controls.Dll",
"Stimulsoft.Base.Dll",
"Stimulsoft.Report.Dll"};
this.ReportAlias = "Report1";
//
// ReportChanged
//
this.ReportChanged = new DateTime(2010, 5, 26, 15, 10, 45, 942);
//
// ReportCreated
//
this.ReportCreated = new DateTime(2010, 5, 18, 9, 38, 18, 0);
this.ReportFile = "E:\\test.mrt";
this.ReportGuid = "01bc29e0c11b4fc88cf9e7eb2f816165";
this.ReportName = "Report1";
this.ReportUnit = Stimulsoft.Report.StiReportUnitType.Centimeters;
this.ScriptLanguage = Stimulsoft.Report.StiReportLanguageType.CSharp;
//
// Page1
//
this.Page1 = new Stimulsoft.Report.Components.StiPage();
this.Page1.Guid = "f76cd6dcadd24daab290efb3fb282bdd";
this.Page1.Name = "Page1";
this.Page1.PageHeight = 29.7;
this.Page1.PageWidth = 21;
this.Page1.PaperSize = System.Drawing.Printing.PaperKind.A4;
this.Page1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.All, System.Drawing.Color.Black, 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.Page1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
//
// MainDataBand
//
this.MainDataBand = new Stimulsoft.Report.Components.StiDataBand();
this.MainDataBand.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0.4, 19, 4);
this.MainDataBand.Name = "MainDataBand";
this.MainDataBand.Sort = new System.String[0];
this.MainDataBand.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.MainDataBand.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
this.MainDataBand.BusinessObjectGuid = null;
//
// Panel6
//
this.Panel6 = new Stimulsoft.Report.Components.StiPanel();
this.Panel6.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0.4, 0.8, 18, 2.8);
this.Panel6.Guid = "ff066ff8a40d4cabbced5542ec1df9d6";
this.Panel6.Name = "Panel6";
this.Panel6.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.Panel6.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
//
// txtComments
//
this.txtComments = new Stimulsoft.Report.Components.StiText();
this.txtComments.AllowHtmlTags = true;
this.txtComments.CanBreak = true;
this.txtComments.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(4.2, 0.2, 12.2, 2.2);
this.txtComments.HorAlignment = Stimulsoft.Base.Drawing.StiTextHorAlignment.Center;
this.txtComments.Name = "txtComments";
this.txtComments.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.txtComments__GetValue);
this.txtComments.TextQuality = Stimulsoft.Report.Components.StiTextQuality.Wysiwyg;
this.txtComments.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.txtComments.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
this.txtComments.Font = new System.Drawing.Font("Arial", 12F, ((System.Drawing.FontStyle.Regular | System.Drawing.FontStyle.Bold)
| System.Drawing.FontStyle.Italic), System.Drawing.GraphicsUnit.Point, 178);
this.txtComments.Guid = null;
this.txtComments.Interaction = null;
this.txtComments.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.txtComments.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
this.txtComments.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, true, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
this.Panel6.Interaction = null;
this.MainDataBand.DataRelationName = null;
this.MainDataBand.Guid = null;
this.MainDataBand.Interaction = null;
this.MainDataBand.MasterComponent = null;
this.Page1.ExcelSheetValue = null;
this.Page1.Interaction = null;
this.Page1.Margins = new Stimulsoft.Report.Components.StiMargins(1, 1, 1, 1);
this.Page1_Watermark = new Stimulsoft.Report.Components.StiWatermark();
this.Page1_Watermark.Font = new System.Drawing.Font("Arial", 100F);
this.Page1_Watermark.Image = null;
this.Page1_Watermark.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(50, 0, 0, 0));
this.Report1_PrinterSettings = new Stimulsoft.Report.Print.StiPrinterSettings();
this.PrinterSettings = this.Report1_PrinterSettings;
this.Page1.Report = this;
this.Page1.Watermark = this.Page1_Watermark;
this.MainDataBand.Page = this.Page1;
this.MainDataBand.Parent = this.Page1;
this.Panel6.Page = this.Page1;
this.Panel6.Parent = this.MainDataBand;
this.txtComments.Page = this.Page1;
this.txtComments.Parent = this.Panel6;
//
// Add to Panel6.Components
//
this.Panel6.Components.Clear();
this.Panel6.Components.AddRange(new Stimulsoft.Report.Components.StiComponent[] {
this.txtComments});
//
// Add to MainDataBand.Components
//
this.MainDataBand.Components.Clear();
this.MainDataBand.Components.AddRange(new Stimulsoft.Report.Components.StiComponent[] {
this.Panel6});
//
// Add to Page1.Components
//
this.Page1.Components.Clear();
this.Page1.Components.AddRange(new Stimulsoft.Report.Components.StiComponent[] {
this.MainDataBand});
//
// Add to Pages
//
this.Pages.Clear();
this.Pages.AddRange(new Stimulsoft.Report.Components.StiPage[] {
this.Page1});
}
#endregion StiReport Designer generated code - do not modify
}
}