Browse Source

First, very basic implementation for FormSheet Wizard

pull/520/merge
Peter Forstmeier 11 years ago
parent
commit
9f847f624f
  1. 1
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/ICSharpCode.Reporting.Addin.csproj
  2. 45
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignableItems/ReportSettings.cs
  3. 13
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignerBinding/DesignerBinding.cs
  4. 7
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignerBinding/DesignerGenerator.cs
  5. 65
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/Dialog/BaseSettingsPage.xaml
  6. 19
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/Dialog/BaseSettingsPage.xaml.cs
  7. 7
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/Dialog/ReportWizard.xaml
  8. 18
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/Dialog/ReportWizard.xaml.cs
  9. 45
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/ReportGenerator.cs
  10. 4
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/ReportWizardCommand.cs
  11. 5
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/ViewModels/PageOneContext.cs
  12. 76
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Globals/GlobalEnums.cs
  13. 2
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Items/BaseSection.cs
  14. 1
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Items/BaseTextItem.cs
  15. 1
      src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Items/PrintableItem.cs

1
src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/ICSharpCode.Reporting.Addin.csproj

@ -79,7 +79,6 @@ @@ -79,7 +79,6 @@
</ItemGroup>
<ItemGroup>
<Folder Include="Configuration" />
<Folder Include="src\New Folder" />
<Folder Include="src" />
<Folder Include="src\DesignerBinding" />
<Folder Include="src\Commands" />

45
src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignableItems/ReportSettings.cs

