Cross-Tab
Cross-Tab
Проблемы при Preview отчета на котором располагается компонент Cross-Tab.
Если элемент Dictionary содержит в своем имени пробелы, либо поле этого элемента также содержит пробел/ы, то попытка предпросмотра отчета приводит к следующей ошибке: CS1002 "ожидалась :"
если посмотреть код генерированного отчета то строчка которая вызвала ошибку выглядит так:
public void CrossRow2__GetDisplayCrossValue(object sender, Stimulsoft.Report.CrossTab.StiGetCrossValueEventArgs e)
{
e.Value = Historical_Fund_Categorisation.Level 1;
}
Видно что имя поля Level 1 недопустимо, и поэтому такая ошибка вылетает.
Как это обойти? Если нельзя, когда будет фикс?
Если элемент Dictionary содержит в своем имени пробелы, либо поле этого элемента также содержит пробел/ы, то попытка предпросмотра отчета приводит к следующей ошибке: CS1002 "ожидалась :"
если посмотреть код генерированного отчета то строчка которая вызвала ошибку выглядит так:
public void CrossRow2__GetDisplayCrossValue(object sender, Stimulsoft.Report.CrossTab.StiGetCrossValueEventArgs e)
{
e.Value = Historical_Fund_Categorisation.Level 1;
}
Видно что имя поля Level 1 недопустимо, и поэтому такая ошибка вылетает.
Как это обойти? Если нельзя, когда будет фикс?
Cross-Tab
Здравствуйте.
Мы не можем воспроизвести указанную проблему.
Пожалуйста проверьте ваш отчет на последнем билде нашего продукта.
Если проблема осталась, пришлите пожалуйста пример отчета с данными, на которых воспроизводится эта проблема.
Спасибо.
Мы не можем воспроизвести указанную проблему.
Пожалуйста проверьте ваш отчет на последнем билде нашего продукта.
Если проблема осталась, пришлите пожалуйста пример отчета с данными, на которых воспроизводится эта проблема.
Спасибо.
Cross-Tab
Моя версия компонент: 2010.1.700.0, попробую создать пример
Cross-Tab
Вот пример неправильно сгенерированного отчета.
Куда можно прислать код приложения?
Куда можно прислать код приложения?
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 Report : Stimulsoft.Report.StiReport
{
public Report()
{
this.InitializeComponent();
}
#region StiReport Designer generated code - do not modify
public Stimulsoft.Report.Components.StiPage Page1;
public Stimulsoft.Report.CrossTab.StiCrossTab CrossTab1;
public Stimulsoft.Report.CrossTab.StiCrossRowTotal CrossTab1_RowTotal1;
public Stimulsoft.Report.CrossTab.StiCrossTitle CrossTab1_Row1_Title;
public Stimulsoft.Report.CrossTab.StiCrossRowTotal CrossTab1_RowTotal2;
public Stimulsoft.Report.CrossTab.StiCrossTitle CrossTab1_Row2_Title;
public Stimulsoft.Report.CrossTab.StiCrossColumnTotal CrossTab1_ColTotal1;
public Stimulsoft.Report.CrossTab.StiCrossTitle CrossTab1_LeftTitle;
public Stimulsoft.Report.CrossTab.StiCrossTitle CrossTab1_RightTitle;
public Stimulsoft.Report.CrossTab.StiCrossRow CrossTab1_Row1;
public Stimulsoft.Report.CrossTab.StiCrossRow CrossTab1_Row2;
public Stimulsoft.Report.CrossTab.StiCrossColumn CrossTab1_Column1;
public Stimulsoft.Report.CrossTab.StiCrossSummary CrossTab1_Sum1;
public Stimulsoft.Report.Components.StiWatermark Page1_Watermark;
public Stimulsoft.Report.Print.StiPrinterSettings Report_PrinterSettings;
public Historical_Fund_CategorisationDataSource Historical_Fund_Categorisation;
public void CrossTab1_RowTotal1__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = "Total";
}
public void CrossTab1_Row1_Title__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = "Level 1";
}
public void CrossTab1_RowTotal2__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = "Total";
}
public void CrossTab1_Row2_Title__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = "Level 2";
}
public void CrossTab1_ColTotal1__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = "Total";
}
public void CrossTab1_LeftTitle__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = "Historical Fund Categorisation";
}
public void CrossTab1_RightTitle__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = "Type";
}
public void CrossTab1_Row1__GetDisplayCrossValue(object sender, Stimulsoft.Report.CrossTab.StiGetCrossValueEventArgs e)
{
e.Value = Historical Fund Categorisation.Level 1;
}
public void CrossTab1_Row1__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = "Level 1";
}
public void CrossTab1_Row1__GetCrossValue(object sender, Stimulsoft.Report.CrossTab.StiGetCrossValueEventArgs e)
{
e.Value = Historical Fund Categorisation.Level 1;
}
public void CrossTab1_Row2__GetDisplayCrossValue(object sender, Stimulsoft.Report.CrossTab.StiGetCrossValueEventArgs e)
{
e.Value = Historical Fund Categorisation.Level 2;
}
public void CrossTab1_Row2__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = "Level 2";
}
public void CrossTab1_Row2__GetCrossValue(object sender, Stimulsoft.Report.CrossTab.StiGetCrossValueEventArgs e)
{
e.Value = Historical Fund Categorisation.Level 2;
}
public void CrossTab1_Column1__GetDisplayCrossValue(object sender, Stimulsoft.Report.CrossTab.StiGetCrossValueEventArgs e)
{
e.Value = Historical Fund Categorisation.Type;
}
public void CrossTab1_Column1__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = "Type";
}
public void CrossTab1_Column1__GetCrossValue(object sender, Stimulsoft.Report.CrossTab.StiGetCrossValueEventArgs e)
{
e.Value = Historical Fund Categorisation.Type;
}
public void CrossTab1_Sum1__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
{
e.Value = "0";
}
public void CrossTab1_Sum1__GetCrossValue(object sender, Stimulsoft.Report.CrossTab.StiGetCrossValueEventArgs e)
{
e.Value = Historical Fund Categorisation.Value;
}
private void InitializeComponent()
{
this.Historical_Fund_Categorisation = new Historical_Fund_CategorisationDataSource();
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 = "Report";
//
// ReportChanged
//
this.ReportChanged = new DateTime(2010, 6, 28, 19, 56, 37, 926);
//
// ReportCreated
//
this.ReportCreated = new DateTime(2010, 6, 28, 19, 56, 37, 926);
this.ReportFile = "CrossTableReport.mrt";
this.ReportGuid = "828b4246a1b14457b9933feed024a1e7";
this.ReportName = "Report";
this.ReportUnit = Stimulsoft.Report.StiReportUnitType.Centimeters;
this.ScriptLanguage = Stimulsoft.Report.StiReportLanguageType.CSharp;
//
// Page1
//
this.Page1 = new Stimulsoft.Report.Components.StiPage();
this.Page1.Guid = "9179c5cd4b2346409d39bedcc63f6cde";
this.Page1.Name = "Page1";
this.Page1.PageHeight = 29.7;
this.Page1.PageWidth = 21;
this.Page1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.None, System.Drawing.Color.Black, 2, 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);
//
// CrossTab1
//
this.CrossTab1 = new Stimulsoft.Report.CrossTab.StiCrossTab();
this.CrossTab1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0.4, 1.2, 18.2, 7.8);
this.CrossTab1.DataRelationName = "";
this.CrossTab1.DataSourceName = "Historical Fund Categorisation";
this.CrossTab1.EmptyValue = "";
this.CrossTab1.Name = "CrossTab1";
this.CrossTab1.Sort = new System.String[0];
this.CrossTab1.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.CrossTab1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
//
// CrossTab1_RowTotal1
//
this.CrossTab1_RowTotal1 = new Stimulsoft.Report.CrossTab.StiCrossRowTotal();
this.CrossTab1_RowTotal1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 1.7, 3.73, 0.4);
this.CrossTab1_RowTotal1.Guid = "91fb35a0f9c72b4e4fef7f41a79078bd";
this.CrossTab1_RowTotal1.Name = "CrossTab1_RowTotal1";
this.CrossTab1_RowTotal1.Restrictions = ((((Stimulsoft.Report.Components.StiRestrictions.None | Stimulsoft.Report.Components.StiRestrictions.AllowMove)
| Stimulsoft.Report.Components.StiRestrictions.AllowResize)
| Stimulsoft.Report.Components.StiRestrictions.AllowSelect)
| Stimulsoft.Report.Components.StiRestrictions.AllowChange);
this.CrossTab1_RowTotal1.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.CrossTab1_RowTotal1__GetValue);
this.CrossTab1_RowTotal1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.All, System.Drawing.Color.FromArgb(255, 155, 155, 155), 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.CrossTab1_RowTotal1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.WhiteSmoke);
this.CrossTab1_RowTotal1.Font = new System.Drawing.Font("Arial", 8F);
this.CrossTab1_RowTotal1.Interaction = null;
this.CrossTab1_RowTotal1.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.CrossTab1_RowTotal1.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
this.CrossTab1_RowTotal1.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
//
// CrossTab1_Row1_Title
//
this.CrossTab1_Row1_Title = new Stimulsoft.Report.CrossTab.StiCrossTitle();
this.CrossTab1_Row1_Title.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0.45, 1.87, 0.4);
this.CrossTab1_Row1_Title.Guid = "80a66e11604b583772f37f41a790073d";
this.CrossTab1_Row1_Title.Name = "CrossTab1_Row1_Title";
this.CrossTab1_Row1_Title.Restrictions = ((((Stimulsoft.Report.Components.StiRestrictions.None | Stimulsoft.Report.Components.StiRestrictions.AllowMove)
| Stimulsoft.Report.Components.StiRestrictions.AllowResize)
| Stimulsoft.Report.Components.StiRestrictions.AllowSelect)
| Stimulsoft.Report.Components.StiRestrictions.AllowChange);
this.CrossTab1_Row1_Title.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.CrossTab1_Row1_Title__GetValue);
this.CrossTab1_Row1_Title.TypeOfComponent = "Row:CrossTab1_Row1";
this.CrossTab1_Row1_Title.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.All, System.Drawing.Color.FromArgb(255, 155, 155, 155), 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.CrossTab1_Row1_Title.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.WhiteSmoke);
this.CrossTab1_Row1_Title.Font = new System.Drawing.Font("Arial", 8F);
this.CrossTab1_Row1_Title.Interaction = null;
this.CrossTab1_Row1_Title.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.CrossTab1_Row1_Title.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(255, 105, 105, 105));
this.CrossTab1_Row1_Title.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
//
// CrossTab1_RowTotal2
//
this.CrossTab1_RowTotal2 = new Stimulsoft.Report.CrossTab.StiCrossRowTotal();
this.CrossTab1_RowTotal2.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(1.87, 1.3, 1.87, 0.4);
this.CrossTab1_RowTotal2.Guid = "ae4b283766060c3432c47f41a7903619";
this.CrossTab1_RowTotal2.Name = "CrossTab1_RowTotal2";
this.CrossTab1_RowTotal2.Restrictions = ((((Stimulsoft.Report.Components.StiRestrictions.None | Stimulsoft.Report.Components.StiRestrictions.AllowMove)
| Stimulsoft.Report.Components.StiRestrictions.AllowResize)
| Stimulsoft.Report.Components.StiRestrictions.AllowSelect)
| Stimulsoft.Report.Components.StiRestrictions.AllowChange);
this.CrossTab1_RowTotal2.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.CrossTab1_RowTotal2__GetValue);
this.CrossTab1_RowTotal2.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.All, System.Drawing.Color.FromArgb(255, 155, 155, 155), 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.CrossTab1_RowTotal2.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.WhiteSmoke);
this.CrossTab1_RowTotal2.Font = new System.Drawing.Font("Arial", 8F);
this.CrossTab1_RowTotal2.Interaction = null;
this.CrossTab1_RowTotal2.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.CrossTab1_RowTotal2.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
this.CrossTab1_RowTotal2.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
//
// CrossTab1_Row2_Title
//
this.CrossTab1_Row2_Title = new Stimulsoft.Report.CrossTab.StiCrossTitle();
this.CrossTab1_Row2_Title.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(1.87, 0.45, 1.87, 0.4);
this.CrossTab1_Row2_Title.Guid = "45222b5ff6c9ceb225047f41a790d99b";
this.CrossTab1_Row2_Title.Name = "CrossTab1_Row2_Title";
this.CrossTab1_Row2_Title.Restrictions = ((((Stimulsoft.Report.Components.StiRestrictions.None | Stimulsoft.Report.Components.StiRestrictions.AllowMove)
| Stimulsoft.Report.Components.StiRestrictions.AllowResize)
| Stimulsoft.Report.Components.StiRestrictions.AllowSelect)
| Stimulsoft.Report.Components.StiRestrictions.AllowChange);
this.CrossTab1_Row2_Title.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.CrossTab1_Row2_Title__GetValue);
this.CrossTab1_Row2_Title.TypeOfComponent = "Row:CrossTab1_Row2";
this.CrossTab1_Row2_Title.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.All, System.Drawing.Color.FromArgb(255, 155, 155, 155), 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.CrossTab1_Row2_Title.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.WhiteSmoke);
this.CrossTab1_Row2_Title.Font = new System.Drawing.Font("Arial", 8F);
this.CrossTab1_Row2_Title.Interaction = null;
this.CrossTab1_Row2_Title.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.CrossTab1_Row2_Title.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(255, 105, 105, 105));
this.CrossTab1_Row2_Title.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
//
// CrossTab1_ColTotal1
//
this.CrossTab1_ColTotal1 = new Stimulsoft.Report.CrossTab.StiCrossColumnTotal();
this.CrossTab1_ColTotal1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(5.28, 0.45, 1.49, 0.4);
this.CrossTab1_ColTotal1.Guid = "8e70a320715ea6a43f057f41a79058b9";
this.CrossTab1_ColTotal1.Name = "CrossTab1_ColTotal1";
this.CrossTab1_ColTotal1.Restrictions = ((((Stimulsoft.Report.Components.StiRestrictions.None | Stimulsoft.Report.Components.StiRestrictions.AllowMove)
| Stimulsoft.Report.Components.StiRestrictions.AllowResize)
| Stimulsoft.Report.Components.StiRestrictions.AllowSelect)
| Stimulsoft.Report.Components.StiRestrictions.AllowChange);
this.CrossTab1_ColTotal1.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.CrossTab1_ColTotal1__GetValue);
this.CrossTab1_ColTotal1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.All, System.Drawing.Color.FromArgb(255, 155, 155, 155), 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.CrossTab1_ColTotal1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.WhiteSmoke);
this.CrossTab1_ColTotal1.Font = new System.Drawing.Font("Arial", 8F);
this.CrossTab1_ColTotal1.Interaction = null;
this.CrossTab1_ColTotal1.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.CrossTab1_ColTotal1.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
this.CrossTab1_ColTotal1.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
//
// CrossTab1_LeftTitle
//
this.CrossTab1_LeftTitle = new Stimulsoft.Report.CrossTab.StiCrossTitle();
this.CrossTab1_LeftTitle.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0, 3.73, 0.4);
this.CrossTab1_LeftTitle.Guid = "10527c8ea6c3fde5ba4a7f41a790bf05";
this.CrossTab1_LeftTitle.Name = "CrossTab1_LeftTitle";
this.CrossTab1_LeftTitle.Restrictions = ((((Stimulsoft.Report.Components.StiRestrictions.None | Stimulsoft.Report.Components.StiRestrictions.AllowMove)
| Stimulsoft.Report.Components.StiRestrictions.AllowResize)
| Stimulsoft.Report.Components.StiRestrictions.AllowSelect)
| Stimulsoft.Report.Components.StiRestrictions.AllowChange);
this.CrossTab1_LeftTitle.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.CrossTab1_LeftTitle__GetValue);
this.CrossTab1_LeftTitle.TypeOfComponent = "LeftTitle";
this.CrossTab1_LeftTitle.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.All, System.Drawing.Color.FromArgb(255, 155, 155, 155), 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.CrossTab1_LeftTitle.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.WhiteSmoke);
this.CrossTab1_LeftTitle.Font = new System.Drawing.Font("Arial", 8F);
this.CrossTab1_LeftTitle.Interaction = null;
this.CrossTab1_LeftTitle.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.CrossTab1_LeftTitle.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(255, 105, 105, 105));
this.CrossTab1_LeftTitle.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
//
// CrossTab1_RightTitle
//
this.CrossTab1_RightTitle = new Stimulsoft.Report.CrossTab.StiCrossTitle();
this.CrossTab1_RightTitle.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(3.78, 0, 2.99, 0.4);
this.CrossTab1_RightTitle.Guid = "ad308670a179166d83567f41a7905ad1";
this.CrossTab1_RightTitle.Name = "CrossTab1_RightTitle";
this.CrossTab1_RightTitle.Restrictions = ((((Stimulsoft.Report.Components.StiRestrictions.None | Stimulsoft.Report.Components.StiRestrictions.AllowMove)
| Stimulsoft.Report.Components.StiRestrictions.AllowResize)
| Stimulsoft.Report.Components.StiRestrictions.AllowSelect)
| Stimulsoft.Report.Components.StiRestrictions.AllowChange);
this.CrossTab1_RightTitle.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.CrossTab1_RightTitle__GetValue);
this.CrossTab1_RightTitle.TypeOfComponent = "RightTitle";
this.CrossTab1_RightTitle.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.All, System.Drawing.Color.FromArgb(255, 155, 155, 155), 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.CrossTab1_RightTitle.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.WhiteSmoke);
this.CrossTab1_RightTitle.Font = new System.Drawing.Font("Arial", 8F);
this.CrossTab1_RightTitle.Interaction = null;
this.CrossTab1_RightTitle.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.CrossTab1_RightTitle.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(255, 105, 105, 105));
this.CrossTab1_RightTitle.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
//
// CrossTab1_Row1
//
this.CrossTab1_Row1 = new Stimulsoft.Report.CrossTab.StiCrossRow();
this.CrossTab1_Row1.Alias = "Level 1";
this.CrossTab1_Row1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(0, 0.9, 1.87, 0.8);
this.CrossTab1_Row1.GetDisplayCrossValue += new Stimulsoft.Report.CrossTab.StiGetCrossValueEventHandler(this.CrossTab1_Row1__GetDisplayCrossValue);
this.CrossTab1_Row1.Guid = "6e3365a2b2c8984a11507f41a790d986";
this.CrossTab1_Row1.Name = "CrossTab1_Row1";
this.CrossTab1_Row1.Restrictions = ((((Stimulsoft.Report.Components.StiRestrictions.None | Stimulsoft.Report.Components.StiRestrictions.AllowMove)
| Stimulsoft.Report.Components.StiRestrictions.AllowResize)
| Stimulsoft.Report.Components.StiRestrictions.AllowSelect)
| Stimulsoft.Report.Components.StiRestrictions.AllowChange);
this.CrossTab1_Row1.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.CrossTab1_Row1__GetValue);
this.CrossTab1_Row1.TotalGuid = "91fb35a0f9c72b4e4fef7f41a79078bd";
this.CrossTab1_Row1.GetCrossValue += new Stimulsoft.Report.CrossTab.StiGetCrossValueEventHandler(this.CrossTab1_Row1__GetCrossValue);
this.CrossTab1_Row1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.All, System.Drawing.Color.FromArgb(255, 155, 155, 155), 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.CrossTab1_Row1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.WhiteSmoke);
this.CrossTab1_Row1.Font = new System.Drawing.Font("Arial", 8F);
this.CrossTab1_Row1.Interaction = null;
this.CrossTab1_Row1.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.CrossTab1_Row1.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(255, 105, 105, 105));
this.CrossTab1_Row1.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
//
// CrossTab1_Row2
//
this.CrossTab1_Row2 = new Stimulsoft.Report.CrossTab.StiCrossRow();
this.CrossTab1_Row2.Alias = "Level 2";
this.CrossTab1_Row2.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(1.87, 0.9, 1.87, 0.4);
this.CrossTab1_Row2.GetDisplayCrossValue += new Stimulsoft.Report.CrossTab.StiGetCrossValueEventHandler(this.CrossTab1_Row2__GetDisplayCrossValue);
this.CrossTab1_Row2.Guid = "ac33b260cf17ecd6519c7f41a790c841";
this.CrossTab1_Row2.Name = "CrossTab1_Row2";
this.CrossTab1_Row2.Restrictions = ((((Stimulsoft.Report.Components.StiRestrictions.None | Stimulsoft.Report.Components.StiRestrictions.AllowMove)
| Stimulsoft.Report.Components.StiRestrictions.AllowResize)
| Stimulsoft.Report.Components.StiRestrictions.AllowSelect)
| Stimulsoft.Report.Components.StiRestrictions.AllowChange);
this.CrossTab1_Row2.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.CrossTab1_Row2__GetValue);
this.CrossTab1_Row2.TotalGuid = "ae4b283766060c3432c47f41a7903619";
this.CrossTab1_Row2.GetCrossValue += new Stimulsoft.Report.CrossTab.StiGetCrossValueEventHandler(this.CrossTab1_Row2__GetCrossValue);
this.CrossTab1_Row2.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.All, System.Drawing.Color.FromArgb(255, 155, 155, 155), 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.CrossTab1_Row2.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.WhiteSmoke);
this.CrossTab1_Row2.Font = new System.Drawing.Font("Arial", 8F);
this.CrossTab1_Row2.Interaction = null;
this.CrossTab1_Row2.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.CrossTab1_Row2.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(255, 105, 105, 105));
this.CrossTab1_Row2.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
//
// CrossTab1_Column1
//
this.CrossTab1_Column1 = new Stimulsoft.Report.CrossTab.StiCrossColumn();
this.CrossTab1_Column1.Alias = "Type";
this.CrossTab1_Column1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(3.78, 0.45, 1.49, 0.4);
this.CrossTab1_Column1.GetDisplayCrossValue += new Stimulsoft.Report.CrossTab.StiGetCrossValueEventHandler(this.CrossTab1_Column1__GetDisplayCrossValue);
this.CrossTab1_Column1.Guid = "c2e4518bccec1c0cab7a7f41a7a0da92";
this.CrossTab1_Column1.Name = "CrossTab1_Column1";
this.CrossTab1_Column1.Restrictions = ((((Stimulsoft.Report.Components.StiRestrictions.None | Stimulsoft.Report.Components.StiRestrictions.AllowMove)
| Stimulsoft.Report.Components.StiRestrictions.AllowResize)
| Stimulsoft.Report.Components.StiRestrictions.AllowSelect)
| Stimulsoft.Report.Components.StiRestrictions.AllowChange);
this.CrossTab1_Column1.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.CrossTab1_Column1__GetValue);
this.CrossTab1_Column1.TotalGuid = "8e70a320715ea6a43f057f41a79058b9";
this.CrossTab1_Column1.GetCrossValue += new Stimulsoft.Report.CrossTab.StiGetCrossValueEventHandler(this.CrossTab1_Column1__GetCrossValue);
this.CrossTab1_Column1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.All, System.Drawing.Color.FromArgb(255, 155, 155, 155), 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.CrossTab1_Column1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.WhiteSmoke);
this.CrossTab1_Column1.Font = new System.Drawing.Font("Arial", 8F);
this.CrossTab1_Column1.Interaction = null;
this.CrossTab1_Column1.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.CrossTab1_Column1.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.FromArgb(255, 105, 105, 105));
this.CrossTab1_Column1.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
//
// CrossTab1_Sum1
//
this.CrossTab1_Sum1 = new Stimulsoft.Report.CrossTab.StiCrossSummary();
this.CrossTab1_Sum1.Alias = "Value";
this.CrossTab1_Sum1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(3.78, 0.9, 1.49, 0.4);
this.CrossTab1_Sum1.Guid = "d7c357eb9dd40a172a347f41a7a05c2d";
this.CrossTab1_Sum1.Name = "CrossTab1_Sum1";
this.CrossTab1_Sum1.Restrictions = ((((Stimulsoft.Report.Components.StiRestrictions.None | Stimulsoft.Report.Components.StiRestrictions.AllowMove)
| Stimulsoft.Report.Components.StiRestrictions.AllowResize)
| Stimulsoft.Report.Components.StiRestrictions.AllowSelect)
| Stimulsoft.Report.Components.StiRestrictions.AllowChange);
this.CrossTab1_Sum1.GetValue += new Stimulsoft.Report.Events.StiGetValueEventHandler(this.CrossTab1_Sum1__GetValue);
this.CrossTab1_Sum1.GetCrossValue += new Stimulsoft.Report.CrossTab.StiGetCrossValueEventHandler(this.CrossTab1_Sum1__GetCrossValue);
this.CrossTab1_Sum1.Border = new Stimulsoft.Base.Drawing.StiBorder(Stimulsoft.Base.Drawing.StiBorderSides.All, System.Drawing.Color.FromArgb(255, 155, 155, 155), 1, Stimulsoft.Base.Drawing.StiPenStyle.Solid, false, 4, new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black));
this.CrossTab1_Sum1.Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.WhiteSmoke);
this.CrossTab1_Sum1.Font = new System.Drawing.Font("Arial", 8F);
this.CrossTab1_Sum1.Interaction = null;
this.CrossTab1_Sum1.Margins = new Stimulsoft.Report.Components.StiMargins(0, 0, 0, 0);
this.CrossTab1_Sum1.TextBrush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Black);
this.CrossTab1_Sum1.TextOptions = new Stimulsoft.Base.Drawing.StiTextOptions(false, false, false, 0F, System.Drawing.Text.HotkeyPrefix.None, System.Drawing.StringTrimming.None);
this.CrossTab1.Guid = null;
this.CrossTab1.Interaction = 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.Report_PrinterSettings = new Stimulsoft.Report.Print.StiPrinterSettings();
this.PrinterSettings = this.Report_PrinterSettings;
this.Page1.Report = this;
this.Page1.Watermark = this.Page1_Watermark;
this.CrossTab1.Page = this.Page1;
this.CrossTab1.Parent = this.Page1;
this.CrossTab1_RowTotal1.Page = this.Page1;
this.CrossTab1_RowTotal1.Parent = this.CrossTab1;
this.CrossTab1_Row1_Title.Page = this.Page1;
this.CrossTab1_Row1_Title.Parent = this.CrossTab1;
this.CrossTab1_RowTotal2.Page = this.Page1;
this.CrossTab1_RowTotal2.Parent = this.CrossTab1;
this.CrossTab1_Row2_Title.Page = this.Page1;
this.CrossTab1_Row2_Title.Parent = this.CrossTab1;
this.CrossTab1_ColTotal1.Page = this.Page1;
this.CrossTab1_ColTotal1.Parent = this.CrossTab1;
this.CrossTab1_LeftTitle.Page = this.Page1;
this.CrossTab1_LeftTitle.Parent = this.CrossTab1;
this.CrossTab1_RightTitle.Page = this.Page1;
this.CrossTab1_RightTitle.Parent = this.CrossTab1;
this.CrossTab1_Row1.Page = this.Page1;
this.CrossTab1_Row1.Parent = this.CrossTab1;
this.CrossTab1_Row2.Page = this.Page1;
this.CrossTab1_Row2.Parent = this.CrossTab1;
this.CrossTab1_Column1.Page = this.Page1;
this.CrossTab1_Column1.Parent = this.CrossTab1;
this.CrossTab1_Sum1.Page = this.Page1;
this.CrossTab1_Sum1.Parent = this.CrossTab1;
//
// Add to CrossTab1.Components
//
this.CrossTab1.Components.Clear();
this.CrossTab1.Components.AddRange(new Stimulsoft.Report.Components.StiComponent[] {
this.CrossTab1_RowTotal1,
this.CrossTab1_Row1_Title,
this.CrossTab1_RowTotal2,
this.CrossTab1_Row2_Title,
this.CrossTab1_ColTotal1,
this.CrossTab1_LeftTitle,
this.CrossTab1_RightTitle,
this.CrossTab1_Row1,
this.CrossTab1_Row2,
this.CrossTab1_Column1,
this.CrossTab1_Sum1});
//
// Add to Page1.Components
//
this.Page1.Components.Clear();
this.Page1.Components.AddRange(new Stimulsoft.Report.Components.StiComponent[] {
this.CrossTab1});
//
// Add to Pages
//
this.Pages.Clear();
this.Pages.AddRange(new Stimulsoft.Report.Components.StiPage[] {
this.Page1});
this.Historical_Fund_Categorisation.Columns.AddRange(new Stimulsoft.Report.Dictionary.StiDataColumn[] {
new Stimulsoft.Report.Dictionary.StiDataColumn("Level 1", "Level 1", "Level 1", typeof(string)),
new Stimulsoft.Report.Dictionary.StiDataColumn("Level 2", "Level 2", "Level 2", typeof(string)),
new Stimulsoft.Report.Dictionary.StiDataColumn("Type", "Type", "Type", typeof(string)),
new Stimulsoft.Report.Dictionary.StiDataColumn("Value", "Value", "Value", typeof(double)),
new Stimulsoft.Report.Dictionary.StiDataColumn("ID", "ID", "ID", typeof(int))});
this.DataSources.Add(this.Historical_Fund_Categorisation);
}
#region DataSource Historical_Fund_Categorisation
public class Historical_Fund_CategorisationDataSource : Stimulsoft.Report.Dictionary.StiDataTableSource
{
public Historical_Fund_CategorisationDataSource() :
base("TestSet.Historical Fund Categorisation", "Historical Fund Categorisation")
{
}
public virtual string Level_1
{
get
{
return ((string)(StiReport.ChangeType(this["Level 1"], typeof(string), true)));
}
}
public virtual string Level_2
{
get
{
return ((string)(StiReport.ChangeType(this["Level 2"], typeof(string), true)));
}
}
public virtual string Type
{
get
{
return ((string)(StiReport.ChangeType(this["Type"], typeof(string), true)));
}
}
public virtual double Value
{
get
{
return ((double)(StiReport.ChangeType(this["Value"], typeof(double), true)));
}
}
public virtual int ID
{
get
{
return ((int)(StiReport.ChangeType(this["ID"], typeof(int), true)));
}
}
}
#endregion DataSource Historical_Fund_Categorisation
#endregion StiReport Designer generated code - do not modify
}
}
- Вложения
-
- CrossTableNamingFail.zip
- (21.34 КБ) 331 скачивание
Cross-Tab
Приложил код проекта к предыдущему письму. В проекте используются бинарные файлы StimulSoft:
Stimulsoft.Base.dll
Stimulsoft.Report.Design.dll
Stimulsoft.Report.Design.WebViewer.dll
Stimulsoft.Report.dll
Stimulsoft.Report.Web.dll
Stimulsoft.Report.WebDesign.xml
Stimulsoft.Report.WebFx.dll
Должны быть выложены в под-директории dll проекта
Stimulsoft.Base.dll
Stimulsoft.Report.Design.dll
Stimulsoft.Report.Design.WebViewer.dll
Stimulsoft.Report.dll
Stimulsoft.Report.Web.dll
Stimulsoft.Report.WebDesign.xml
Stimulsoft.Report.WebFx.dll
Должны быть выложены в под-директории dll проекта
Cross-Tab
Здравствуйте,
Ошибку обнаружили и исправили, обновление будет доступно в следующем пререлиз билде 5 июля.
Спасибо.
Ошибку обнаружили и исправили, обновление будет доступно в следующем пререлиз билде 5 июля.
Спасибо.
Cross-Tab
Похожая проблема возникает если поля элемента Dictionary содержат символы '(', ')', '[', ']', '-', '/'
Эти символы недопустимы для имен полей?
Эти символы недопустимы для имен полей?
Cross-Tab
Здравствуйте,
Для полей Name и NameInSource эти символы нежелательны. Используйте псевдоним (Alias) для понятных названий колонок и таблиц.
Спасибо.
Для полей Name и NameInSource эти символы нежелательны. Используйте псевдоним (Alias) для понятных названий колонок и таблиц.
Спасибо.
Cross-Tab
Как задать эти алиасы используя XML схему?
Так как я создаю Dictionary именно из XML схемы
Так как я создаю Dictionary именно из XML схемы
Cross-Tab
Здравствуйте,
Можно задать только псевдоним поля источника данных. Пример:
Спасибо.
Можно задать только псевдоним поля источника данных. Пример:
Код: Выделить всё