Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5394 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61pull/1/head
9 changed files with 315 additions and 352 deletions
@ -1,176 +1,284 @@ |
|||||||
<ReportModel> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
<ReportSettings> |
<ReportModel> |
||||||
<ReportSettings> |
<ReportSettings> |
||||||
<ReportName>Report1</ReportName> |
<ReportSettings> |
||||||
<ReportType>DataReport</ReportType> |
<GridSize>8, 8</GridSize> |
||||||
<UseStandardPrinter>True</UseStandardPrinter> |
<PageSize>827, 1169</PageSize> |
||||||
<DefaultMargins>50, 50, 50, 50</DefaultMargins> |
<CommandText /> |
||||||
<GraphicsUnit>Millimeter</GraphicsUnit> |
<Landscape>False</Landscape> |
||||||
<GridSize>8, 8</GridSize> |
<GroupColumnsCollection /> |
||||||
<Padding>5, 5, 5, 5</Padding> |
<RightMargin>50</RightMargin> |
||||||
<AvailableFieldsCollection /> |
<NoDataMessage>No Data for this Report</NoDataMessage> |
||||||
<SortColumnCollection /> |
<DefaultFont>Microsoft Sans Serif, 10pt</DefaultFont> |
||||||
<GroupColumnsCollection /> |
<ReportType>DataReport</ReportType> |
||||||
<ConnectionString /> |
<UseStandardPrinter>True</UseStandardPrinter> |
||||||
<!--System.ArgumentException: Der Wert "0" ist für die Enumeration "CommandType" ungültig. |
<CommandType>Text</CommandType> |
||||||
bei System.ComponentModel.EnumConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType) |
<GraphicsUnit>Millimeter</GraphicsUnit> |
||||||
bei System.ComponentModel.TypeConverter.ConvertToString(ITypeDescriptorContext context, CultureInfo culture, Object value) |
<TopMargin>50</TopMargin> |
||||||
bei System.ComponentModel.TypeConverter.ConvertToInvariantString(Object value) |
<ConnectionString /> |
||||||
bei ICSharpCode.Reports.Core.MycroWriter.Save(Object obj, XmlWriter writer) in d:\SharpReport\src\ICSharpCode.Reports.Core\Project\Xml\MycroWriter.cs:Zeile 51.--> |
<Padding>5, 5, 5, 5</Padding> |
||||||
<DataModel>PushData</DataModel> |
<LeftMargin>50</LeftMargin> |
||||||
<NoDataMessage>No Data for this Report</NoDataMessage> |
<SortColumnCollection /> |
||||||
<DefaultFont>Microsoft Sans Serif, 10pt</DefaultFont> |
<DataModel>PushData</DataModel> |
||||||
|
<BottomMargin>50</BottomMargin> |
||||||
|
<AvailableFieldsCollection /> |
||||||
|
<ReportName>Report1</ReportName> |
||||||
|
<ParameterCollection /> |
||||||
|
</ReportSettings> |
||||||
</ReportSettings> |
</ReportSettings> |
||||||
</ReportSettings> |
<SectionCollection> |
||||||
<SectionCollection> |
<BaseSection> |
||||||
<BaseSection> |
<Size>786, 35</Size> |
||||||
<BackColor>Window</BackColor> |
<Name>ReportHeader</Name> |
||||||
<Size>786, 35</Size> |
<PageBreakAfter>False</PageBreakAfter> |
||||||
<CanGrow>False</CanGrow> |
<SectionMargin>50</SectionMargin> |
||||||
<CanShrink>False</CanShrink> |
<SectionOffset>0</SectionOffset> |
||||||
<SectionMargin>50</SectionMargin> |
<BackColor>Window</BackColor> |
||||||
<Items /> |
<Items /> |
||||||
<PageBreakAfter>False</PageBreakAfter> |
<Location>50, 50</Location> |
||||||
<Name>ReportHeader</Name> |
<DrawBorder>False</DrawBorder> |
||||||
</BaseSection> |
</BaseSection> |
||||||
<BaseSection> |
<BaseSection> |
||||||
<BackColor>Window</BackColor> |
<Size>786, 108</Size> |
||||||
<Size>786, 108</Size> |
<Name>ReportPageHeader</Name> |
||||||
<CanGrow>False</CanGrow> |
<PageBreakAfter>False</PageBreakAfter> |
||||||
<CanShrink>False</CanShrink> |
<SectionMargin>50</SectionMargin> |
||||||
<SectionMargin>50</SectionMargin> |
<SectionOffset>0</SectionOffset> |
||||||
<Items> |
<BackColor>Window</BackColor> |
||||||
<BaseImageItem> |
<Items> |
||||||
<Size>661, 42</Size> |
<BaseTextItem> |
||||||
<Location>47, 6</Location> |
<BackColor>White</BackColor> |
||||||
<Name>ReportImageControl</Name> |
<CanShrink>False</CanShrink> |
||||||
<ImageFileName>D:\SharpReport\samples\Reports\Logos\Bannerbeige2.gif</ImageFileName> |
<StringTrimming>None</StringTrimming> |
||||||
<RelativeFileName>..\Logos\Bannerbeige2.gif</RelativeFileName> |
<Text>Job</Text> |
||||||
<ScaleImageToSize>False</ScaleImageToSize> |
<Location>429, 63</Location> |
||||||
<Visible>True</Visible> |
<ContentAlignment>TopLeft</ContentAlignment> |
||||||
</BaseImageItem> |
<Visible>True</Visible> |
||||||
<BaseLineItem> |
<DrawBorder>False</DrawBorder> |
||||||
<Size>661, 19</Size> |
<Font>Microsoft Sans Serif, 12pt, style=Bold</Font> |
||||||
<Location>47, 87</Location> |
<CanGrow>False</CanGrow> |
||||||
<FromPoint>47, 87</FromPoint> |
<FormatString /> |
||||||
<ToPoint>708, 87</ToPoint> |
<Name>Job</Name> |
||||||
<Thickness>1</Thickness> |
<FrameColor>WindowFrame</FrameColor> |
||||||
<DashStyle>Solid</DashStyle> |
<Size>100, 20</Size> |
||||||
<ForeColor>ControlText</ForeColor> |
<ForeColor>ControlText</ForeColor> |
||||||
<Visible>True</Visible> |
</BaseTextItem> |
||||||
<BackColor>White</BackColor> |
<BaseTextItem> |
||||||
</BaseLineItem> |
<BackColor>White</BackColor> |
||||||
<BaseTextItem> |
<CanShrink>False</CanShrink> |
||||||
<Name>reportTextItem1</Name> |
<StringTrimming>None</StringTrimming> |
||||||
<Location>46, 63</Location> |
<Text>Lastname</Text> |
||||||
<Size>109, 20</Size> |
<Location>234, 63</Location> |
||||||
<Font>Microsoft Sans Serif, 10pt</Font> |
<ContentAlignment>TopLeft</ContentAlignment> |
||||||
<Text>Firstname</Text> |
<Visible>True</Visible> |
||||||
<FormatString /> |
<DrawBorder>False</DrawBorder> |
||||||
<StringTrimming>EllipsisCharacter</StringTrimming> |
<Font>Microsoft Sans Serif, 12pt, style=Bold</Font> |
||||||
<ContentAlignment>MiddleLeft</ContentAlignment> |
<CanGrow>False</CanGrow> |
||||||
<DrawBorder>False</DrawBorder> |
<FormatString /> |
||||||
<ForeColor>ControlText</ForeColor> |
<Name>Lastname</Name> |
||||||
<Visible>True</Visible> |
<FrameColor>WindowFrame</FrameColor> |
||||||
<BackColor>White</BackColor> |
<Size>100, 20</Size> |
||||||
</BaseTextItem> |
<ForeColor>ControlText</ForeColor> |
||||||
</Items> |
</BaseTextItem> |
||||||
<PageBreakAfter>False</PageBreakAfter> |
<BaseImageItem> |
||||||
<Name>ReportPageHeader</Name> |
<ImageSource>File</ImageSource> |
||||||
</BaseSection> |
<Location>47, 6</Location> |
||||||
<BaseSection> |
<Name>ReportImageControl</Name> |
||||||
<BackColor>Window</BackColor> |
<Size>661, 42</Size> |
||||||
<Size>786, 51</Size> |
<ScaleImageToSize>False</ScaleImageToSize> |
||||||
<CanGrow>False</CanGrow> |
<BackColor>Window</BackColor> |
||||||
<CanShrink>False</CanShrink> |
<RelativeFileName>D:\SharpReport\samples\Reports\Logos\Bannerbeige2.gif</RelativeFileName> |
||||||
<SectionMargin>50</SectionMargin> |
<ImageFileName>D:\Reporting3.0_branches\SharpDevelop\samples\SharpDevelopReports\SampleReports\Logos\Bannerbeige2.gif</ImageFileName> |
||||||
<Items> |
</BaseImageItem> |
||||||
<BaseRowItem> |
<BaseLineItem> |
||||||
<Name>Row</Name> |
<StartLineCap>Flat</StartLineCap> |
||||||
<Size>655, 40</Size> |
<FromPoint>0, 0</FromPoint> |
||||||
<Location>47, 10</Location> |
<Location>47, 87</Location> |
||||||
<Font>Microsoft Sans Serif, 10pt</Font> |
<Name /> |
||||||
<AlternateBackColor /> |
<Size>661, 19</Size> |
||||||
<ChangeBackColorEveryNRow>0</ChangeBackColorEveryNRow> |
<EndLineCap>Flat</EndLineCap> |
||||||
<Padding>5, 5, 5, 5</Padding> |
<DashStyle>Solid</DashStyle> |
||||||
<Items> |
<BackColor>White</BackColor> |
||||||
<BaseDataItem> |
<DashLineCap>Flat</DashLineCap> |
||||||
<Size>147, 25</Size> |
<ForeColor>ControlText</ForeColor> |
||||||
<Location>10, 10</Location> |
<ToPoint>661, 0</ToPoint> |
||||||
<Font>Microsoft Sans Serif, 10pt</Font> |
<Thickness>2</Thickness> |
||||||
<Text>First</Text> |
</BaseLineItem> |
||||||
<ColumnName>First</ColumnName> |
<BaseTextItem> |
||||||
<DataType>System.String</DataType> |
<BackColor>White</BackColor> |
||||||
<FormatString /> |
<CanShrink>False</CanShrink> |
||||||
<StringTrimming>EllipsisCharacter</StringTrimming> |
<StringTrimming>EllipsisCharacter</StringTrimming> |
||||||
<ContentAlignment>MiddleLeft</ContentAlignment> |
<Text>Firstname</Text> |
||||||
<DrawBorder>False</DrawBorder> |
<Location>46, 63</Location> |
||||||
<ForeColor>ControlText</ForeColor> |
<ContentAlignment>TopLeft</ContentAlignment> |
||||||
<Visible>True</Visible> |
<Visible>True</Visible> |
||||||
<Name>unbound1</Name> |
<DrawBorder>False</DrawBorder> |
||||||
<BackColor>White</BackColor> |
<Font>Microsoft Sans Serif, 12pt, style=Bold</Font> |
||||||
</BaseDataItem> |
<CanGrow>False</CanGrow> |
||||||
<BaseDataItem> |
<FormatString /> |
||||||
<Size>139, 25</Size> |
<Name>reportTextItem1</Name> |
||||||
<Location>187, 10</Location> |
<FrameColor>WindowFrame</FrameColor> |
||||||
<Font>Microsoft Sans Serif, 10pt</Font> |
<Size>109, 20</Size> |
||||||
<Text>last</Text> |
<ForeColor>ControlText</ForeColor> |
||||||
<ColumnName>last</ColumnName> |
</BaseTextItem> |
||||||
<DataType>System.String</DataType> |
</Items> |
||||||
<FormatString /> |
<Location>50, 100</Location> |
||||||
<StringTrimming>EllipsisCharacter</StringTrimming> |
<DrawBorder>False</DrawBorder> |
||||||
<ContentAlignment>MiddleLeft</ContentAlignment> |
</BaseSection> |
||||||
<DrawBorder>False</DrawBorder> |
<BaseSection> |
||||||
<ForeColor>ControlText</ForeColor> |
<Size>750, 51</Size> |
||||||
<Visible>True</Visible> |
<Name>ReportDetail</Name> |
||||||
<Name>unbound2</Name> |
<PageBreakAfter>False</PageBreakAfter> |
||||||
<BackColor>White</BackColor> |
<SectionMargin>50</SectionMargin> |
||||||
</BaseDataItem> |
<SectionOffset>0</SectionOffset> |
||||||
<BaseDataItem> |
<BackColor>Window</BackColor> |
||||||
<Size>216, 25</Size> |
<Items> |
||||||
<Location>382, 10</Location> |
<BaseRowItem> |
||||||
<Font>Microsoft Sans Serif, 10pt</Font> |
<AlternateBackColor /> |
||||||
<Text>Job</Text> |
<FrameColor>WindowFrame</FrameColor> |
||||||
<ColumnName>Job</ColumnName> |
<Name>Row</Name> |
||||||
<DataType>System.String</DataType> |
<Location>3, 10</Location> |
||||||
<FormatString /> |
<Visible>True</Visible> |
||||||
<StringTrimming>EllipsisCharacter</StringTrimming> |
<Size>699, 40</Size> |
||||||
<ContentAlignment>MiddleLeft</ContentAlignment> |
<Padding>5, 5, 5, 5</Padding> |
||||||
<DrawBorder>False</DrawBorder> |
<Items> |
||||||
<ForeColor>ControlText</ForeColor> |
<BaseDataItem> |
||||||
<Visible>True</Visible> |
<DataType>System.String</DataType> |
||||||
<Name>unbound3</Name> |
<Text>First</Text> |
||||||
<BackColor>White</BackColor> |
<Font>Microsoft Sans Serif, 10pt</Font> |
||||||
</BaseDataItem> |
<Location>43, 12</Location> |
||||||
</Items> |
<CanGrow>False</CanGrow> |
||||||
<DrawBorder>False</DrawBorder> |
<ForeColor>ControlText</ForeColor> |
||||||
<ForeColor>ControlText</ForeColor> |
<StringTrimming>EllipsisCharacter</StringTrimming> |
||||||
<Visible>True</Visible> |
<ColumnName>First</ColumnName> |
||||||
<BackColor>White</BackColor> |
<DrawBorder>False</DrawBorder> |
||||||
</BaseRowItem> |
<CanShrink>False</CanShrink> |
||||||
</Items> |
<ContentAlignment>MiddleLeft</ContentAlignment> |
||||||
<PageBreakAfter>False</PageBreakAfter> |
<BackColor>White</BackColor> |
||||||
<Name>ReportDetail</Name> |
<FormatString /> |
||||||
</BaseSection> |
<Name>unbound1</Name> |
||||||
<BaseSection> |
<Visible>True</Visible> |
||||||
<BackColor>Window</BackColor> |
<Size>147, 25</Size> |
||||||
<Size>786, 47</Size> |
<FrameColor>WindowFrame</FrameColor> |
||||||
<CanGrow>False</CanGrow> |
</BaseDataItem> |
||||||
<CanShrink>False</CanShrink> |
<BaseDataItem> |
||||||
<SectionMargin>50</SectionMargin> |
<DataType>System.String</DataType> |
||||||
<Items /> |
<Text>last</Text> |
||||||
<PageBreakAfter>False</PageBreakAfter> |
<Font>Microsoft Sans Serif, 10pt</Font> |
||||||
<Name>ReportPageFooter</Name> |
<Location>231, 12</Location> |
||||||
</BaseSection> |
<CanGrow>False</CanGrow> |
||||||
<BaseSection> |
<ForeColor>ControlText</ForeColor> |
||||||
<BackColor>Window</BackColor> |
<StringTrimming>EllipsisCharacter</StringTrimming> |
||||||
<Size>786, 55</Size> |
<ColumnName>last</ColumnName> |
||||||
<CanGrow>False</CanGrow> |
<DrawBorder>False</DrawBorder> |
||||||
<CanShrink>False</CanShrink> |
<CanShrink>False</CanShrink> |
||||||
<SectionMargin>50</SectionMargin> |
<ContentAlignment>MiddleLeft</ContentAlignment> |
||||||
<Items /> |
<BackColor>White</BackColor> |
||||||
<PageBreakAfter>False</PageBreakAfter> |
<FormatString /> |
||||||
<Name>ReportFooter</Name> |
<Name>unbound2</Name> |
||||||
</BaseSection> |
<Visible>True</Visible> |
||||||
</SectionCollection> |
<Size>139, 25</Size> |
||||||
|
<FrameColor>WindowFrame</FrameColor> |
||||||
|
</BaseDataItem> |
||||||
|
<BaseDataItem> |
||||||
|
<DataType>System.String</DataType> |
||||||
|
<Text>Job</Text> |
||||||
|
<Font>Microsoft Sans Serif, 10pt</Font> |
||||||
|
<Location>426, 10</Location> |
||||||
|
<CanGrow>False</CanGrow> |
||||||
|
<ForeColor>ControlText</ForeColor> |
||||||
|
<StringTrimming>EllipsisCharacter</StringTrimming> |
||||||
|
<ColumnName>Job</ColumnName> |
||||||
|
<DrawBorder>False</DrawBorder> |
||||||
|
<CanShrink>False</CanShrink> |
||||||
|
<ContentAlignment>MiddleLeft</ContentAlignment> |
||||||
|
<BackColor>White</BackColor> |
||||||
|
<FormatString /> |
||||||
|
<Name>unbound3</Name> |
||||||
|
<Visible>True</Visible> |
||||||
|
<Size>216, 25</Size> |
||||||
|
<FrameColor>WindowFrame</FrameColor> |
||||||
|
</BaseDataItem> |
||||||
|
</Items> |
||||||
|
<ChangeBackColorEveryNRow>0</ChangeBackColorEveryNRow> |
||||||
|
<BackColor>White</BackColor> |
||||||
|
<DrawBorder>False</DrawBorder> |
||||||
|
<ForeColor>ControlText</ForeColor> |
||||||
|
</BaseRowItem> |
||||||
|
</Items> |
||||||
|
<Location>50, 223</Location> |
||||||
|
<DrawBorder>False</DrawBorder> |
||||||
|
</BaseSection> |
||||||
|
<BaseSection> |
||||||
|
<Size>750, 49</Size> |
||||||
|
<Name>ReportPageFooter</Name> |
||||||
|
<PageBreakAfter>False</PageBreakAfter> |
||||||
|
<SectionMargin>50</SectionMargin> |
||||||
|
<SectionOffset>0</SectionOffset> |
||||||
|
<BackColor>Window</BackColor> |
||||||
|
<Items> |
||||||
|
<BaseTextItem> |
||||||
|
<BackColor>White</BackColor> |
||||||
|
<CanShrink>False</CanShrink> |
||||||
|
<StringTrimming>None</StringTrimming> |
||||||
|
<Text>=Globals!ReportFolder</Text> |
||||||
|
<Location>45, 24</Location> |
||||||
|
<ContentAlignment>TopLeft</ContentAlignment> |
||||||
|
<Visible>True</Visible> |
||||||
|
<DrawBorder>False</DrawBorder> |
||||||
|
<Font>Microsoft Sans Serif, 8.25pt</Font> |
||||||
|
<CanGrow>False</CanGrow> |
||||||
|
<FormatString /> |
||||||
|
<Name>=Globals!ReportFolder</Name> |
||||||
|
<FrameColor>WindowFrame</FrameColor> |
||||||
|
<Size>483, 20</Size> |
||||||
|
<ForeColor>ControlText</ForeColor> |
||||||
|
</BaseTextItem> |
||||||
|
<BaseLineItem> |
||||||
|
<StartLineCap>Flat</StartLineCap> |
||||||
|
<FromPoint>0, 0</FromPoint> |
||||||
|
<Location>45, 3</Location> |
||||||
|
<Name>object_177a5444_b8e0_4202_87d2_05cdc7cd1194</Name> |
||||||
|
<Size>663, 15</Size> |
||||||
|
<EndLineCap>Flat</EndLineCap> |
||||||
|
<DashStyle>Solid</DashStyle> |
||||||
|
<BackColor>White</BackColor> |
||||||
|
<DashLineCap>Flat</DashLineCap> |
||||||
|
<ForeColor>ControlText</ForeColor> |
||||||
|
<ToPoint>656, 0</ToPoint> |
||||||
|
<Thickness>2</Thickness> |
||||||
|
</BaseLineItem> |
||||||
|
<BaseTextItem> |
||||||
|
<BackColor>White</BackColor> |
||||||
|
<CanShrink>False</CanShrink> |
||||||
|
<StringTrimming>None</StringTrimming> |
||||||
|
<Text>='Page ' + Globals!PageNumber</Text> |
||||||
|
<Location>602, 24</Location> |
||||||
|
<ContentAlignment>TopLeft</ContentAlignment> |
||||||
|
<Visible>True</Visible> |
||||||
|
<DrawBorder>False</DrawBorder> |
||||||
|
<Font>Microsoft Sans Serif, 8.25pt</Font> |
||||||
|
<CanGrow>False</CanGrow> |
||||||
|
<FormatString /> |
||||||
|
<Name>='Page ' + Globals!PageNumber</Name> |
||||||
|
<FrameColor>WindowFrame</FrameColor> |
||||||
|
<Size>100, 20</Size> |
||||||
|
<ForeColor>ControlText</ForeColor> |
||||||
|
</BaseTextItem> |
||||||
|
</Items> |
||||||
|
<Location>50, 289</Location> |
||||||
|
<DrawBorder>False</DrawBorder> |
||||||
|
</BaseSection> |
||||||
|
<BaseSection> |
||||||
|
<Size>750, 55</Size> |
||||||
|
<Name>ReportFooter</Name> |
||||||
|
<PageBreakAfter>False</PageBreakAfter> |
||||||
|
<SectionMargin>50</SectionMargin> |
||||||
|
<SectionOffset>0</SectionOffset> |
||||||
|
<BackColor>Window</BackColor> |
||||||
|
<Items /> |
||||||
|
<Location>50, 353</Location> |
||||||
|
<DrawBorder>False</DrawBorder> |
||||||
|
</BaseSection> |
||||||
|
</SectionCollection> |
||||||
</ReportModel> |
</ReportModel> |
@ -1,23 +0,0 @@ |
|||||||
// <file>
|
|
||||||
// <copyright see="prj:///doc/copyright.txt"/>
|
|
||||||
// <license see="prj:///doc/license.txt"/>
|
|
||||||
// <owner name="Peter Forstmeier" email="peter.forstmeier@t-online.de"/>
|
|
||||||
// <version>$Revision$</version>
|
|
||||||
// </file>
|
|
||||||
|
|
||||||
using System; |
|
||||||
using ICSharpCode.Reports.Core; |
|
||||||
|
|
||||||
namespace ReportSamples |
|
||||||
{ |
|
||||||
/// <summary>
|
|
||||||
/// Description of EmployeesHireDate.
|
|
||||||
/// </summary>
|
|
||||||
public class StandartPullModel:BaseSample{ |
|
||||||
|
|
||||||
public StandartPullModel():base(){ |
|
||||||
base.Run(); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
@ -1,87 +0,0 @@ |
|||||||
/* |
|
||||||
* Erstellt mit SharpDevelop. |
|
||||||
* Benutzer: Forstmeier |
|
||||||
* Datum: 04.02.2007 |
|
||||||
* Zeit: 15:26 |
|
||||||
* |
|
||||||
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern. |
|
||||||
*/ |
|
||||||
|
|
||||||
using System; |
|
||||||
using System.Data; |
|
||||||
using System.Data.OleDb; |
|
||||||
using System.Windows.Forms; |
|
||||||
|
|
||||||
using ICSharpCode.Reports.Core; |
|
||||||
namespace ReportSamples |
|
||||||
{ |
|
||||||
/// <summary>
|
|
||||||
/// Description of NorthwindSalesbyYear.
|
|
||||||
/// </summary>
|
|
||||||
public class NorthwindSalesbyYear:BaseSample |
|
||||||
{ |
|
||||||
// string conString = @"Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Northwind";
|
|
||||||
static string start = "01.01.1997"; |
|
||||||
static string end = "31.03.1997"; |
|
||||||
ReportParameters parameters; |
|
||||||
|
|
||||||
public NorthwindSalesbyYear() |
|
||||||
{ |
|
||||||
base.Run(); |
|
||||||
|
|
||||||
parameters = ReportEngine.LoadParameters(base.ReportName); |
|
||||||
// this.parameters.ConnectionObject = ConnectionObject.CreateInstance(conString);
|
|
||||||
// base.CreateReportModel();
|
|
||||||
parameters.SqlParameters.Add(new SqlParameter("@Beginning_Date",DbType.DateTime,start)); |
|
||||||
parameters.SqlParameters.Add(new SqlParameter("@Ending_Date",DbType.DateTime,end)); |
|
||||||
|
|
||||||
|
|
||||||
parameters.SortColumnCollection.Add(new SortColumn("ShippedDate", |
|
||||||
System.ComponentModel.ListSortDirection.Ascending)); |
|
||||||
|
|
||||||
// MessageBox.Show("Not implemented","NorthwindSalesbyYear");
|
|
||||||
// base.Engine.PreviewStandardReport(base.ReportName,parameters);
|
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public static void OnRenderSalesByYear (object sender, SectionRenderEventArgs e){ |
|
||||||
|
|
||||||
switch (e.CurrentSection) { |
|
||||||
case GlobalEnums.ReportSection.ReportHeader: |
|
||||||
break; |
|
||||||
|
|
||||||
case GlobalEnums.ReportSection.ReportPageHeader: |
|
||||||
// BaseDataItem ss = (BaseDataItem)e.Section.Items.Find("ParamFrom");
|
|
||||||
// string startval = String.Format("[{0}]",start);
|
|
||||||
// ss.DBValue = startval;
|
|
||||||
// BaseDataItem ee = (BaseDataItem)e.Section.Items.Find("ParamTo");
|
|
||||||
// string endval = String.Format("[{0}]",end);
|
|
||||||
// ee.DBValue = endval;
|
|
||||||
break; |
|
||||||
|
|
||||||
case GlobalEnums.ReportSection.ReportDetail: |
|
||||||
// BaseRowItem rowItem = e.Section.Items[0] as BaseRowItem;
|
|
||||||
// BaseDataItem ss1 = (BaseDataItem)rowItem.Items.Find("reportDbTextItem1");
|
|
||||||
// System.Console.WriteLine("{0}",ss1.FormatString);
|
|
||||||
break; |
|
||||||
|
|
||||||
case GlobalEnums.ReportSection.ReportPageFooter: |
|
||||||
break; |
|
||||||
|
|
||||||
case GlobalEnums.ReportSection.ReportFooter: |
|
||||||
// System.Console.WriteLine("\tReportFooter");
|
|
||||||
break; |
|
||||||
|
|
||||||
default: |
|
||||||
break; |
|
||||||
} |
|
||||||
} |
|
||||||
public ReportParameters Parameters { |
|
||||||
get { return parameters; } |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
} |
|
||||||
} |
|
||||||
|
|
@ -1,47 +0,0 @@ |
|||||||
// <file>
|
|
||||||
// <copyright see="prj:///doc/copyright.txt"/>
|
|
||||||
// <license see="prj:///doc/license.txt"/>
|
|
||||||
// <owner name="Peter Forstmeier" email="peter.forstmeier@t-online.de"/>
|
|
||||||
// <version>$Revision$</version>
|
|
||||||
// </file>
|
|
||||||
|
|
||||||
using System; |
|
||||||
using System.Data; |
|
||||||
using System.Data.OleDb; |
|
||||||
using System.Windows.Forms; |
|
||||||
|
|
||||||
using ICSharpCode.Reports.Core; |
|
||||||
|
|
||||||
namespace ReportSamples |
|
||||||
{ |
|
||||||
/// <summary>
|
|
||||||
/// Description of MissingConnectionString.
|
|
||||||
/// </summary>
|
|
||||||
public class ProviderIndependent:BaseSample |
|
||||||
{ |
|
||||||
/* |
|
||||||
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\SharpReport_TestReports\Nordwind.mdb;Persist Security Info=False |
|
||||||
D:\SharpReport_TestReports\TestReports |
|
||||||
|
|
||||||
*/ |
|
||||||
string conOleDbString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\SharpReport_TestReports\TestReports\Nordwind.mdb;Persist Security Info=False"; |
|
||||||
// string conSqlConString = "Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Northwind";
|
|
||||||
ReportParameters parameters; |
|
||||||
|
|
||||||
public ProviderIndependent():base(){ |
|
||||||
base.Run(); |
|
||||||
parameters = ReportEngine.LoadParameters(base.ReportName); |
|
||||||
|
|
||||||
ConnectionObject con = ConnectionObject.CreateInstance(this.conOleDbString, |
|
||||||
System.Data.Common.DbProviderFactories.GetFactory("System.Data.OleDb") ); |
|
||||||
|
|
||||||
parameters.ConnectionObject = con; |
|
||||||
} |
|
||||||
|
|
||||||
public ReportParameters Parameters { |
|
||||||
get { return parameters; } |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
||||||
} |
|
||||||
|
|
Loading…
Reference in new issue