Browse Source

Cleanup, add SampleReport with Parameter

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5374 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Peter Forstmeier 16 years ago
parent
commit
3587b1525c
  1. 247
      samples/SharpDevelopReports/SampleReports/FormSheet/JCA.srd
  2. 176
      samples/SharpDevelopReports/SampleReports/Ilist/ContributorsList.srd
  3. 2
      samples/SharpDevelopReports/src/ReportSamples.sln
  4. 7
      samples/SharpDevelopReports/src/ReportSamples/ReportSamples.csproj
  5. 32
      samples/SharpDevelopReports/src/SharpReportSamples/MainForm.cs
  6. 15
      src/AddIns/Misc/SharpReport/ICSharpCode.Reports.Core/Project/ReportEngine.cs
  7. 8
      src/AddIns/Misc/SharpReport/SharpDevelop.Reports.Test.sln

247
samples/SharpDevelopReports/SampleReports/FormSheet/JCA.srd

@ -1,26 +1,217 @@ @@ -1,26 +1,217 @@
<?xml version="1.0" encoding="utf-8"?><ReportModel><ReportSettings><ReportSettings><DataModel>FormSheet</DataModel><UseStandardPrinter>True</UseStandardPrinter><CommandType>Text</CommandType><NoDataMessage>No Data for this Report</NoDataMessage><ReportType>FormSheet</ReportType><Padding>5, 5, 5, 5</Padding><GraphicsUnit>Millimeter</GraphicsUnit><GridSize>8, 8</GridSize><DefaultFont>Microsoft Sans Serif, 10pt</DefaultFont><ReportName>Report1</ReportName><GroupColumnsCollection /><ConnectionString /><AvailableFieldsCollection /><SortColumnCollection /><DefaultMargins>50, 50, 50, 50</DefaultMargins><LandSacpe>False</LandSacpe></ReportSettings></ReportSettings><SectionCollection><BaseSection><CanShrink>False</CanShrink><Location>50, 50</Location><SectionMargin>50</SectionMargin><Name>ReportHeader</Name><Items><BaseImageItem><ImageSource>File</ImageSource><Location>103, 24</Location><Name>ReportImageControl</Name><Size>582, 50</Size><ScaleImageToSize>False</ScaleImageToSize><Name>ReportImageControl</Name><BackColor>Window</BackColor><RelativeFileName>D:\SharpReportTester\TestReports\GoodFiles\Logos\Bannerbeige2.gif</RelativeFileName><ImageFileName>D:\SharpReportTester\TestReports\GoodFiles\Logos\Bannerbeige2.gif</ImageFileName></BaseImageItem></Items><DrawBorder>False</DrawBorder><PageBreakAfter>False</PageBreakAfter><SectionOffset>0</SectionOffset><BackColor>Window</BackColor><CanGrow>False</CanGrow><Size>718, 85</Size></BaseSection><BaseSection><CanShrink>False</CanShrink><Location>50, 150</Location><SectionMargin>50</SectionMargin><Name>ReportPageHeader</Name><Items><BaseTextItem><FrameColor>WindowFrame</FrameColor><Name>reportTextItem1</Name><Location>90, 10</Location><Name>reportTextItem1</Name><ContentAlignment>TopCenter</ContentAlignment><Visible>True</Visible><FormatString /><Size>599, 57</Size><Text>#develop Open Source Project
Joint Copyright Assignment by Contributor To AlphaSierraPapa</Text><BackColor>White</BackColor><Font>Microsoft Sans Serif, 14pt, style=Bold</Font><DrawBorder>False</DrawBorder><ForeColor>ControlText</ForeColor></BaseTextItem><BaseLineItem><StartLineCap>Flat</StartLineCap><FromPoint>10, 5</FromPoint><Location>92, 82</Location><Name>reportLineControl1</Name><Size>597, 9</Size><Name>reportLineControl1</Name><EndLineCap>Flat</EndLineCap><DashStyle>Solid</DashStyle><BackColor>White</BackColor><DashLineCap>Flat</DashLineCap><ForeColor>ControlText</ForeColor><ToPoint>40, 5</ToPoint><Thickness>1</Thickness></BaseLineItem></Items><DrawBorder>False</DrawBorder><PageBreakAfter>False</PageBreakAfter><SectionOffset>0</SectionOffset><BackColor>Window</BackColor><CanGrow>False</CanGrow><Size>718, 95</Size></BaseSection><BaseSection><CanShrink>False</CanShrink><Location>50, 260</Location><SectionMargin>50</SectionMargin><Name>ReportDetail</Name><Items><BaseTextItem><FrameColor>WindowFrame</FrameColor><Name>reportTextItem1</Name><Location>50, 8</Location><ContentAlignment>TopLeft</ContentAlignment><Visible>True</Visible><FormatString /><Size>622, 135</Size><Name>reportTextItem1</Name><Text>Contact Information:
<?xml version="1.0" encoding="utf-8"?>
<ReportModel>
<ReportSettings>
<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>FormSheet</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>FormSheet</DataModel>
<BottomMargin>50</BottomMargin>
<AvailableFieldsCollection />
<ReportName>Report1</ReportName>
<ParameterCollection />
</ReportSettings>
</ReportSettings>
<SectionCollection>
<BaseSection>
<Size>718, 85</Size>
<Name>ReportHeader</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>50</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>Window</BackColor>
<Items>
<BaseImageItem>
<ImageSource>File</ImageSource>
<Location>103, 24</Location>
<Name>ReportImageControl</Name>
<Size>582, 50</Size>
<ScaleImageToSize>False</ScaleImageToSize>
<BackColor>Window</BackColor>
<RelativeFileName>D:\SharpReportTester\TestReports\GoodFiles\Logos\Bannerbeige2.gif</RelativeFileName>
<ImageFileName>D:\Reporting3.0_branches\SharpDevelop\samples\SharpDevelopReports\SampleReports\Logos\Bannerbeige2.gif</ImageFileName>
</BaseImageItem>
</Items>
<Location>50, 50</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>718, 95</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>#develop Open Source Project
Joint Copyright Assignment by Contributor To AlphaSierraPapa</Text>
<Location>90, 10</Location>
<ContentAlignment>TopCenter</ContentAlignment>
<Visible>False</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 14pt, style=Bold</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>599, 57</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseLineItem>
<StartLineCap>Flat</StartLineCap>
<FromPoint>10, 5</FromPoint>
<Location>92, 82</Location>
<Name>reportLineControl1</Name>
<Size>597, 9</Size>
<EndLineCap>Flat</EndLineCap>
<DashStyle>Solid</DashStyle>
<BackColor>White</BackColor>
<DashLineCap>Flat</DashLineCap>
<ForeColor>ControlText</ForeColor>
<ToPoint>40, 5</ToPoint>
<Thickness>1</Thickness>
</BaseLineItem>
</Items>
<Location>50, 150</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>718, 723</Size>
<Name>ReportDetail</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>Contact Information:
Full Name:_________________________________ (the "Contributor")
Mailing Address_________________________ e-mail :_________________________
______________________________________ Telephone :_________________________
Country:_______________________________ Facsimile :_________________________</Text><BackColor>White</BackColor><Font>Microsoft Sans Serif, 10pt</Font><DrawBorder>True</DrawBorder><ForeColor>ControlText</ForeColor></BaseTextItem><BaseTextItem><FrameColor>WindowFrame</FrameColor><Name>reportTextItem2</Name><Location>50, 171</Location><ContentAlignment>TopLeft</ContentAlignment><Visible>True</Visible><FormatString /><Size>675, 67</Size><Name>reportTextItem2</Name><Text>1. Contributor owns, and has sufficient rights to contribute, all source code and related material intended
Country:_______________________________ Facsimile :_________________________</Text>
<Location>50, 8</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>False</Visible>
<DrawBorder>True</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>622, 135</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>1. Contributor owns, and has sufficient rights to contribute, all source code and related material intended
to be compiled or integrated with the source code for the #develop open source product (the
"Contribution") which Contributor has ever delivered, and AlphaSierraPapa has accepted, for
incorporation into the technology made available under the #develop open source project.</Text><BackColor>White</BackColor><Font>Microsoft Sans Serif, 10pt</Font><DrawBorder>True</DrawBorder><ForeColor>ControlText</ForeColor></BaseTextItem><BaseTextItem><FrameColor>WindowFrame</FrameColor><Name>reportTextItem3</Name><Location>50, 257</Location><ContentAlignment>TopLeft</ContentAlignment><Visible>True</Visible><FormatString /><Size>695, 113</Size><Name>reportTextItem3</Name><Text>2. Contributor hereby assigns to AlphaSierraPapa joint ownership in all worldwide common law and
incorporation into the technology made available under the #develop open source project.</Text>
<Location>50, 171</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>False</Visible>
<DrawBorder>True</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem2</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>675, 67</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>2. Contributor hereby assigns to AlphaSierraPapa joint ownership in all worldwide common law and
statutory rights associated with the copyrights, copyright application, copyright registration and moral
rights in the Contribution to the extent allowable under applicable local laws and copyright
conventions. Contributor agrees that this assignment may be submitted by AlphaSierraPapa to register
a copyright in the Contribution. Contributor retains the right to use the Contribution for Contributor's
own purposes. This Joint Copyright Assignment supersedes and replaces all prior copyright
assignments made by Contributor to AlphaSierraPapa under the #develop project.</Text><BackColor>White</BackColor><Font>Microsoft Sans Serif, 10pt</Font><DrawBorder>True</DrawBorder><ForeColor>ControlText</ForeColor></BaseTextItem><BaseTextItem><FrameColor>WindowFrame</FrameColor><Name>reportTextItem4</Name><Location>50, 380</Location><ContentAlignment>TopLeft</ContentAlignment><Visible>True</Visible><FormatString /><Size>696, 37</Size><Text>3. Contributor is legally entitled to grant the above assignment and agrees not to provide any
Contribution that violates any law or breaches any contract.</Text><Name>reportTextItem4</Name><BackColor>White</BackColor><Font>Microsoft Sans Serif, 10pt</Font><DrawBorder>False</DrawBorder><ForeColor>ControlText</ForeColor></BaseTextItem><BaseTextItem><FrameColor>WindowFrame</FrameColor><Name>reportTextItem5</Name><Name>reportTextItem5</Name><Location>50, 443</Location><ContentAlignment>TopLeft</ContentAlignment><Visible>True</Visible><FormatString /><Size>695, 80</Size><Text>Signed:________________________________________ Date_______________
assignments made by Contributor to AlphaSierraPapa under the #develop project.</Text>
<Location>50, 257</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>False</Visible>
<DrawBorder>True</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem3</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>695, 113</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>3. Contributor is legally entitled to grant the above assignment and agrees not to provide any
Contribution that violates any law or breaches any contract.</Text>
<Location>50, 380</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>False</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem4</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>696, 37</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>Signed:________________________________________ Date_______________
Printed Name:__________________________________
Please send a signed copy of this assignment by facsimile to AlphaSierraPapa at:</Text><BackColor>White</BackColor><Font>Microsoft Sans Serif, 10pt</Font><DrawBorder>True</DrawBorder><ForeColor>ControlText</ForeColor></BaseTextItem><BaseTextItem><Name>reportTextItem6</Name><FrameColor>WindowFrame</FrameColor><Name>reportTextItem6</Name><Location>50, 551</Location><ContentAlignment>TopLeft</ContentAlignment><Visible>True</Visible><FormatString /><Size>213, 139</Size><Text>+43-3842-22620
Please send a signed copy of this assignment by facsimile to AlphaSierraPapa at:</Text>
<Location>50, 443</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>False</Visible>
<DrawBorder>True</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem5</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>695, 80</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>+43-3842-22620
or mail it to:
@ -28,4 +219,44 @@ AlphaSierraPapa @@ -28,4 +219,44 @@ AlphaSierraPapa
Christoph Wille
Vordernbergerstrasse 27/8
8700 Leoben
AUSTRIA</Text><BackColor>White</BackColor><Font>Microsoft Sans Serif, 10pt</Font><DrawBorder>False</DrawBorder><ForeColor>ControlText</ForeColor></BaseTextItem></Items><DrawBorder>False</DrawBorder><PageBreakAfter>False</PageBreakAfter><SectionOffset>0</SectionOffset><BackColor>Window</BackColor><CanGrow>False</CanGrow><Size>718, 723</Size></BaseSection><BaseSection><CanShrink>False</CanShrink><Location>50, 998</Location><SectionMargin>50</SectionMargin><Name>ReportPageFooter</Name><Items /><DrawBorder>False</DrawBorder><PageBreakAfter>False</PageBreakAfter><SectionOffset>0</SectionOffset><BackColor>Window</BackColor><CanGrow>False</CanGrow><Size>718, 50</Size></BaseSection><BaseSection><CanShrink>False</CanShrink><Location>50, 1063</Location><SectionMargin>50</SectionMargin><Name>ReportFooter</Name><Items /><DrawBorder>False</DrawBorder><PageBreakAfter>False</PageBreakAfter><SectionOffset>0</SectionOffset><BackColor>Window</BackColor><CanGrow>False</CanGrow><Size>718, 50</Size></BaseSection></SectionCollection></ReportModel>
AUSTRIA</Text>
<Location>50, 551</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>False</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem6</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>213, 139</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
</Items>
<Location>50, 260</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>718, 50</Size>
<Name>ReportPageFooter</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>50</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>Window</BackColor>
<Items />
<Location>50, 998</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>718, 50</Size>
<Name>ReportFooter</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>50</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>Window</BackColor>
<Items />
<Location>50, 1063</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
</SectionCollection>
</ReportModel>

