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 @@
@@ -1,176 +1,284 @@
|
||||
<ReportModel> |
||||
<ReportSettings> |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<ReportModel> |
||||
<ReportSettings> |
||||
<ReportName>Report1</ReportName> |
||||
<ReportType>DataReport</ReportType> |
||||
<UseStandardPrinter>True</UseStandardPrinter> |
||||
<DefaultMargins>50, 50, 50, 50</DefaultMargins> |
||||
<GraphicsUnit>Millimeter</GraphicsUnit> |
||||
<GridSize>8, 8</GridSize> |
||||
<Padding>5, 5, 5, 5</Padding> |
||||
<AvailableFieldsCollection /> |
||||
<SortColumnCollection /> |
||||
<GroupColumnsCollection /> |
||||
<ConnectionString /> |
||||
<!--System.ArgumentException: Der Wert "0" ist für die Enumeration "CommandType" ungültig. |
||||
bei System.ComponentModel.EnumConverter.ConvertTo(ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType) |
||||
bei System.ComponentModel.TypeConverter.ConvertToString(ITypeDescriptorContext context, CultureInfo culture, Object value) |
||||
bei System.ComponentModel.TypeConverter.ConvertToInvariantString(Object value) |
||||
bei ICSharpCode.Reports.Core.MycroWriter.Save(Object obj, XmlWriter writer) in d:\SharpReport\src\ICSharpCode.Reports.Core\Project\Xml\MycroWriter.cs:Zeile 51.--> |
||||
<DataModel>PushData</DataModel> |
||||
<NoDataMessage>No Data for this Report</NoDataMessage> |
||||
<DefaultFont>Microsoft Sans Serif, 10pt</DefaultFont> |
||||
<ReportSettings> |
||||
<GridSize>8, 8</GridSize> |
||||
<PageSize>827, 1169</PageSize> |
||||
<CommandText /> |
||||
<Landscape>False</Landscape> |
||||
<GroupColumnsCollection /> |
||||
<RightMargin>50</RightMargin> |
||||
<NoDataMessage>No Data for this Report</NoDataMessage> |
||||
<DefaultFont>Microsoft Sans Serif, 10pt</DefaultFont> |
||||
<ReportType>DataReport</ReportType> |
||||
<UseStandardPrinter>True</UseStandardPrinter> |
||||
<CommandType>Text</CommandType> |
||||
<GraphicsUnit>Millimeter</GraphicsUnit> |
||||
<TopMargin>50</TopMargin> |
||||
<ConnectionString /> |
||||
<Padding>5, 5, 5, 5</Padding> |
||||
<LeftMargin>50</LeftMargin> |
||||
<SortColumnCollection /> |
||||
<DataModel>PushData</DataModel> |
||||
<BottomMargin>50</BottomMargin> |
||||
<AvailableFieldsCollection /> |
||||
<ReportName>Report1</ReportName> |
||||
<ParameterCollection /> |
||||
</ReportSettings> |
||||
</ReportSettings> |
||||
</ReportSettings> |
||||
<SectionCollection> |
||||
<BaseSection> |
||||
<BackColor>Window</BackColor> |
||||
<Size>786, 35</Size> |
||||
<CanGrow>False</CanGrow> |
||||
<CanShrink>False</CanShrink> |
||||
<SectionMargin>50</SectionMargin> |
||||
<Items /> |
||||
<PageBreakAfter>False</PageBreakAfter> |
||||
<Name>ReportHeader</Name> |
||||
</BaseSection> |
||||
<BaseSection> |
||||
<BackColor>Window</BackColor> |
||||
<Size>786, 108</Size> |
||||
<CanGrow>False</CanGrow> |
||||
<CanShrink>False</CanShrink> |
||||
<SectionMargin>50</SectionMargin> |
||||
<Items> |
||||
<BaseImageItem> |
||||
<Size>661, 42</Size> |
||||
<Location>47, 6</Location> |
||||
<Name>ReportImageControl</Name> |
||||
<ImageFileName>D:\SharpReport\samples\Reports\Logos\Bannerbeige2.gif</ImageFileName> |
||||
<RelativeFileName>..\Logos\Bannerbeige2.gif</RelativeFileName> |
||||
<ScaleImageToSize>False</ScaleImageToSize> |
||||
<Visible>True</Visible> |
||||
</BaseImageItem> |
||||
<BaseLineItem> |
||||
<Size>661, 19</Size> |
||||
<Location>47, 87</Location> |
||||
<FromPoint>47, 87</FromPoint> |
||||
<ToPoint>708, 87</ToPoint> |
||||
<Thickness>1</Thickness> |
||||
<DashStyle>Solid</DashStyle> |
||||
<ForeColor>ControlText</ForeColor> |
||||
<Visible>True</Visible> |
||||
<BackColor>White</BackColor> |
||||
</BaseLineItem> |
||||
<BaseTextItem> |
||||
<Name>reportTextItem1</Name> |
||||
<Location>46, 63</Location> |
||||
<Size>109, 20</Size> |
||||
<Font>Microsoft Sans Serif, 10pt</Font> |
||||
<Text>Firstname</Text> |
||||
<FormatString /> |
||||
<StringTrimming>EllipsisCharacter</StringTrimming> |
||||
<ContentAlignment>MiddleLeft</ContentAlignment> |
||||
<DrawBorder>False</DrawBorder> |
||||
<ForeColor>ControlText</ForeColor> |
||||
<Visible>True</Visible> |
||||
<BackColor>White</BackColor> |
||||
</BaseTextItem> |
||||
</Items> |
||||
<PageBreakAfter>False</PageBreakAfter> |
||||
<Name>ReportPageHeader</Name> |
||||
</BaseSection> |
||||
<BaseSection> |
||||
<BackColor>Window</BackColor> |
||||
<Size>786, 51</Size> |
||||
<CanGrow>False</CanGrow> |
||||
<CanShrink>False</CanShrink> |
||||
<SectionMargin>50</SectionMargin> |
||||
<Items> |
||||
<BaseRowItem> |
||||
<Name>Row</Name> |
||||
<Size>655, 40</Size> |
||||
<Location>47, 10</Location> |
||||
<Font>Microsoft Sans Serif, 10pt</Font> |
||||
<AlternateBackColor /> |
||||
<ChangeBackColorEveryNRow>0</ChangeBackColorEveryNRow> |
||||
<Padding>5, 5, 5, 5</Padding> |
||||
<Items> |
||||
<BaseDataItem> |
||||
<Size>147, 25</Size> |
||||
<Location>10, 10</Location> |
||||
<Font>Microsoft Sans Serif, 10pt</Font> |
||||
<Text>First</Text> |
||||
<ColumnName>First</ColumnName> |
||||
<DataType>System.String</DataType> |
||||
<FormatString /> |
||||
<StringTrimming>EllipsisCharacter</StringTrimming> |
||||
<ContentAlignment>MiddleLeft</ContentAlignment> |
||||
<DrawBorder>False</DrawBorder> |
||||
<ForeColor>ControlText</ForeColor> |
||||
<Visible>True</Visible> |
||||
<Name>unbound1</Name> |
||||
<BackColor>White</BackColor> |
||||
</BaseDataItem> |
||||
<BaseDataItem> |
||||
<Size>139, 25</Size> |
||||
<Location>187, 10</Location> |
||||
<Font>Microsoft Sans Serif, 10pt</Font> |
||||
<Text>last</Text> |
||||
<ColumnName>last</ColumnName> |
||||
<DataType>System.String</DataType> |
||||
<FormatString /> |
||||
<StringTrimming>EllipsisCharacter</StringTrimming> |
||||
<ContentAlignment>MiddleLeft</ContentAlignment> |
||||
<DrawBorder>False</DrawBorder> |
||||
<ForeColor>ControlText</ForeColor> |
||||
<Visible>True</Visible> |
||||
<Name>unbound2</Name> |
||||
<BackColor>White</BackColor> |
||||
</BaseDataItem> |
||||
<BaseDataItem> |
||||
<Size>216, 25</Size> |
||||
<Location>382, 10</Location> |
||||
<Font>Microsoft Sans Serif, 10pt</Font> |
||||
<Text>Job</Text> |
||||
<ColumnName>Job</ColumnName> |
||||
<DataType>System.String</DataType> |
||||
<FormatString /> |
||||
<StringTrimming>EllipsisCharacter</StringTrimming> |
||||
<ContentAlignment>MiddleLeft</ContentAlignment> |
||||
<DrawBorder>False</DrawBorder> |
||||
<ForeColor>ControlText</ForeColor> |
||||
<Visible>True</Visible> |
||||
<Name>unbound3</Name> |
||||
<BackColor>White</BackColor> |
||||
</BaseDataItem> |
||||
</Items> |
||||
<DrawBorder>False</DrawBorder> |
||||
<ForeColor>ControlText</ForeColor> |
||||
<Visible>True</Visible> |
||||
<BackColor>White</BackColor> |
||||
</BaseRowItem> |
||||
</Items> |
||||
<PageBreakAfter>False</PageBreakAfter> |
||||
<Name>ReportDetail</Name> |
||||
</BaseSection> |
||||
<BaseSection> |
||||
<BackColor>Window</BackColor> |
||||
<Size>786, 47</Size> |
||||
<CanGrow>False</CanGrow> |
||||
<CanShrink>False</CanShrink> |
||||
<SectionMargin>50</SectionMargin> |
||||
<Items /> |
||||
<PageBreakAfter>False</PageBreakAfter> |
||||
<Name>ReportPageFooter</Name> |
||||
</BaseSection> |
||||
<BaseSection> |
||||
<BackColor>Window</BackColor> |
||||
<Size>786, 55</Size> |
||||
<CanGrow>False</CanGrow> |
||||
<CanShrink>False</CanShrink> |
||||
<SectionMargin>50</SectionMargin> |
||||
<Items /> |
||||
<PageBreakAfter>False</PageBreakAfter> |
||||
<Name>ReportFooter</Name> |
||||
</BaseSection> |
||||
</SectionCollection> |
||||
<SectionCollection> |
||||
<BaseSection> |
||||
<Size>786, 35</Size> |
||||
<Name>ReportHeader</Name> |
||||
<PageBreakAfter>False</PageBreakAfter> |
||||
<SectionMargin>50</SectionMargin> |
||||
<SectionOffset>0</SectionOffset> |
||||
<BackColor>Window</BackColor> |
||||
<Items /> |
||||
<Location>50, 50</Location> |
||||
<DrawBorder>False</DrawBorder> |
||||
</BaseSection> |
||||
<BaseSection> |
||||
<Size>786, 108</Size> |
||||
<Name>ReportPageHeader</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>Job</Text> |
||||
<Location>429, 63</Location> |
||||
<ContentAlignment>TopLeft</ContentAlignment> |
||||
<Visible>True</Visible> |
||||
<DrawBorder>False</DrawBorder> |
||||
<Font>Microsoft Sans Serif, 12pt, style=Bold</Font> |
||||
<CanGrow>False</CanGrow> |
||||
<FormatString /> |
||||
<Name>Job</Name> |
||||
<FrameColor>WindowFrame</FrameColor> |
||||
<Size>100, 20</Size> |
||||
<ForeColor>ControlText</ForeColor> |
||||
</BaseTextItem> |
||||
<BaseTextItem> |
||||
<BackColor>White</BackColor> |
||||
<CanShrink>False</CanShrink> |
||||
<StringTrimming>None</StringTrimming> |
||||
<Text>Lastname</Text> |
||||
<Location>234, 63</Location> |
||||
<ContentAlignment>TopLeft</ContentAlignment> |
||||
<Visible>True</Visible> |
||||
<DrawBorder>False</DrawBorder> |
||||
<Font>Microsoft Sans Serif, 12pt, style=Bold</Font> |
||||
<CanGrow>False</CanGrow> |
||||
<FormatString /> |
||||
<Name>Lastname</Name> |
||||
<FrameColor>WindowFrame</FrameColor> |
||||
<Size>100, 20</Size> |
||||
<ForeColor>ControlText</ForeColor> |
||||
</BaseTextItem> |
||||
<BaseImageItem> |
||||
<ImageSource>File</ImageSource> |
||||
<Location>47, 6</Location> |
||||
<Name>ReportImageControl</Name> |
||||
<Size>661, 42</Size> |
||||
<ScaleImageToSize>False</ScaleImageToSize> |
||||
<BackColor>Window</BackColor> |
||||
<RelativeFileName>D:\SharpReport\samples\Reports\Logos\Bannerbeige2.gif</RelativeFileName> |
||||
<ImageFileName>D:\Reporting3.0_branches\SharpDevelop\samples\SharpDevelopReports\SampleReports\Logos\Bannerbeige2.gif</ImageFileName> |
||||
</BaseImageItem> |
||||
<BaseLineItem> |
||||
<StartLineCap>Flat</StartLineCap> |
||||
<FromPoint>0, 0</FromPoint> |
||||
<Location>47, 87</Location> |
||||
<Name /> |
||||
<Size>661, 19</Size> |
||||
<EndLineCap>Flat</EndLineCap> |
||||
<DashStyle>Solid</DashStyle> |
||||
<BackColor>White</BackColor> |
||||
<DashLineCap>Flat</DashLineCap> |
||||
<ForeColor>ControlText</ForeColor> |
||||
<ToPoint>661, 0</ToPoint> |
||||
<Thickness>2</Thickness> |
||||
</BaseLineItem> |
||||
<BaseTextItem> |
||||
<BackColor>White</BackColor> |
||||
<CanShrink>False</CanShrink> |
||||
<StringTrimming>EllipsisCharacter</StringTrimming> |
||||
<Text>Firstname</Text> |
||||
<Location>46, 63</Location> |
||||
<ContentAlignment>TopLeft</ContentAlignment> |
||||
<Visible>True</Visible> |
||||
<DrawBorder>False</DrawBorder> |
||||
<Font>Microsoft Sans Serif, 12pt, style=Bold</Font> |
||||
<CanGrow>False</CanGrow> |
||||
<FormatString /> |
||||
<Name>reportTextItem1</Name> |
||||
<FrameColor>WindowFrame</FrameColor> |
||||
<Size>109, 20</Size> |
||||
<ForeColor>ControlText</ForeColor> |
||||
</BaseTextItem> |
||||
</Items> |
||||
<Location>50, 100</Location> |
||||
<DrawBorder>False</DrawBorder> |
||||
</BaseSection> |
||||
<BaseSection> |
||||
<Size>750, 51</Size> |
||||
<Name>ReportDetail</Name> |
||||
<PageBreakAfter>False</PageBreakAfter> |
||||
<SectionMargin>50</SectionMargin> |
||||
<SectionOffset>0</SectionOffset> |
||||
<BackColor>Window</BackColor> |
||||
<Items> |
||||
<BaseRowItem> |
||||
<AlternateBackColor /> |
||||
<FrameColor>WindowFrame</FrameColor> |
||||
<Name>Row</Name> |
||||
<Location>3, 10</Location> |
||||
<Visible>True</Visible> |
||||
<Size>699, 40</Size> |
||||
<Padding>5, 5, 5, 5</Padding> |
||||
<Items> |
||||
<BaseDataItem> |
||||
<DataType>System.String</DataType> |
||||
<Text>First</Text> |
||||
<Font>Microsoft Sans Serif, 10pt</Font> |
||||
<Location>43, 12</Location> |
||||
<CanGrow>False</CanGrow> |
||||
<ForeColor>ControlText</ForeColor> |
||||
<StringTrimming>EllipsisCharacter</StringTrimming> |
||||
<ColumnName>First</ColumnName> |
||||
<DrawBorder>False</DrawBorder> |
||||
<CanShrink>False</CanShrink> |
||||
<ContentAlignment>MiddleLeft</ContentAlignment> |
||||
<BackColor>White</BackColor> |
||||
<FormatString /> |
||||
<Name>unbound1</Name> |
||||
<Visible>True</Visible> |
||||
<Size>147, 25</Size> |
||||
<FrameColor>WindowFrame</FrameColor> |
||||
</BaseDataItem> |
||||
<BaseDataItem> |
||||
<DataType>System.String</DataType> |
||||
<Text>last</Text> |
||||
<Font>Microsoft Sans Serif, 10pt</Font> |
||||
<Location>231, 12</Location> |
||||
<CanGrow>False</CanGrow> |
||||
<ForeColor>ControlText</ForeColor> |
||||
<StringTrimming>EllipsisCharacter</StringTrimming> |
||||
<ColumnName>last</ColumnName> |
||||
<DrawBorder>False</DrawBorder> |
||||
<CanShrink>False</CanShrink> |
||||
<ContentAlignment>MiddleLeft</ContentAlignment> |
||||
<BackColor>White</BackColor> |
||||
<FormatString /> |
||||
<Name>unbound2</Name> |
||||
<Visible>True</Visible> |
||||
<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> |
@ -1,23 +0,0 @@
@@ -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 @@
@@ -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 @@
@@ -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