@ -42,10 +42,10 @@ namespace ICSharpCode.Reporting.Addin.DesignableItems @@ -42,10 +42,10 @@ namespace ICSharpCode.Reporting.Addin.DesignableItems
// this.ConnectionString = String.Empty;
// this.CommandText = String.Empty;
//
// this.TopMargin = GlobalValues.DefaultPageMargin.Left;
// this.BottomMargin = GlobalValues.DefaultPageMargin.Bottom;
// this.LeftMargin = GlobalValues.DefaultPageMargin.Left;
// this.RightMargin = GlobalValues.DefaultPageMargin.Right;
this.TopMargin = GlobalValues.DefaultPageMargin.Left;
this.BottomMargin = GlobalValues.DefaultPageMargin.Bottom;
this.LeftMargin = GlobalValues.DefaultPageMargin.Left;
this.RightMargin = GlobalValues.DefaultPageMargin.Right;
//
// this.availableFields = new AvailableFieldsCollection();
// this.groupingsCollection = new GroupColumnCollection();
@ -57,10 +57,9 @@ namespace ICSharpCode.Reporting.Addin.DesignableItems @@ -57,10 +57,9 @@ namespace ICSharpCode.Reporting.Addin.DesignableItems
}
private string reportName;
string reportName;
// [Category("Base Settings")]
// [DefaultValueAttribute ("")]
[Category("Base Settings")]
public string ReportName
{
get {
@ -76,8 +75,9 @@ namespace ICSharpCode.Reporting.Addin.DesignableItems @@ -76,8 +75,9 @@ namespace ICSharpCode.Reporting.Addin.DesignableItems
}
}
private string fileName;
// [Category("Base Settings")]
string fileName;
[Category("Base Settings")]
// [XmlIgnoreAttribute]
public string FileName
{
@ -93,25 +93,28 @@ namespace ICSharpCode.Reporting.Addin.DesignableItems @@ -93,25 +93,28 @@ namespace ICSharpCode.Reporting.Addin.DesignableItems
}
// [Category("Page Settings")]
[Browsable(true), Category("Base Settings")]
public ReportType ReportType {get;set;}
[Category("Page Settings")]
public int BottomMargin {get;set;}
// [Category("Page Settings")]
[Category("Page Settings")]
public int TopMargin {get;set;}
// [Category("Page Settings")]
[Category("Page Settings")]
public int LeftMargin {get;set;}
// [Category("Page Settings")]
[Category("Page Settings")]
public int RightMargin {get;set;}
private Size pageSize;
Size pageSize;
[Category("Page Settings")]
public Size PageSize {
get {
if (!Landscape) {
@ -123,19 +126,15 @@ namespace ICSharpCode.Reporting.Addin.DesignableItems @@ -123,19 +126,15 @@ namespace ICSharpCode.Reporting.Addin.DesignableItems
set { pageSize = value; }
}
// [Category("Page Settings")]
// public Size PageSize {get;set;}
// [Category("Page Settings")]
[Category("Page Settings")]
public bool Landscape {get;set;}
// [Category("Data")]
[Category("Data")]
public PushPullModel DataModel {get;set;}
// [Browsable(true), Category("Base Settings")]
public ReportType ReportType {get;set;}
// [Category("Parameters")]
// [EditorAttribute ( typeof(ParameterCollectionEditor),

13
src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignerBinding/DesignerBinding.cs

@ -47,8 +47,17 @@ namespace ICSharpCode.Reporting.Addin.DesignerBinding { @@ -47,8 +47,17 @@ namespace ICSharpCode.Reporting.Addin.DesignerBinding {
if (file.IsDirty) {
var cmd = new ReportWizardCommand(file);
cmd.Run();
if (cmd.Canceled) {
if (!cmd.Canceled) {
LoggingService.Info("reportWizard canceled");
//return null;
var reportModel = cmd.ReportModel;
var xml = CreateFormSheetFromModel.ToXml(reportModel);
var doc = new XmlDocument();
doc.LoadXml(xml.ToString());
var ar = XmlToArray(doc);
file.SetData(ar);
} else {
return null;
}
}
@ -71,7 +80,7 @@ namespace ICSharpCode.Reporting.Addin.DesignerBinding { @@ -71,7 +80,7 @@ namespace ICSharpCode.Reporting.Addin.DesignerBinding {
}
*/
*/
}
static byte[] XmlToArray(XmlDocument doc)

7
src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignerBinding/DesignerGenerator.cs

@ -78,9 +78,10 @@ namespace ICSharpCode.Reporting.Addin.DesignerBinding @@ -78,9 +78,10 @@ namespace ICSharpCode.Reporting.Addin.DesignerBinding
// we look only for Sections
foreach (var component in viewContent.Host.Container.Components) {
var b = component as BaseSection;
if (b != null) {
reportDesignerWriter.Save(component,xml);
var section = component as BaseSection;
if (section != null) {
// reportDesignerWriter.Save(component,xml);
reportDesignerWriter.Save(section,xml);
}
}
//SectionCollection

65
src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/Dialog/BaseSettingsPage.xaml

@ -2,27 +2,31 @@ @@ -2,27 +2,31 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:System="clr-namespace:System;assembly=mscorlib"
xmlns:aa="clr-namespace:ICSharpCode.Reporting.Globals;assembly=ICSharpCode.Reporting"
xmlns:ics="clr-namespace:ICSharpCode.Reporting.Globals;assembly=ICSharpCode.Reporting"
xmlns:System="clr-namespace:System;assembly=mscorlib"
xmlns:sdr="clr-namespace:ICSharpCode.Reporting.Globals;assembly=ICSharpCode.Reporting"
Title="Base Settings"
Description="Basic Settings and Layout"
Background="LightGray">
Background="LightGray"
CanFinish="true">
<!-- Enter="WizardPage_Enter"
Leave="WizardPage_Leave"-->
<!-- !xctk:WizardPage x:Class="ICSharpCode.Reporting.Addin.ReportWizard.Dialog.PageWithContext"-->
<xctk:WizardPage.Resources>
<ObjectDataProvider x:Key="dataFromEnum" MethodName="GetValues"
ObjectType="{x:Type System:Enum}">
<ObjectDataProvider.MethodParameters>
<x:Type TypeName="aa:PushPullModel"/>
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
<ObjectDataProvider x:Key="pushpullEnum" MethodName="GetValues"
ObjectType="{x:Type System:Enum}">
<ObjectDataProvider.MethodParameters>
<x:Type TypeName="sdr:PushPullModel"/>
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
<ObjectDataProvider x:Key="reportTypeEnum" MethodName="GetValues"
ObjectType="{x:Type System:Enum}">
<ObjectDataProvider.MethodParameters>
<x:Type TypeName="sdr:ReportType"/>
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
</xctk:WizardPage.Resources>
<Grid ShowGridLines="true">
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="Auto"> </RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
@ -30,10 +34,10 @@ xmlns:aa="clr-namespace:ICSharpCode.Reporting.Globals;assembly=ICSharpCode.Repor @@ -30,10 +34,10 @@ xmlns:aa="clr-namespace:ICSharpCode.Reporting.Globals;assembly=ICSharpCode.Repor
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
@ -43,14 +47,17 @@ xmlns:aa="clr-namespace:ICSharpCode.Reporting.Globals;assembly=ICSharpCode.Repor @@ -43,14 +47,17 @@ xmlns:aa="clr-namespace:ICSharpCode.Reporting.Globals;assembly=ICSharpCode.Repor
</Grid.ColumnDefinitions>
<Label Content="DataModel :"></Label>
<!--<RadioButton Name="_FormSheet" GroupName="DataModel" Content="FormSheet" Margin="0,5,0,5" Grid.Row="1" ></RadioButton>
<RadioButton Name="_PushModel" GroupName="DataModel" Content="PushModel" Margin="0,5,0,5" Grid.Row="1" Grid.Column="1"></RadioButton>
-->
<ComboBox ItemsSource="{Binding Source={StaticResource dataFromEnum}}" Grid.Column="1" ></ComboBox>
<ComboBox Name="_DataModel" Margin="10,5,0,5"
Grid.Column="1"
ItemsSource="{Binding Source={StaticResource pushpullEnum}}">
</ComboBox>
<Label Content="ReportType :" Margin="0,5,0,5" Grid.Row="2"></Label>
<RadioButton Name="_FormSheetType" GroupName="ReportType" Content="FormSheet" Margin="0,5,0,5" Grid.Row="3" ></RadioButton>
<RadioButton Name="_DataModelType" GroupName="ReportType" Content="PushModel" Margin="0,5,0,5" Grid.Row="3" Grid.Column="1"></RadioButton>
<ComboBox Name="_ReportType" Margin="10,5,0,5"
Grid.Row="2" Grid.Column="1"
ItemsSource="{Binding Source={StaticResource reportTypeEnum}}">
</ComboBox>
<Label Content="Report Name :" Margin="0,5,0,5" Grid.Row="4"></Label>
<TextBox Name="_ReportName" Margin="10,5,0,5" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="3"></TextBox>
@ -59,8 +66,8 @@ xmlns:aa="clr-namespace:ICSharpCode.Reporting.Globals;assembly=ICSharpCode.Repor @@ -59,8 +66,8 @@ xmlns:aa="clr-namespace:ICSharpCode.Reporting.Globals;assembly=ICSharpCode.Repor
<TextBox Name="_Filename" Margin="10,5,0,5" Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="3"></TextBox>
<Label Content="Page Layout :" Grid.Row="6" Margin="0,5,0,5"></Label>
<RadioButton Name="_Legal" GroupName="PageLayout" Content="Legal" Grid.Row="7" Margin="0,5,0,5" ></RadioButton>
<RadioButton Name="_Landscape" GroupName="PageLayout" Content="Landscape" Grid.Row="7" Grid.Column="1" Margin="0,5,0,5"></RadioButton>
<RadioButton Name="_Legal" GroupName="PageLayout" Content="Legal" IsChecked="true" Grid.Row="7" Margin="0,5,0,5" ></RadioButton>
<RadioButton Name="_Landscape" GroupName="PageLayout" Content="Landscape" Grid.Row="7" Grid.Column="1" Margin="0,5,0,5"></RadioButton>
</Grid>
</xctk:WizardPage>

19
src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/Dialog/BaseSettingsPage.xaml.cs

@ -8,6 +8,7 @@ @@ -8,6 +8,7 @@
*/
using System;
using System.Windows;
using ICSharpCode.Reporting.Globals;
using Xceed.Wpf.Toolkit;
using ICSharpCode.Reporting.Addin.ReportWizard.ViewModels;
@ -23,6 +24,8 @@ namespace ICSharpCode.Reporting.Addin.ReportWizard.Dialog{ @@ -23,6 +24,8 @@ namespace ICSharpCode.Reporting.Addin.ReportWizard.Dialog{
public BaseSettingsPage()
{
InitializeComponent();
_DataModel.SelectedItem = PushPullModel.FormSheet;
_ReportType.SelectedItem = ReportType.FormSheet;
this.context = new PageOneContext();
}
@ -38,21 +41,11 @@ namespace ICSharpCode.Reporting.Addin.ReportWizard.Dialog{ @@ -38,21 +41,11 @@ namespace ICSharpCode.Reporting.Addin.ReportWizard.Dialog{
}
void WizardPage_Enter(object sender, RoutedEventArgs e)
{
Console.Write("Create Context for PageOne");
}
void WizardPage_Leave(object sender, RoutedEventArgs e)
{
// NewMethod();
}
void UpdateContext()
{
// context.FormSheet = this._FormSheet.IsChecked == true;
// context.PushModel = this._PushModel.IsChecked == true;
context.DataModel = (PushPullModel) _DataModel.SelectedItem;
context.ReportType = (ReportType) _ReportType.SelectedItem;
context.ReportName = this._ReportName.Text;
context.FileName = this._Filename.Text;
context.Legal = _Legal.IsChecked == true;

7
src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/Dialog/ReportWizard.xaml

@ -20,14 +20,15 @@ @@ -20,14 +20,15 @@
<xctk:WizardPage PageType="Interior"
Title="Page 1"
Description="This is the first page in the process." />
<xctk:WizardPage PageType="Interior"
Description="This is the first page in the process."
CanFinish="True" />
<!-- <xctk:WizardPage PageType="Interior"
Title="Page 2"
Description="This is the second page in the process" />
<xctk:WizardPage PageType="Interior"
Title="Last Page"
Description="This is the last page in the process"
CanFinish="True" />
CanFinish="True" />-->
</xctk:Wizard>
</Window>

18
src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/Dialog/ReportWizard.xaml.cs

@ -19,16 +19,15 @@ namespace ICSharpCode.Reporting.Addin.ReportWizard.Dialog @@ -19,16 +19,15 @@ namespace ICSharpCode.Reporting.Addin.ReportWizard.Dialog
/// </summary>
public partial class ReportWizard : Window
{
ReportWizardContext context;
BaseSettingsPage baseSettingsPage;
readonly ReportWizardContext context;
readonly BaseSettingsPage baseSettingsPage;
public ReportWizard(ReportWizardContext context)
{
InitializeComponent();
this.context = context;
baseSettingsPage = new BaseSettingsPage();
_wizard.Items.Insert(2,baseSettingsPage);
_wizard.Items.Insert(1,baseSettingsPage);
}
@ -44,17 +43,6 @@ namespace ICSharpCode.Reporting.Addin.ReportWizard.Dialog @@ -44,17 +43,6 @@ namespace ICSharpCode.Reporting.Addin.ReportWizard.Dialog
void _wizard_Finish(object sender, RoutedEventArgs e)
{
var x = _wizard.Items;
foreach (var element in this._wizard.Items) {
var isHasContext = element is IHasContext;
if (isHasContext) {
var hasContext = (IHasContext) element;
Console.WriteLine(" {0} - {1}",hasContext.PageNumber,element.ToString());
}
}
context.PageOneContext = baseSettingsPage.Context;
}

45
src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/ReportGenerator.cs

@ -7,7 +7,13 @@ @@ -7,7 +7,13 @@
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Drawing;
using ICSharpCode.Reporting.Factories;
using ICSharpCode.Reporting.Globals;
using ICSharpCode.Reporting.Interfaces;
using ICSharpCode.Reporting.Items;
using ICSharpCode.Reporting.Addin.ReportWizard.ViewModels;
namespace ICSharpCode.Reporting.Addin.ReportWizard
@ -18,14 +24,53 @@ namespace ICSharpCode.Reporting.Addin.ReportWizard @@ -18,14 +24,53 @@ namespace ICSharpCode.Reporting.Addin.ReportWizard
public class ReportGenerator
{
ReportWizardContext context;
public ReportGenerator(ReportWizardContext context)
{
if (context == null)
throw new ArgumentNullException("context");
this.context = context;
ReportModel = ReportModelFactory.Create();
}
public void Generate() {
PageOneGenerate();
CreateReportHeader();
}
void PageOneGenerate()
{
var pageOne = (PageOneContext)context.PageOneContext;
var reportSettings = ReportModel.ReportSettings;
reportSettings.DataModel = pageOne.DataModel;
reportSettings.FileName = pageOne.FileName;
if (pageOne.Legal) {
reportSettings.Landscape = false;
} else {
reportSettings.Landscape = true;
}
reportSettings.ReportName = pageOne.ReportName;
reportSettings.ReportType = pageOne.ReportType;
}
void CreateReportHeader()
{
var headerText = new BaseTextItem();
headerText.Text = "Header";
headerText.Size = GlobalValues.PreferedSize;
var printableWith = ReportModel.ReportSettings.PageSize.Width - ReportModel.ReportSettings.LeftMargin - ReportModel.ReportSettings.RightMargin;
var x = (int)(printableWith - headerText.Size.Width) / 2;
headerText.Location = new Point(x,4);
ReportModel.ReportHeader.Items.Add(headerText);
Console.WriteLine("");
Console.WriteLine("Createreportheader Size {0}",ReportModel.ReportHeader.Size);
}
public IReportModel ReportModel {get;private set;}
}
}

4
src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/ReportWizardCommand.cs

@ -38,11 +38,15 @@ namespace ICSharpCode.Reporting.Addin.ReportWizard @@ -38,11 +38,15 @@ namespace ICSharpCode.Reporting.Addin.ReportWizard
LoggingService.Info("ReportWizard - CreateReport");
var rg = new ReportGenerator(wizardViewModel);
rg.Generate();
ReportModel = rg.ReportModel;
} else {
Canceled = true;
}
}
public bool Canceled {get; private set;}
public IReportModel ReportModel {get;private set;}
}
}

5
src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/ViewModels/PageOneContext.cs

@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using ICSharpCode.Reporting.Globals;
using Xceed.Wpf.Toolkit;
namespace ICSharpCode.Reporting.Addin.ReportWizard.ViewModels
@ -16,8 +17,8 @@ namespace ICSharpCode.Reporting.Addin.ReportWizard.ViewModels @@ -16,8 +17,8 @@ namespace ICSharpCode.Reporting.Addin.ReportWizard.ViewModels
/// </summary>
public class PageOneContext:IWizardContext
{
public bool FormSheet {get;set;}
public bool PushModel {get;set;}
public PushPullModel DataModel {get;set;}
public ReportType ReportType {get;set;}
public string ReportName {get;set;}
public string FileName {get;set;}
public bool Legal {get;set;}

76
src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Globals/GlobalEnums.cs

@ -20,69 +20,35 @@ using System; @@ -20,69 +20,35 @@ using System;
namespace ICSharpCode.Reporting.Globals
{
/// <summary>
/// Description of GlobalEnums.
/// </summary>
///<summary>Technics to get the data
/// Push : report get's a ready filld dataset or something tah implements IList
/// Pull : report has to fill data by themself
/// FormSheet : FormSheet report, just labels and images are allowed
/// </summary>
///
/// Push : report get's a ready filld dataset or something tah implements IList
/// Pull : report has to fill data by themself
/// FormSheet : FormSheet report, just labels and images are allowed
/// </summary>
public enum PushPullModel {
PushData,
PullData,
FormSheet
PushData,
PullData,
FormSheet
}
/// <summary>
/// FormSheet means a blank form with Labels, Lines and Checkboxes
/// DataReport handles all Reports with Data
/// </summary>
/// FormSheet means a blank form with Labels, Lines and Checkboxes
/// DataReport handles all Reports with Data
/// </summary>
public enum ReportType {
FormSheet,
DataReport,
FormSheet,
DataReport,
}
public enum ReportSection {
ReportHeader,
ReportPageHeader,
ReportDetail,
ReportPageFooter,
ReportFooter
}
public sealed class GlobalEnums
{
private GlobalEnums() {
}
///<summary>Technics to get the data
/// Push : report get's a ready filld dataset or something tah implements IList
/// Pull : report has to fill data by themself
/// FormSheet : FormSheet report, just labels and images are allowed
/// </summary>
///
// public enum PushPullModel {
// PushData,
// PullData,
// FormSheet
// }
/// <summary>
/// FormSheet means a blank form with Labels, Lines and Checkboxes
/// DataReport handles all Reports with Data
/// </summary>
// public enum ReportType {
// FormSheet,
// DataReport,
// }
public enum ReportSection {
ReportHeader,
ReportPageHeader,
ReportDetail,
ReportPageFooter,
ReportFooter
}
}

2
src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Items/BaseSection.cs

@ -26,7 +26,7 @@ namespace ICSharpCode.Reporting.Items @@ -26,7 +26,7 @@ namespace ICSharpCode.Reporting.Items
/// Description of BaseSection.
/// </summary>
public class BaseSection:ReportContainer,IReportContainer
public class BaseSection:ReportContainer
{

1
src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Items/BaseTextItem.cs

@ -45,6 +45,7 @@ namespace ICSharpCode.Reporting.Items @@ -45,6 +45,7 @@ namespace ICSharpCode.Reporting.Items
public BaseTextItem(){
Name = "BaseTextItem";
Font = GlobalValues.DefaultFont;
}

1
src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/Items/PrintableItem.cs

@ -18,6 +18,7 @@ @@ -18,6 +18,7 @@
using System;
using System.Drawing;
using ICSharpCode.Reporting.Globals;
using ICSharpCode.Reporting.Interfaces;
using ICSharpCode.Reporting.Interfaces.Export;

Loading…
Cancel
Save