176
samples/SharpDevelopReports/SampleReports/Ilist/ContributorsList.srd

@ -0,0 +1,176 @@ @@ -0,0 +1,176 @@
<ReportModel>
<ReportSettings>
<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>
</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>
</ReportModel>

2
samples/SharpDevelopReports/src/ReportSamples.sln

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
# SharpDevelop 3.1.1.5340
# SharpDevelop 3.2.0.5366
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReportSamples", "ReportSamples\ReportSamples.csproj", "{9BFECB53-827E-44BF-9DFD-C15F0A6106BE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpReportSamples", "SharpReportSamples\SharpReportSamples.csproj", "{BB5D34DA-3561-48B1-894A-46765C2A18C1}"

7
samples/SharpDevelopReports/src/ReportSamples/ReportSamples.csproj

@ -36,9 +36,6 @@ @@ -36,9 +36,6 @@
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
<ItemGroup>
<Reference Include="ICSharpCode.Reports.Core">
<HintPath>..\..\..\..\AddIns\AddIns\Misc\SharpDevelopReports\ICSharpCode.Reports.Core.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
@ -71,5 +68,9 @@ @@ -71,5 +68,9 @@
</ItemGroup>
<ItemGroup>
<Folder Include="Resources" />
<ProjectReference Include="..\..\..\..\src\AddIns\Misc\SharpReport\ICSharpCode.Reports.Core\ICSharpCode.Reports.Core.csproj">
<Project>{4B2239FF-8FD6-431D-9D22-1B8049BA6917}</Project>
<Name>ICSharpCode.Reports.Core</Name>
</ProjectReference>
</ItemGroup>
</Project>

32
samples/SharpDevelopReports/src/SharpReportSamples/MainForm.cs

@ -89,30 +89,36 @@ namespace SharpReportSamples @@ -89,30 +89,36 @@ namespace SharpReportSamples
private void RunStandardReport(string reportName)
{
ReportEngine engine = new ReportEngine();
this.previewControl1.SetupAsynchron(reportName,null);
ReportParameters parameters = ReportEngine.LoadParameters(reportName);
if ((parameters != null)&& (parameters.SqlParameters.Count > 0)){
parameters.SqlParameters[0].ParameterValue = "I'm the Parameter";
}
this.previewControl1.SetupAsynchron(reportName,parameters);
}
// FileAccess: D:\Reporting3.0_branches\SharpDevelop\AddIns\AddIns\Misc\SharpDevelopReports\ICSharpCode.Reports.Core.dll
// hint : ..\..\..\..\AddIns\AddIns\Misc\SharpDevelopReports\ICSharpCode.Reports.Core.dl
private void SelectReport ()
{
{
TreeNode selectedNode = this.treeView1.SelectedNode;
if (selectedNode != null) {
if (!String.IsNullOrEmpty(selectedNode.Tag.ToString())) {
if (selectedNode.Parent == this.pushNode) {
Console.WriteLine("push");
} else {
RunStandardReport(selectedNode.Tag.ToString());
}
if ((selectedNode == null)|| (selectedNode.Tag == null)) {
return;
}
if (!String.IsNullOrEmpty(selectedNode.Tag.ToString())) {
if (selectedNode.Parent == this.pushNode) {
MessageBox.Show("PushModel reports not implemented yet");
} else {
RunStandardReport(selectedNode.Tag.ToString());
}
}
}
void TreeView1MouseDoubleClick(object sender, MouseEventArgs e)
{
SelectReport();

15
src/AddIns/Misc/SharpReport/ICSharpCode.Reports.Core/Project/ReportEngine.cs

@ -117,11 +117,20 @@ namespace ICSharpCode.Reports.Core { @@ -117,11 +117,20 @@ namespace ICSharpCode.Reports.Core {
internal static void CheckForParameters (IReportModel model,ReportParameters reportParameters)
{
if (reportParameters != null) {
if (reportParameters.SortColumnCollection != null) {
if (reportParameters.SortColumnCollection.Count > 0) {
model.ReportSettings.SortColumnCollection.AddRange(reportParameters.SortColumnCollection);
if (reportParameters.SortColumnCollection.Count > 0) {
model.ReportSettings.SortColumnCollection.AddRange(reportParameters.SortColumnCollection);
}
if (reportParameters.SqlParameters.Count > 0) {
foreach (BasicParameter bp in reportParameters.SqlParameters) {
BasicParameter p = model.ReportSettings.ParameterCollection.Find(bp.ParameterName);
if (p != null) {
p.ParameterValue = bp.ParameterValue;
}
}
}
}
}

8
src/AddIns/Misc/SharpReport/SharpDevelop.Reports.Test.sln

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
# SharpDevelop 3.1.1.5340
# SharpDevelop 3.2.0.5366
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Reports.Addin", "ICSharpCode.Reports.Addin\ICSharpCode.Reports.Addin.csproj", "{35D002D7-C78B-44FB-92AA-104BEB431678}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Reports.Addin.Test", "ICSharpCode.Reports.Addin\Test\ICSharpCode.Reports.Addin.Test.csproj", "{2B232C7E-CFB6-4B73-A1B8-134A8A2ED4F7}"
@ -16,8 +16,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Irony", "Irony\Irony.csproj @@ -16,8 +16,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Irony", "Irony\Irony.csproj
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.SharpDevelop", "..\..\..\Main\Base\Project\ICSharpCode.SharpDevelop.csproj", "{2748AD25-9C63-4E12-877B-4DCE96FBED54}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Core", "..\..\..\Main\Core\Project\ICSharpCode.Core.csproj", "{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -52,9 +50,5 @@ Global @@ -52,9 +50,5 @@ Global
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Release|Any CPU.Build.0 = Release|Any CPU
{2748AD25-9C63-4E12-877B-4DCE96FBED54}.Release|Any CPU.ActiveCfg = Release|Any CPU
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Release|Any CPU.Build.0 = Release|Any CPU
{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}.Release|Any CPU.ActiveCfg = Release|Any CPU
EndGlobalSection
EndGlobal

Loading…
Cancel
Save