Browse Source

Remove SDR samples as they are now hosted in their own repository at https://github.com/icsharpcode/SharpDevelopReporting/

pull/463/head
Christoph Wille 11 years ago
parent
commit
5e39385d33
  1. 292
      samples/SharpDevelopReports/SampleReports/Customized/EventLog.srd
  2. BIN
      samples/SharpDevelopReports/SampleReports/EventLogger/Error.png
  3. BIN
      samples/SharpDevelopReports/SampleReports/EventLogger/Info.png
  4. BIN
      samples/SharpDevelopReports/SampleReports/EventLogger/Warning.png
  5. 247
      samples/SharpDevelopReports/SampleReports/FormSheet/JCA.srd
  6. 280
      samples/SharpDevelopReports/SampleReports/Ilist/ContributorsList.srd
  7. 310
      samples/SharpDevelopReports/SampleReports/Ilist/ContributorsListWithParameters.srd
  8. BIN
      samples/SharpDevelopReports/SampleReports/Logos/Bannerbeige2.gif
  9. BIN
      samples/SharpDevelopReports/SampleReports/Logos/SDLogo_JPG.jpg
  10. 331
      samples/SharpDevelopReports/SampleReports/ProviderIndependent/NoConnectionReport.srd
  11. 332
      samples/SharpDevelopReports/SampleReports/PullModel/Parameter_Aggregate.srd
  12. 3
      samples/SharpDevelopReports/Samples.txt
  13. 20
      samples/SharpDevelopReports/Web/BasicReport/Default.aspx
  14. 38
      samples/SharpDevelopReports/Web/BasicReport/Default.aspx.cs
  15. 247
      samples/SharpDevelopReports/Web/BasicReport/SalesByYear.srd
  16. 43
      samples/SharpDevelopReports/Web/BasicReport/Web.Config
  17. 166
      samples/SharpDevelopReports/Web/IListReport/ContributorList.srd
  18. 17
      samples/SharpDevelopReports/Web/IListReport/Default.aspx
  19. 113
      samples/SharpDevelopReports/Web/IListReport/Default.aspx.cs
  20. 44
      samples/SharpDevelopReports/Web/IListReport/Web.Config
  21. 3
      samples/SharpDevelopReports/doc/ReadMe.txt
  22. 31
      samples/SharpDevelopReports/src/AssemblyInfo.cs
  23. 37
      samples/SharpDevelopReports/src/ReportSamples.sln
  24. 86
      samples/SharpDevelopReports/src/SharpReportSamples/ContributorsList.cs
  25. 94
      samples/SharpDevelopReports/src/SharpReportSamples/EventLogger.cs
  26. 163
      samples/SharpDevelopReports/src/SharpReportSamples/MainForm.Designer.cs
  27. 446
      samples/SharpDevelopReports/src/SharpReportSamples/MainForm.cs
  28. 126
      samples/SharpDevelopReports/src/SharpReportSamples/MainForm.resx
  29. 31
      samples/SharpDevelopReports/src/SharpReportSamples/Program.cs
  30. 31
      samples/SharpDevelopReports/src/SharpReportSamples/Properties/AssemblyInfo.cs
  31. 77
      samples/SharpDevelopReports/src/SharpReportSamples/ReportViewerMessagesProvider.cs
  32. BIN
      samples/SharpDevelopReports/src/SharpReportSamples/Resources/Info.png
  33. BIN
      samples/SharpDevelopReports/src/SharpReportSamples/Resources/error.ico
  34. BIN
      samples/SharpDevelopReports/src/SharpReportSamples/Resources/warning.ico
  35. 80
      samples/SharpDevelopReports/src/SharpReportSamples/SharpReportSamples.csproj

292
samples/SharpDevelopReports/SampleReports/Customized/EventLog.srd

@ -1,292 +0,0 @@ @@ -1,292 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<ReportModel>
<ReportSettings>
<ReportSettings>
<DefaultFont>Microsoft Sans Serif, 10pt</DefaultFont>
<DataModel>PushData</DataModel>
<RightMargin>50</RightMargin>
<UseStandardPrinter>True</UseStandardPrinter>
<SortColumnCollection />
<AvailableFieldsCollection />
<NoDataMessage>No Data for this Report</NoDataMessage>
<LeftMargin>50</LeftMargin>
<PageSize>827, 1169</PageSize>
<Padding>5, 5, 5, 5</Padding>
<BottomMargin>50</BottomMargin>
<CommandType>Text</CommandType>
<ParameterCollection />
<Landscape>False</Landscape>
<ReportName>Customized</ReportName>
<TopMargin>50</TopMargin>
<GroupColumnsCollection />
<GraphicsUnit>Pixel</GraphicsUnit>
<CommandText />
<ReportType>DataReport</ReportType>
<ConnectionString />
</ReportSettings>
</ReportSettings>
<SectionCollection>
<BaseSection>
<Size>727, 91</Size>
<Name>ReportHeader</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseImageItem>
<ImageSource>File</ImageSource>
<Location>83, 13</Location>
<Name>BaseImageItem2</Name>
<Size>568, 36</Size>
<ScaleImageToSize>False</ScaleImageToSize>
<BackColor>White</BackColor>
<RelativeFileName>..\Logos\Bannerbeige2.gif</RelativeFileName>
<ImageFileName>D:\SharpDevelop3.0_WorkingCopy\SharpDevelop\samples\SharpDevelopReports\SampleReports\Logos\Bannerbeige2.gif</ImageFileName>
</BaseImageItem>
<BaseTextItem>
<BackColor>Silver</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>System - Eventlog</Text>
<Location>83, 55</Location>
<ContentAlignment>TopCenter</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 15pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>BaseTextItem2147483643</Name>
<FrameColor>White</FrameColor>
<Size>568, 33</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
</Items>
<Location>50, 50</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportPageHeader</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseRowItem>
<Location>12, 3</Location>
<AlternateBackColor />
<Name>BaseRowItem2</Name>
<Items>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>Image</Text>
<Location>20, 7</Location>
<ContentAlignment>TopCenter</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 12pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>BaseTextItem2147483642</Name>
<FrameColor>White</FrameColor>
<Size>100, 20</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>EntryType</Text>
<Location>135, 7</Location>
<ContentAlignment>TopCenter</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 12pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>BaseTextItem2147483644</Name>
<FrameColor>White</FrameColor>
<Size>100, 20</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>DateWritten</Text>
<Location>261, 7</Location>
<ContentAlignment>TopCenter</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 12pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>BaseTextItem2147483645</Name>
<FrameColor>White</FrameColor>
<Size>100, 20</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>Message</Text>
<Location>391, 7</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 12pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>BaseTextItem2147483646</Name>
<FrameColor>White</FrameColor>
<Size>248, 20</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
</Items>
<DrawBorder>False</DrawBorder>
<ChangeBackColorEveryNRow>0</ChangeBackColorEveryNRow>
<FrameColor>White</FrameColor>
<Size>697, 44</Size>
<BackColor>White</BackColor>
<Visible>True</Visible>
<ForeColor>Black</ForeColor>
</BaseRowItem>
</Items>
<Location>50, 156</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 90</Size>
<Name>ReportDetail</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseRowItem>
<Location>12, 14</Location>
<AlternateBackColor />
<Name>BaseRowItem1</Name>
<Items>
<BaseImageItem>
<ImageSource>Database</ImageSource>
<Location>20, 7</Location>
<Name>BaseImageItem1</Name>
<Size>30, 30</Size>
<ScaleImageToSize>False</ScaleImageToSize>
<BackColor>White</BackColor>
<ColumnName>Image</ColumnName>
</BaseImageItem>
<BaseDataItem>
<Text>EntryType</Text>
<Font>Microsoft Sans Serif, 8.25pt</Font>
<Location>135, 7</Location>
<CanGrow>False</CanGrow>
<ForeColor>Black</ForeColor>
<StringTrimming>None</StringTrimming>
<ColumnName>EntryType</ColumnName>
<DrawBorder>False</DrawBorder>
<CanShrink>False</CanShrink>
<ContentAlignment>TopLeft</ContentAlignment>
<BackColor>White</BackColor>
<FormatString />
<Name>EntryType</Name>
<Visible>True</Visible>
<Size>100, 20</Size>
<FrameColor>White</FrameColor>
</BaseDataItem>
<BaseDataItem>
<Text>Message</Text>
<Font>Microsoft Sans Serif, 8.25pt</Font>
<Location>391, 7</Location>
<CanGrow>False</CanGrow>
<ForeColor>Black</ForeColor>
<StringTrimming>None</StringTrimming>
<ColumnName>Message</ColumnName>
<DrawBorder>False</DrawBorder>
<CanShrink>False</CanShrink>
<ContentAlignment>TopLeft</ContentAlignment>
<BackColor>White</BackColor>
<FormatString />
<Name>Message</Name>
<Visible>True</Visible>
<Size>248, 20</Size>
<FrameColor>White</FrameColor>
</BaseDataItem>
<BaseDataItem>
<Text>TimeWritten</Text>
<Font>Microsoft Sans Serif, 10pt</Font>
<Location>261, 7</Location>
<CanGrow>False</CanGrow>
<ForeColor>Black</ForeColor>
<StringTrimming>None</StringTrimming>
<ColumnName>TimeWritten</ColumnName>
<DrawBorder>False</DrawBorder>
<CanShrink>False</CanShrink>
<ContentAlignment>TopLeft</ContentAlignment>
<BackColor>White</BackColor>
<FormatString />
<Name>BaseDataItem1</Name>
<Visible>True</Visible>
<Size>100, 20</Size>
<FrameColor>White</FrameColor>
</BaseDataItem>
</Items>
<DrawBorder>False</DrawBorder>
<ChangeBackColorEveryNRow>0</ChangeBackColorEveryNRow>
<FrameColor>White</FrameColor>
<Size>697, 63</Size>
<BackColor>White</BackColor>
<Visible>True</Visible>
<ForeColor>Black</ForeColor>
</BaseRowItem>
</Items>
<Location>50, 231</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportPageFooter</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>='Page (' + Globals!PageNumber + ') of ( ' + Globals!TotalPages + ' ) Pages'</Text>
<Location>403, 21</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 8.25pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>='Page ' + Global!PageNumber + 'of ' + Global!Pages + 'Pages'</Name>
<FrameColor>White</FrameColor>
<Size>166, 20</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
</Items>
<Location>50, 336</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportFooter</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items />
<Location>50, 411</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
</SectionCollection>
</ReportModel>

BIN
samples/SharpDevelopReports/SampleReports/EventLogger/Error.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 B

BIN
samples/SharpDevelopReports/SampleReports/EventLogger/Info.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 310 B

BIN
samples/SharpDevelopReports/SampleReports/EventLogger/Warning.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 273 B

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

@ -1,247 +0,0 @@ @@ -1,247 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<ReportModel>
<ReportSettings>
<ReportSettings>
<DefaultFont>Microsoft Sans Serif, 10pt</DefaultFont>
<DataModel>FormSheet</DataModel>
<RightMargin>50</RightMargin>
<UseStandardPrinter>True</UseStandardPrinter>
<SortColumnCollection />
<AvailableFieldsCollection />
<NoDataMessage>No Data for this Report</NoDataMessage>
<LeftMargin>50</LeftMargin>
<PageSize>827, 1169</PageSize>
<Padding>5, 5, 5, 5</Padding>
<BottomMargin>50</BottomMargin>
<CommandType>Text</CommandType>
<ParameterCollection />
<Landscape>False</Landscape>
<ReportName>Report1</ReportName>
<TopMargin>50</TopMargin>
<GroupColumnsCollection />
<GraphicsUnit>Millimeter</GraphicsUnit>
<CommandText />
<ReportType>FormSheet</ReportType>
<ConnectionString />
</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>..\..\Logos\Bannerbeige2.gif</RelativeFileName>
<ImageFileName>D:\SharpDevelop3.0_WorkingCopy\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>92, 10</Location>
<ContentAlignment>TopCenter</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 14pt, style=Bold</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>597, 57</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
</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>
<Location>50, 8</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>True</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>639, 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>
<Location>50, 171</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>True</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem2</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>639, 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>
<Location>50, 257</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>True</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem3</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>639, 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>True</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>
<Location>50, 443</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>True</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>reportTextItem5</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>639, 80</Size>
<ForeColor>ControlText</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>+43-3842-22620
or mail it to:
AlphaSierraPapa
Christoph Wille
Vordernbergerstrasse 27/8
8700 Leoben
AUSTRIA</Text>
<Location>50, 551</Location>
<ContentAlignment>TopLeft</ContentAlignment>
<Visible>True</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>

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

@ -1,280 +0,0 @@ @@ -1,280 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<ReportModel>
<ReportSettings>
<ReportSettings>
<ReportName>Report1</ReportName>
<ReportType>DataReport</ReportType>
<BottomMargin>50</BottomMargin>
<TopMargin>50</TopMargin>
<LeftMargin>50</LeftMargin>
<RightMargin>50</RightMargin>
<PageSize>827, 1169</PageSize>
<Landscape>False</Landscape>
<GraphicsUnit>Millimeter</GraphicsUnit>
<Padding>5, 5, 5, 5</Padding>
<AvailableFieldsCollection />
<SortColumnsCollection />
<GroupColumnsCollection />
<ParameterCollection />
<ConnectionString />
<CommandText />
<CommandType>Text</CommandType>
<DataModel>PushData</DataModel>
<NoDataMessage>No Data for this Report</NoDataMessage>
<DefaultFont>Microsoft Sans Serif, 10pt</DefaultFont>
<UseStandardPrinter>True</UseStandardPrinter>
</ReportSettings>
</ReportSettings>
<SectionCollection>
<BaseSection>
<Location>50, 50</Location>
<Size>786, 35</Size>
<BackColor>Window</BackColor>
<SectionOffset>0</SectionOffset>
<SectionMargin>50</SectionMargin>
<DrawBorder>False</DrawBorder>
<PageBreakAfter>False</PageBreakAfter>
<Items />
<FrameColor>Black</FrameColor>
<Name>ReportHeader</Name>
</BaseSection>
<BaseSection>
<Location>50, 100</Location>
<Size>786, 108</Size>
<BackColor>Window</BackColor>
<SectionOffset>0</SectionOffset>
<SectionMargin>50</SectionMargin>
<DrawBorder>False</DrawBorder>
<PageBreakAfter>False</PageBreakAfter>
<Items>
<BaseTextItem>
<Location>429, 63</Location>
<Size>100, 20</Size>
<BackColor>White</BackColor>
<Font>Microsoft Sans Serif, 12pt, style=Bold</Font>
<StringTrimming>None</StringTrimming>
<ContentAlignment>TopLeft</ContentAlignment>
<CanGrow>False</CanGrow>
<CanShrink>False</CanShrink>
<Text>Job</Text>
<DrawBorder>False</DrawBorder>
<FrameColor>WindowFrame</FrameColor>
<ForeColor>ControlText</ForeColor>
<Visible>True</Visible>
<Name>Job</Name>
</BaseTextItem>
<BaseTextItem>
<Location>234, 63</Location>
<Size>100, 20</Size>
<BackColor>White</BackColor>
<Font>Microsoft Sans Serif, 12pt, style=Bold</Font>
<StringTrimming>None</StringTrimming>
<ContentAlignment>TopLeft</ContentAlignment>
<CanGrow>False</CanGrow>
<CanShrink>False</CanShrink>
<Text>Lastname</Text>
<DrawBorder>False</DrawBorder>
<FrameColor>WindowFrame</FrameColor>
<ForeColor>ControlText</ForeColor>
<Visible>True</Visible>
<Name>Lastname</Name>
</BaseTextItem>
<BaseImageItem>
<Location>47, 6</Location>
<Size>661, 42</Size>
<BackColor>Window</BackColor>
<ImageFileName>D:\git_Sharpdevelop_Reporting\samples\SharpDevelopReports\SampleReports\Logos\Bannerbeige2.gif</ImageFileName>
<ScaleImageToSize>False</ScaleImageToSize>
<ImageSource>File</ImageSource>
<RelativeFileName>..\..\Logos\Bannerbeige2.gif</RelativeFileName>
<Name>ReportImageControl</Name>
</BaseImageItem>
<BaseLineItem>
<Location>47, 87</Location>
<Size>661, 18</Size>
<BackColor>White</BackColor>
<ForeColor>ControlText</ForeColor>
<FromPoint>0, 3</FromPoint>
<ToPoint>614, 3</ToPoint>
<StartLineCap>Flat</StartLineCap>
<EndLineCap>Flat</EndLineCap>
<DashLineCap>Flat</DashLineCap>
<DashStyle>Solid</DashStyle>
<Thickness>2</Thickness>
<Name />
</BaseLineItem>
<BaseTextItem>
<Location>46, 63</Location>
<Size>109, 20</Size>
<BackColor>White</BackColor>
<Font>Microsoft Sans Serif, 12pt, style=Bold</Font>
<StringTrimming>EllipsisCharacter</StringTrimming>
<ContentAlignment>TopLeft</ContentAlignment>
<CanGrow>False</CanGrow>
<CanShrink>False</CanShrink>
<Text>Firstname</Text>
<DrawBorder>False</DrawBorder>
<FrameColor>WindowFrame</FrameColor>
<ForeColor>ControlText</ForeColor>
<Visible>True</Visible>
<Name>reportTextItem1</Name>
</BaseTextItem>
</Items>
<FrameColor>Black</FrameColor>
<Name>ReportPageHeader</Name>
</BaseSection>
<BaseSection>
<Location>50, 223</Location>
<Size>750, 60</Size>
<BackColor>Window</BackColor>
<SectionOffset>0</SectionOffset>
<SectionMargin>50</SectionMargin>
<DrawBorder>False</DrawBorder>
<PageBreakAfter>False</PageBreakAfter>
<Items>
<BaseRowItem>
<Location>3, 10</Location>
<Size>699, 47</Size>
<BackColor>White</BackColor>
<DrawBorder>False</DrawBorder>
<ForeColor>ControlText</ForeColor>
<Visible>True</Visible>
<FrameColor>WindowFrame</FrameColor>
<Items>
<BaseDataItem>
<Location>43, 12</Location>
<Size>147, 25</Size>
<BackColor>White</BackColor>
<Font>Microsoft Sans Serif, 10pt</Font>
<StringTrimming>EllipsisCharacter</StringTrimming>
<ContentAlignment>MiddleLeft</ContentAlignment>
<CanGrow>False</CanGrow>
<CanShrink>False</CanShrink>
<DataType>System.String</DataType>
<Text>First</Text>
<DrawBorder>False</DrawBorder>
<FrameColor>WindowFrame</FrameColor>
<ForeColor>ControlText</ForeColor>
<Visible>True</Visible>
<ColumnName>First</ColumnName>
<Name>unbound1</Name>
</BaseDataItem>
<BaseDataItem>
<Location>231, 12</Location>
<Size>139, 25</Size>
<BackColor>White</BackColor>
<Font>Microsoft Sans Serif, 10pt</Font>
<StringTrimming>EllipsisCharacter</StringTrimming>
<ContentAlignment>MiddleLeft</ContentAlignment>
<CanGrow>False</CanGrow>
<CanShrink>False</CanShrink>
<DataType>System.String</DataType>
<Text>Last</Text>
<DrawBorder>False</DrawBorder>
<FrameColor>WindowFrame</FrameColor>
<ForeColor>ControlText</ForeColor>
<Visible>True</Visible>
<ColumnName>Last</ColumnName>
<Name>unbound2</Name>
</BaseDataItem>
<BaseDataItem>
<Location>426, 10</Location>
<Size>216, 25</Size>
<BackColor>White</BackColor>
<Font>Microsoft Sans Serif, 10pt</Font>
<StringTrimming>EllipsisCharacter</StringTrimming>
<ContentAlignment>MiddleLeft</ContentAlignment>
<CanGrow>False</CanGrow>
<CanShrink>False</CanShrink>
<DataType>System.String</DataType>
<Text>Job</Text>
<DrawBorder>False</DrawBorder>
<FrameColor>WindowFrame</FrameColor>
<ForeColor>ControlText</ForeColor>
<Visible>True</Visible>
<ColumnName>Job</ColumnName>
<NullValue>--------------</NullValue>
<Name>unbound3</Name>
</BaseDataItem>
</Items>
<AlternateBackColor />
<ChangeBackColorEveryNRow>0</ChangeBackColorEveryNRow>
<Name>Row</Name>
</BaseRowItem>
</Items>
<FrameColor>Black</FrameColor>
<Name>ReportDetail</Name>
</BaseSection>
<BaseSection>
<Location>50, 298</Location>
<Size>750, 49</Size>
<BackColor>Window</BackColor>
<SectionOffset>0</SectionOffset>
<SectionMargin>50</SectionMargin>
<DrawBorder>False</DrawBorder>
<PageBreakAfter>False</PageBreakAfter>
<Items>
<BaseTextItem>
<Location>45, 24</Location>
<Size>483, 20</Size>
<BackColor>White</BackColor>
<Font>Microsoft Sans Serif, 8.25pt</Font>
<StringTrimming>None</StringTrimming>
<ContentAlignment>TopLeft</ContentAlignment>
<CanGrow>False</CanGrow>
<CanShrink>False</CanShrink>
<Text>=Globals!ReportFolder</Text>
<DrawBorder>False</DrawBorder>
<FrameColor>WindowFrame</FrameColor>
<ForeColor>ControlText</ForeColor>
<Visible>True</Visible>
<Name>=Globals!ReportFolder</Name>
</BaseTextItem>
<BaseLineItem>
<Location>45, 3</Location>
<Size>663, 15</Size>
<BackColor>White</BackColor>
<ForeColor>ControlText</ForeColor>
<FromPoint>0, 0</FromPoint>
<ToPoint>656, 0</ToPoint>
<StartLineCap>Flat</StartLineCap>
<EndLineCap>Flat</EndLineCap>
<DashLineCap>Flat</DashLineCap>
<DashStyle>Solid</DashStyle>
<Thickness>2</Thickness>
<Name>object_177a5444_b8e0_4202_87d2_05cdc7cd1194</Name>
</BaseLineItem>
<BaseTextItem>
<Location>602, 24</Location>
<Size>100, 20</Size>
<BackColor>White</BackColor>
<Font>Microsoft Sans Serif, 8.25pt</Font>
<StringTrimming>None</StringTrimming>
<ContentAlignment>TopLeft</ContentAlignment>
<CanGrow>False</CanGrow>
<CanShrink>False</CanShrink>
<Text>='Page ' + Globals!PageNumber</Text>
<DrawBorder>False</DrawBorder>
<FrameColor>WindowFrame</FrameColor>
<ForeColor>ControlText</ForeColor>
<Visible>True</Visible>
<Name>='Page ' + Globals!PageNumber</Name>
</BaseTextItem>
</Items>
<FrameColor>Black</FrameColor>
<Name>ReportPageFooter</Name>
</BaseSection>
<BaseSection>
<Location>50, 362</Location>
<Size>750, 55</Size>
<BackColor>Window</BackColor>
<SectionOffset>0</SectionOffset>
<SectionMargin>50</SectionMargin>
<DrawBorder>False</DrawBorder>
<PageBreakAfter>False</PageBreakAfter>
<Items />
<FrameColor>Black</FrameColor>
<Name>ReportFooter</Name>
</BaseSection>
</SectionCollection>
</ReportModel>

310
samples/SharpDevelopReports/SampleReports/Ilist/ContributorsListWithParameters.srd

@ -1,310 +0,0 @@ @@ -1,310 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<ReportModel>
<ReportSettings>
<ReportSettings>
<ReportName>Report1</ReportName>
<ReportType>DataReport</ReportType>
<BottomMargin>50</BottomMargin>
<TopMargin>50</TopMargin>
<LeftMargin>50</LeftMargin>
<RightMargin>50</RightMargin>
<PageSize>827, 1169</PageSize>
<Landscape>False</Landscape>
<GraphicsUnit>Millimeter</GraphicsUnit>
<Padding>5, 5, 5, 5</Padding>
<AvailableFieldsCollection />
<SortColumnCollection />
<GroupColumnsCollection />
<ParameterCollection>
<BasicParameter>
<ParameterName>p1</ParameterName>
<ParameterValue>ValueOfP1</ParameterValue>
</BasicParameter>
</ParameterCollection>
<ConnectionString />
<CommandText />
<CommandType>Text</CommandType>
<DataModel>PushData</DataModel>
<NoDataMessage>No Data for this Report</NoDataMessage>
<DefaultFont>Microsoft Sans Serif, 10pt</DefaultFont>
<UseStandardPrinter>True</UseStandardPrinter>
</ReportSettings>
</ReportSettings>
<SectionCollection>
<BaseSection>
<Location>50, 50</Location>
<Size>786, 35</Size>
<BackColor>Window</BackColor>
<SectionOffset>0</SectionOffset>
<SectionMargin>50</SectionMargin>
<DrawBorder>False</DrawBorder>
<PageBreakAfter>False</PageBreakAfter>
<Items />
<FrameColor>Black</FrameColor>
<Name>ReportHeader</Name>
</BaseSection>
<BaseSection>
<Location>50, 100</Location>
<Size>786, 108</Size>
<BackColor>Window</BackColor>
<SectionOffset>0</SectionOffset>
<SectionMargin>50</SectionMargin>
<DrawBorder>False</DrawBorder>
<PageBreakAfter>False</PageBreakAfter>
<Items>
<BaseTextItem>
<Location>45, 20</Location>
<Size>272, 20</Size>
<BackColor>White</BackColor>
<Font>Segoe UI, 9pt</Font>
<FormatString />
<StringTrimming>None</StringTrimming>
<ContentAlignment>TopLeft</ContentAlignment>
<CanGrow>False</CanGrow>
<CanShrink>False</CanShrink>
<Text>="Param " + Parameters!p1</Text>
<DrawBorder>False</DrawBorder>
<FrameColor>Black</FrameColor>
<ForeColor>0, 0, 0</ForeColor>
<Visible>True</Visible>
<Name>BaseTextItem2147483646</Name>
</BaseTextItem>
<BaseTextItem>
<Location>429, 63</Location>
<Size>100, 20</Size>
<BackColor>White</BackColor>
<Font>Microsoft Sans Serif, 12pt, style=Bold</Font>
<FormatString />
<StringTrimming>None</StringTrimming>
<ContentAlignment>TopLeft</ContentAlignment>
<CanGrow>False</CanGrow>
<CanShrink>False</CanShrink>
<Text>Job</Text>
<DrawBorder>False</DrawBorder>
<FrameColor>WindowFrame</FrameColor>
<ForeColor>ControlText</ForeColor>
<Visible>True</Visible>
<Name>Job</Name>
</BaseTextItem>
<BaseTextItem>
<Location>234, 63</Location>
<Size>100, 20</Size>
<BackColor>White</BackColor>
<Font>Microsoft Sans Serif, 12pt, style=Bold</Font>
<FormatString />
<StringTrimming>None</StringTrimming>
<ContentAlignment>TopLeft</ContentAlignment>
<CanGrow>False</CanGrow>
<CanShrink>False</CanShrink>
<Text>Lastname</Text>
<DrawBorder>False</DrawBorder>
<FrameColor>WindowFrame</FrameColor>
<ForeColor>ControlText</ForeColor>
<Visible>True</Visible>
<Name>Lastname</Name>
</BaseTextItem>
<BaseImageItem>
<Location>429, 6</Location>
<Size>273, 42</Size>
<BackColor>Window</BackColor>
<ImageFileName>D:\SharpDevelop3.0_CHECKOUT\SharpDevelop\samples\SharpDevelopReports\SampleReports\Logos\Bannerbeige2.gif</ImageFileName>
<ScaleImageToSize>False</ScaleImageToSize>
<ImageSource>File</ImageSource>
<RelativeFileName>..\..\..\..\..\..\SharpDevelop3.0_CHECKOUT\SharpDevelop\samples\SharpDevelopReports\SampleReports\Logos\Bannerbeige2.gif</RelativeFileName>
<Name>ReportImageControl</Name>
</BaseImageItem>
<BaseLineItem>
<Location>47, 87</Location>
<Size>661, 18</Size>
<BackColor>White</BackColor>
<ForeColor>ControlText</ForeColor>
<FromPoint>0, 3</FromPoint>
<ToPoint>614, 3</ToPoint>
<StartLineCap>Flat</StartLineCap>
<EndLineCap>Flat</EndLineCap>
<DashLineCap>Flat</DashLineCap>
<DashStyle>Solid</DashStyle>
<Thickness>2</Thickness>
<Name />
</BaseLineItem>
<BaseTextItem>
<Location>46, 63</Location>
<Size>109, 20</Size>
<BackColor>White</BackColor>
<Font>Microsoft Sans Serif, 12pt, style=Bold</Font>
<FormatString />
<StringTrimming>EllipsisCharacter</StringTrimming>
<ContentAlignment>TopLeft</ContentAlignment>
<CanGrow>False</CanGrow>
<CanShrink>False</CanShrink>
<Text>Firstname</Text>
<DrawBorder>False</DrawBorder>
<FrameColor>WindowFrame</FrameColor>
<ForeColor>ControlText</ForeColor>
<Visible>True</Visible>
<Name>reportTextItem1</Name>
</BaseTextItem>
</Items>
<FrameColor>Black</FrameColor>
<Name>ReportPageHeader</Name>
</BaseSection>
<BaseSection>
<Location>50, 223</Location>
<Size>750, 51</Size>
<BackColor>Window</BackColor>
<SectionOffset>0</SectionOffset>
<SectionMargin>50</SectionMargin>
<DrawBorder>False</DrawBorder>
<PageBreakAfter>False</PageBreakAfter>
<Items>
<BaseRowItem>
<Location>3, 10</Location>
<Size>699, 40</Size>
<BackColor>White</BackColor>
<DrawBorder>False</DrawBorder>
<ForeColor>ControlText</ForeColor>
<Visible>True</Visible>
<FrameColor>WindowFrame</FrameColor>
<Items>
<BaseDataItem>
<Location>43, 12</Location>
<Size>147, 25</Size>
<BackColor>White</BackColor>
<Font>Microsoft Sans Serif, 10pt</Font>
<FormatString />
<StringTrimming>EllipsisCharacter</StringTrimming>
<ContentAlignment>MiddleLeft</ContentAlignment>
<CanGrow>False</CanGrow>
<CanShrink>False</CanShrink>
<DataType>System.String</DataType>
<Text>First</Text>
<DrawBorder>False</DrawBorder>
<FrameColor>WindowFrame</FrameColor>
<ForeColor>ControlText</ForeColor>
<Visible>True</Visible>
<ColumnName>First</ColumnName>
<Name>unbound1</Name>
</BaseDataItem>
<BaseDataItem>
<Location>231, 12</Location>
<Size>139, 25</Size>
<BackColor>White</BackColor>
<Font>Microsoft Sans Serif, 10pt</Font>
<FormatString />
<StringTrimming>EllipsisCharacter</StringTrimming>
<ContentAlignment>MiddleLeft</ContentAlignment>
<CanGrow>False</CanGrow>
<CanShrink>False</CanShrink>
<DataType>System.String</DataType>
<Text>last</Text>
<DrawBorder>False</DrawBorder>
<FrameColor>WindowFrame</FrameColor>
<ForeColor>ControlText</ForeColor>
<Visible>True</Visible>
<ColumnName>last</ColumnName>
<Name>unbound2</Name>
</BaseDataItem>
<BaseDataItem>
<Location>426, 10</Location>
<Size>216, 25</Size>
<BackColor>White</BackColor>
<Font>Microsoft Sans Serif, 10pt</Font>
<FormatString />
<StringTrimming>EllipsisCharacter</StringTrimming>
<ContentAlignment>MiddleLeft</ContentAlignment>
<CanGrow>False</CanGrow>
<CanShrink>False</CanShrink>
<DataType>System.String</DataType>
<Text>Job</Text>
<DrawBorder>False</DrawBorder>
<FrameColor>WindowFrame</FrameColor>
<ForeColor>ControlText</ForeColor>
<Visible>True</Visible>
<ColumnName>Job</ColumnName>
<NullValue>--------------</NullValue>
<Name>unbound3</Name>
</BaseDataItem>
</Items>
<AlternateBackColor />
<ChangeBackColorEveryNRow>0</ChangeBackColorEveryNRow>
<Name>Row</Name>
</BaseRowItem>
</Items>
<FrameColor>Black</FrameColor>
<Name>ReportDetail</Name>
</BaseSection>
<BaseSection>
<Location>50, 289</Location>
<Size>750, 49</Size>
<BackColor>Window</BackColor>
<SectionOffset>0</SectionOffset>
<SectionMargin>50</SectionMargin>
<DrawBorder>False</DrawBorder>
<PageBreakAfter>False</PageBreakAfter>
<Items>
<BaseTextItem>
<Location>45, 24</Location>
<Size>483, 20</Size>
<BackColor>White</BackColor>
<Font>Microsoft Sans Serif, 8.25pt</Font>
<FormatString />
<StringTrimming>None</StringTrimming>
<ContentAlignment>TopLeft</ContentAlignment>
<CanGrow>False</CanGrow>
<CanShrink>False</CanShrink>
<Text>=Globals!ReportFolder</Text>
<DrawBorder>False</DrawBorder>
<FrameColor>WindowFrame</FrameColor>
<ForeColor>ControlText</ForeColor>
<Visible>True</Visible>
<Name>=Globals!ReportFolder</Name>
</BaseTextItem>
<BaseLineItem>
<Location>45, 3</Location>
<Size>663, 15</Size>
<BackColor>White</BackColor>
<ForeColor>ControlText</ForeColor>
<FromPoint>0, 0</FromPoint>
<ToPoint>656, 0</ToPoint>
<StartLineCap>Flat</StartLineCap>
<EndLineCap>Flat</EndLineCap>
<DashLineCap>Flat</DashLineCap>
<DashStyle>Solid</DashStyle>
<Thickness>2</Thickness>
<Name>object_177a5444_b8e0_4202_87d2_05cdc7cd1194</Name>
</BaseLineItem>
<BaseTextItem>
<Location>602, 24</Location>
<Size>100, 20</Size>
<BackColor>White</BackColor>
<Font>Microsoft Sans Serif, 8.25pt</Font>
<FormatString />
<StringTrimming>None</StringTrimming>
<ContentAlignment>TopLeft</ContentAlignment>
<CanGrow>False</CanGrow>
<CanShrink>False</CanShrink>
<Text>='Page ' + Globals!PageNumber</Text>
<DrawBorder>False</DrawBorder>
<FrameColor>WindowFrame</FrameColor>
<ForeColor>ControlText</ForeColor>
<Visible>True</Visible>
<Name>='Page ' + Globals!PageNumber</Name>
</BaseTextItem>
</Items>
<FrameColor>Black</FrameColor>
<Name>ReportPageFooter</Name>
</BaseSection>
<BaseSection>
<Location>50, 353</Location>
<Size>750, 55</Size>
<BackColor>Window</BackColor>
<SectionOffset>0</SectionOffset>
<SectionMargin>50</SectionMargin>
<DrawBorder>False</DrawBorder>
<PageBreakAfter>False</PageBreakAfter>
<Items />
<FrameColor>Black</FrameColor>
<Name>ReportFooter</Name>
</BaseSection>
</SectionCollection>
</ReportModel>

BIN
samples/SharpDevelopReports/SampleReports/Logos/Bannerbeige2.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

BIN
samples/SharpDevelopReports/SampleReports/Logos/SDLogo_JPG.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

331
samples/SharpDevelopReports/SampleReports/ProviderIndependent/NoConnectionReport.srd

@ -1,331 +0,0 @@ @@ -1,331 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<ReportModel>
<ReportSettings>
<ReportSettings>
<DefaultFont>Microsoft Sans Serif, 10pt</DefaultFont>
<DataModel>PullData</DataModel>
<RightMargin>50</RightMargin>
<UseStandardPrinter>True</UseStandardPrinter>
<SortColumnCollection />
<AvailableFieldsCollection>
<AbstractColumn>
<ColumnName>Kategorie-Nr</ColumnName>
<DataTypeName>System.Int32</DataTypeName>
</AbstractColumn>
<AbstractColumn>
<ColumnName>Kategoriename</ColumnName>
<DataTypeName>System.String</DataTypeName>
</AbstractColumn>
<AbstractColumn>
<ColumnName>Beschreibung</ColumnName>
<DataTypeName>System.String</DataTypeName>
</AbstractColumn>
<AbstractColumn>
<ColumnName>Abbildung</ColumnName>
<DataTypeName>System.Byte[]</DataTypeName>
</AbstractColumn>
</AvailableFieldsCollection>
<NoDataMessage>No Data for this Report</NoDataMessage>
<LeftMargin>50</LeftMargin>
<PageSize>827, 1169</PageSize>
<Padding>5, 5, 5, 5</Padding>
<BottomMargin>50</BottomMargin>
<CommandType>Text</CommandType>
<ParameterCollection>
<BasicParameter>
<ParameterName>p1</ParameterName>
<ParameterValue>aaaaa</ParameterValue>
</BasicParameter>
</ParameterCollection>
<Landscape>False</Landscape>
<ReportName>Report1</ReportName>
<TopMargin>50</TopMargin>
<GroupColumnsCollection />
<GraphicsUnit>Millimeter</GraphicsUnit>
<CommandText>SELECT * FROM Kategorien</CommandText>
<ReportType>DataReport</ReportType>
<ConnectionString />
</ReportSettings>
</ReportSettings>
<SectionCollection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportHeader</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>='Im a ' + p1 + ' Report'</Text>
<Location>194, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Report1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>279, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
</Items>
<Location>50, 50</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportPageHeader</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseRowItem>
<AlternateBackColor />
<FrameColor>WindowFrame</FrameColor>
<Name>AbstractItem</Name>
<Location>5, 5</Location>
<Visible>True</Visible>
<Size>717, 50</Size>
<Padding>0, 0, 0, 0</Padding>
<Items>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>Kategorie-Nr</Text>
<Location>5, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Kategorie-Nr1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>Kategoriename</Text>
<Location>184, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Kategoriename2</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>Beschreibung</Text>
<Location>363, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Beschreibung3</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>Abbildung</Text>
<Location>542, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Abbildung4</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
</Items>
<ChangeBackColorEveryNRow>0</ChangeBackColorEveryNRow>
<BackColor>White</BackColor>
<DrawBorder>False</DrawBorder>
<ForeColor>Black</ForeColor>
</BaseRowItem>
</Items>
<Location>50, 125</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportDetail</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseRowItem>
<AlternateBackColor />
<FrameColor>WindowFrame</FrameColor>
<Name>AbstractItem</Name>
<Location>5, 5</Location>
<Visible>True</Visible>
<Size>717, 50</Size>
<Padding>0, 0, 0, 0</Padding>
<Items>
<BaseDataItem>
<DataType>System.Int32</DataType>
<Text>Kategorie-Nr</Text>
<Font>Microsoft Sans Serif, 10pt</Font>
<Location>10, 10</Location>
<BaseTableName>Table</BaseTableName>
<CanGrow>False</CanGrow>
<ForeColor>Black</ForeColor>
<StringTrimming>None</StringTrimming>
<ColumnName>Kategorie-Nr</ColumnName>
<DrawBorder>False</DrawBorder>
<CanShrink>False</CanShrink>
<ContentAlignment>MiddleLeft</ContentAlignment>
<BackColor>White</BackColor>
<FormatString />
<Name>Kategorie-Nr</Name>
<Visible>True</Visible>
<Size>100, 20</Size>
<FrameColor>WindowFrame</FrameColor>
</BaseDataItem>
<BaseDataItem>
<DataType>System.String</DataType>
<Text>Kategoriename</Text>
<Font>Microsoft Sans Serif, 10pt</Font>
<Location>189, 10</Location>
<BaseTableName>Table</BaseTableName>
<CanGrow>False</CanGrow>
<ForeColor>Black</ForeColor>
<StringTrimming>None</StringTrimming>
<ColumnName>Kategoriename</ColumnName>
<DrawBorder>False</DrawBorder>
<CanShrink>False</CanShrink>
<ContentAlignment>MiddleLeft</ContentAlignment>
<BackColor>White</BackColor>
<FormatString />
<Name>Kategoriename</Name>
<Visible>True</Visible>
<Size>100, 20</Size>
<FrameColor>WindowFrame</FrameColor>
</BaseDataItem>
<BaseDataItem>
<DataType>System.String</DataType>
<Text>Beschreibung</Text>
<Font>Microsoft Sans Serif, 10pt</Font>
<Location>368, 10</Location>
<BaseTableName>Table</BaseTableName>
<CanGrow>False</CanGrow>
<ForeColor>Black</ForeColor>
<StringTrimming>None</StringTrimming>
<ColumnName>Beschreibung</ColumnName>
<DrawBorder>False</DrawBorder>
<CanShrink>False</CanShrink>
<ContentAlignment>MiddleLeft</ContentAlignment>
<BackColor>White</BackColor>
<FormatString />
<Name>Beschreibung</Name>
<Visible>True</Visible>
<Size>100, 20</Size>
<FrameColor>WindowFrame</FrameColor>
</BaseDataItem>
<BaseImageItem>
<ImageSource>Database</ImageSource>
<Location>547, 10</Location>
<Name>Abbildung</Name>
<BaseTableName>Table</BaseTableName>
<Size>100, 20</Size>
<ScaleImageToSize>False</ScaleImageToSize>
<BackColor>White</BackColor>
<ColumnName>Abbildung</ColumnName>
</BaseImageItem>
</Items>
<ChangeBackColorEveryNRow>0</ChangeBackColorEveryNRow>
<BackColor>White</BackColor>
<DrawBorder>False</DrawBorder>
<ForeColor>Black</ForeColor>
</BaseRowItem>
</Items>
<Location>50, 200</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportPageFooter</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>=Globals!PageNumber</Text>
<Location>622, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>PageNumber1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
</Items>
<Location>50, 275</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportFooter</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseTextItem>
<BackColor>Gainsboro</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>='This Report contains : ' + count() + ' DataRows'</Text>
<Location>5, 4</Location>
<ContentAlignment>MiddleCenter</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>AbstractItem</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>620, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
</Items>
<Location>50, 350</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
</SectionCollection>
</ReportModel>

332
samples/SharpDevelopReports/SampleReports/PullModel/Parameter_Aggregate.srd

@ -1,332 +0,0 @@ @@ -1,332 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<ReportModel>
<ReportSettings>
<ReportSettings>
<GridSize>8, 8</GridSize>
<PageSize>827, 1169</PageSize>
<CommandText>SELECT * FROM Kategorien</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>Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\SharpReport_TestReports\TestReports\Nordwind.mdb;Persist Security Info=False</ConnectionString>
<Padding>5, 5, 5, 5</Padding>
<LeftMargin>50</LeftMargin>
<SortColumnCollection />
<DataModel>PullData</DataModel>
<BottomMargin>50</BottomMargin>
<AvailableFieldsCollection>
<AbstractColumn>
<ColumnName>Kategorie-Nr</ColumnName>
<DataTypeName>System.Int32</DataTypeName>
</AbstractColumn>
<AbstractColumn>
<ColumnName>Kategoriename</ColumnName>
<DataTypeName>System.String</DataTypeName>
</AbstractColumn>
<AbstractColumn>
<ColumnName>Beschreibung</ColumnName>
<DataTypeName>System.String</DataTypeName>
</AbstractColumn>
<AbstractColumn>
<ColumnName>Abbildung</ColumnName>
<DataTypeName>System.Byte[]</DataTypeName>
</AbstractColumn>
</AvailableFieldsCollection>
<ReportName>Report1</ReportName>
<ParameterCollection>
<BasicParameter>
<ParameterName>p1</ParameterName>
<ParameterValue>aaaaa</ParameterValue>
</BasicParameter>
</ParameterCollection>
</ReportSettings>
</ReportSettings>
<SectionCollection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportHeader</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>='Report with Parameter : ' + p1</Text>
<Location>235, 19</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Report1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>249, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
</Items>
<Location>50, 50</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportPageHeader</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseRowItem>
<AlternateBackColor />
<FrameColor>WindowFrame</FrameColor>
<Name>AbstractItem</Name>
<Location>5, 5</Location>
<Visible>True</Visible>
<Size>717, 50</Size>
<Padding>0, 0, 0, 0</Padding>
<Items>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>Kategorie-Nr</Text>
<Location>5, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Kategorie-Nr1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>Kategoriename</Text>
<Location>184, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Kategoriename2</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>Beschreibung</Text>
<Location>363, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Beschreibung3</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>Abbildung</Text>
<Location>542, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>Abbildung4</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
</Items>
<ChangeBackColorEveryNRow>0</ChangeBackColorEveryNRow>
<BackColor>White</BackColor>
<DrawBorder>False</DrawBorder>
<ForeColor>Black</ForeColor>
</BaseRowItem>
</Items>
<Location>50, 125</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportDetail</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseRowItem>
<AlternateBackColor />
<FrameColor>WindowFrame</FrameColor>
<Name>AbstractItem</Name>
<Location>5, 5</Location>
<Visible>True</Visible>
<Size>717, 50</Size>
<Padding>0, 0, 0, 0</Padding>
<Items>
<BaseDataItem>
<DataType>System.Int32</DataType>
<Text>Kategorie-Nr</Text>
<Font>Microsoft Sans Serif, 10pt</Font>
<Location>10, 10</Location>
<BaseTableName>Table</BaseTableName>
<CanGrow>False</CanGrow>
<ForeColor>Black</ForeColor>
<StringTrimming>None</StringTrimming>
<ColumnName>Kategorie-Nr</ColumnName>
<DrawBorder>False</DrawBorder>
<CanShrink>False</CanShrink>
<ContentAlignment>MiddleLeft</ContentAlignment>
<BackColor>White</BackColor>
<FormatString />
<Name>Kategorie-Nr</Name>
<Visible>True</Visible>
<Size>100, 20</Size>
<FrameColor>WindowFrame</FrameColor>
</BaseDataItem>
<BaseDataItem>
<DataType>System.String</DataType>
<Text>Kategoriename</Text>
<Font>Microsoft Sans Serif, 10pt</Font>
<Location>189, 10</Location>
<BaseTableName>Table</BaseTableName>
<CanGrow>False</CanGrow>
<ForeColor>Black</ForeColor>
<StringTrimming>None</StringTrimming>
<ColumnName>Kategoriename</ColumnName>
<DrawBorder>False</DrawBorder>
<CanShrink>False</CanShrink>
<ContentAlignment>MiddleLeft</ContentAlignment>
<BackColor>White</BackColor>
<FormatString />
<Name>Kategoriename</Name>
<Visible>True</Visible>
<Size>100, 20</Size>
<FrameColor>WindowFrame</FrameColor>
</BaseDataItem>
<BaseDataItem>
<DataType>System.String</DataType>
<Text>Beschreibung</Text>
<Font>Microsoft Sans Serif, 10pt</Font>
<Location>368, 10</Location>
<BaseTableName>Table</BaseTableName>
<CanGrow>False</CanGrow>
<ForeColor>Black</ForeColor>
<StringTrimming>None</StringTrimming>
<ColumnName>Beschreibung</ColumnName>
<DrawBorder>False</DrawBorder>
<CanShrink>False</CanShrink>
<ContentAlignment>MiddleLeft</ContentAlignment>
<BackColor>Silver</BackColor>
<FormatString />
<Name>Beschreibung</Name>
<Visible>True</Visible>
<Size>100, 20</Size>
<FrameColor>WindowFrame</FrameColor>
</BaseDataItem>
<BaseImageItem>
<ImageSource>Database</ImageSource>
<Location>547, 10</Location>
<Name>Abbildung</Name>
<BaseTableName>Table</BaseTableName>
<Size>100, 20</Size>
<ScaleImageToSize>False</ScaleImageToSize>
<BackColor>White</BackColor>
<ColumnName>Abbildung</ColumnName>
</BaseImageItem>
</Items>
<ChangeBackColorEveryNRow>0</ChangeBackColorEveryNRow>
<BackColor>White</BackColor>
<DrawBorder>False</DrawBorder>
<ForeColor>Black</ForeColor>
</BaseRowItem>
</Items>
<Location>50, 200</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportPageFooter</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseTextItem>
<BackColor>White</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming>
<Text>=Globals!PageNumber</Text>
<Location>622, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>PageNumber1</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
</Items>
<Location>50, 275</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
<BaseSection>
<Size>727, 60</Size>
<Name>ReportFooter</Name>
<PageBreakAfter>False</PageBreakAfter>
<SectionMargin>0</SectionMargin>
<SectionOffset>0</SectionOffset>
<BackColor>White</BackColor>
<Items>
<BaseTextItem>
<BackColor>Gainsboro</BackColor>
<CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming>
<Text>='This Report contains : ' + count() + ' DataRows'</Text>
<Location>15, 3</Location>
<ContentAlignment>MiddleCenter</ContentAlignment>
<Visible>True</Visible>
<DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow>
<FormatString />
<Name>AbstractItem</Name>
<FrameColor>WindowFrame</FrameColor>
<Size>620, 20</Size>
<ForeColor>Black</ForeColor>
</BaseTextItem>
</Items>
<Location>50, 350</Location>
<DrawBorder>False</DrawBorder>
</BaseSection>
</SectionCollection>
</ReportModel>

3
samples/SharpDevelopReports/Samples.txt

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
Samples and documentation can be found in the SharpDevelop Reporting repository:
https://github.com/icsharpcode/SharpDevelopReporting/

20
samples/SharpDevelopReports/Web/BasicReport/Default.aspx

@ -1,20 +0,0 @@ @@ -1,20 +0,0 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Basic Report</title>
</head>
<body>
<form id="form1" runat="server">
<div>
Please click the "Create Report" Button to create the report.<br />
<br />
Requirements: SQL Server 2005 or SQL Server 2005 Express Edition with instance (local)\SQLEXPRESS<br />
<a href="http://www.microsoft.com/downloads/details.aspx?familyid=06616212-0356-46a0-8da2-eebc53a68034&displaylang=en" target="_blank">Northwind Sample Database</a> installed.<br />
<br />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Create Report" /></div>
</form>
</body>
</html>

38
samples/SharpDevelopReports/Web/BasicReport/Default.aspx.cs

@ -1,38 +0,0 @@ @@ -1,38 +0,0 @@
using System;
using System.Web.UI;
// usings for SharpDevelop Reports for .NET
using ICSharpCode.Reports.Core;
using ICSharpCode.Reports.Core.Exporter;
using ICSharpCode.Reports.Core.Exporter.ExportRenderer;
public partial class _Default : Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
// instance reporting engine
// assign parameters
ReportEngine engine = new ReportEngine();
string reportPath = Server.MapPath("SalesByYear.srd");
PageBuilder pageBuilder = engine.CreatePageBuilder(reportPath);
pageBuilder.BuildExportList();
string outputPath = Server.MapPath("SalesByYear.Pdf");
// render report
PdfRenderer pdfRenderer =
PdfRenderer.CreateInstance(pageBuilder.Pages, outputPath, false);
pdfRenderer.Start();
pdfRenderer.RenderOutput();
pdfRenderer.End();
// send report to the client
Response.ContentType = "Application/pdf";
Response.WriteFile(outputPath);
Response.End();
}
}

247
samples/SharpDevelopReports/Web/BasicReport/SalesByYear.srd

@ -1,247 +0,0 @@ @@ -1,247 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Report>
<section name="ICSharpCode.Reports.Core.ReportSettings">
<AvailableColumns>
<column>
<ColumnName value="CategoryName" />
<DataType value="" />
</column>
<column>
<ColumnName value="ProductName" />
<DataType value="" />
</column>
<column>
<ColumnName value="ProductSales" />
<DataType value="" />
</column>
</AvailableColumns>
<ReportType value="DataReport" />
<ConnectionString value="Provider=SQLNCLI.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Northwind;Data Source=(local)\SQLEXPRESS" />
<CommandText value="SELECT [Product Sales for 1997].CategoryName, [Product Sales for 1997].ProductName, [Product Sales for 1997].ProductSales FROM [Product Sales for 1997]" />
<CommandType value="Text" />
<DataModel value="PullData" />
<NoDataMessage value="No Data for this Report" />
<DefaultFont value="Microsoft Sans Serif, 10pt" />
<ReportName value="SalesByYear" />
<DefaultMargins value="50, 50, 50, 50" />
<GridSize value="{Width=8, Height=8}" />
<Padding value="{Left=5,Top=5,Right=5,Bottom=5}" />
</section>
<section name="ReportHeader">
<BackColor value="Color [Window]" />
<Size value="{Width=803, Height=40}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportHeader" />
<Location value="{X=0,Y=0}" />
<controls />
</section>
<section name="ReportPageHeader">
<BackColor value="Color [Window]" />
<Size value="{Width=803, Height=80}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportPageHeader" />
<Location value="{X=0,Y=0}" />
<controls>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportTextItem" basetype="ICSharpCode.Reports.Core.BaseTextItem">
<Location value="{X=50,Y=0}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="SalesByYear" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportTextItem1" />
<Size value="{Width=242, Height=26}" />
<BackColor value="Color [White]" />
</control>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportTextItem" basetype="ICSharpCode.Reports.Core.BaseTextItem">
<Location value="{X=55,Y=40}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="CategoryName" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportTextItem2" />
<Size value="{Width=237, Height=25}" />
<BackColor value="Color [White]" />
</control>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportTextItem" basetype="ICSharpCode.Reports.Core.BaseTextItem">
<Location value="{X=297,Y=40}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="ProductName" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportTextItem3" />
<Size value="{Width=237, Height=25}" />
<BackColor value="Color [White]" />
</control>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportTextItem" basetype="ICSharpCode.Reports.Core.BaseTextItem">
<Location value="{X=539,Y=40}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="ProductSales" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportTextItem4" />
<Size value="{Width=237, Height=25}" />
<BackColor value="Color [White]" />
</control>
</controls>
</section>
<section name="ReportDetail">
<BackColor value="Color [Window]" />
<Size value="{Width=803, Height=40}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportDetail" />
<Location value="{X=0,Y=0}" />
<controls>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportRowItem" basetype="ICSharpCode.Reports.Core.RowItem">
<Size value="{Width=727, Height=35}" />
<Location value="{X=55,Y=0}" />
<Font value="Microsoft Sans Serif, 10pt" />
<AlternateBackColor value="Color [Empty]" />
<ChangeBackColorEveryNRow value="0" />
<Padding value="{Left=5,Top=5,Right=5,Bottom=5}" />
<Items value="ICSharpCode.Reports.Core.ReportItemCollection" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="row1" />
<BackColor value="Color [White]" />
<controls>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportDataItem" basetype="ICSharpCode.Reports.Core.BaseDataItem">
<Size value="{Width=237, Height=25}" />
<Location value="{X=5,Y=5}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="CategoryName" />
<ColumnName value="CategoryName" />
<DataType value="System.String" />
<BaseTableName value="Table" />
<NullValue value="" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportDbTextItem1" />
<BackColor value="Color [White]" />
</control>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportDataItem" basetype="ICSharpCode.Reports.Core.BaseDataItem">
<Size value="{Width=237, Height=25}" />
<Location value="{X=247,Y=5}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="ProductName" />
<ColumnName value="ProductName" />
<DataType value="System.String" />
<BaseTableName value="Table" />
<NullValue value="" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportDbTextItem2" />
<BackColor value="Color [White]" />
</control>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportDataItem" basetype="ICSharpCode.Reports.Core.BaseDataItem">
<Size value="{Width=237, Height=25}" />
<Location value="{X=489,Y=5}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="ProductSales" />
<ColumnName value="ProductSales" />
<DataType value="System.Decimal" />
<BaseTableName value="Table" />
<NullValue value="" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportDbTextItem3" />
<BackColor value="Color [White]" />
</control>
</controls>
</control>
</controls>
</section>
<section name="ReportPageFooter">
<BackColor value="Color [Window]" />
<Size value="{Width=803, Height=40}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportPageFooter" />
<Location value="{X=0,Y=0}" />
<controls>
<control type="ICSharpCode.Reports.Addin.ReportItems.Functions.PageNumber" basetype="ICSharpCode.Reports.Core.BasePageNumber">
<Size value="{Width=242, Height=25}" />
<Location value="{X=50,Y=0}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="Seiten Nummer" />
<LocalizedName value="SharpReport.Toolbar.Functions.PageNumber" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="pageNumber1" />
<BackColor value="Color [White]" />
</control>
</controls>
</section>
<section name="ReportFooter">
<BackColor value="Color [Window]" />
<Size value="{Width=803, Height=40}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportFooter" />
<Location value="{X=0,Y=0}" />
<controls />
</section>
</Report>

43
samples/SharpDevelopReports/Web/BasicReport/Web.Config

@ -1,43 +0,0 @@ @@ -1,43 +0,0 @@
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>

166
samples/SharpDevelopReports/Web/IListReport/ContributorList.srd

@ -1,166 +0,0 @@ @@ -1,166 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Report>
<section name="ICSharpCode.Reports.Core.ReportSettings">
<ReportType value="DataReport" />
<CommandText value="" />
<CommandType value="0" />
<DataModel value="PushData" />
<NoDataMessage value="No Data for this Report" />
<DefaultFont value="Microsoft Sans Serif, 10pt" />
<ReportName value="SharpReport1" />
<DefaultMargins value="50, 50, 50, 50" />
<GridSize value="{Width=8, Height=8}" />
<Padding value="{Left=5,Top=5,Right=5,Bottom=5}" />
</section>
<section name="ReportHeader">
<BackColor value="Color [Window]" />
<Size value="{Width=704, Height=78}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportHeader" />
<Location value="{X=0,Y=0}" />
<controls />
</section>
<section name="ReportPageHeader">
<BackColor value="Color [Window]" />
<Size value="{Width=704, Height=63}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportPageHeader" />
<Location value="{X=0,Y=0}" />
<controls>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportTextItem" basetype="ICSharpCode.Reports.Core.BaseTextItem">
<Location value="{X=82,Y=10}" />
<Font value="Microsoft Sans Serif, 20pt, style=Bold" />
<Text value="Some Members of the SharpDevelop Team" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleCenter" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportTextItem1" />
<Size value="{Width=633, Height=39}" />
<BackColor value="Color [Silver]" />
</control>
</controls>
</section>
<section name="ReportDetail">
<BackColor value="Color [Window]" />
<Size value="{Width=704, Height=51}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportDetail" />
<Location value="{X=0,Y=0}" />
<controls>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportRowItem" basetype="ICSharpCode.Reports.Core.RowItem">
<Size value="{Width=650, Height=30}" />
<Location value="{X=77,Y=3}" />
<Font value="Microsoft Sans Serif, 10pt" />
<AlternateBackColor value="Color [Empty]" />
<ChangeBackColorEveryNRow value="0" />
<Padding value="{Left=0,Top=0,Right=0,Bottom=0}" />
<Items value="ICSharpCode.Reports.Core.ReportItemCollection" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="row1" />
<BackColor value="Color [White]" />
<controls>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportDataItem" basetype="ICSharpCode.Reports.Core.BaseDataItem">
<Size value="{Width=176, Height=22}" />
<Location value="{X=5,Y=5}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="First" />
<ColumnName value="First" />
<DataType value="System.String" />
<BaseTableName value="" />
<NullValue value="" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportDbTextItem1" />
<BackColor value="Color [White]" />
</control>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportDataItem" basetype="ICSharpCode.Reports.Core.BaseDataItem">
<Size value="{Width=180, Height=20}" />
<Location value="{X=190,Y=5}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="Last" />
<ColumnName value="Last" />
<DataType value="System.String" />
<BaseTableName value="" />
<NullValue value="" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportDbTextItem2" />
<BackColor value="Color [White]" />
</control>
<control type="ICSharpCode.Reports.Addin.ReportItems.ReportDataItem" basetype="ICSharpCode.Reports.Core.BaseDataItem">
<Size value="{Width=100, Height=20}" />
<Location value="{X=400,Y=5}" />
<Font value="Microsoft Sans Serif, 10pt" />
<Text value="Job" />
<ColumnName value="Job" />
<DataType value="System.String" />
<BaseTableName value="" />
<NullValue value="" />
<FormatString value="" />
<StringTrimming value="EllipsisCharacter" />
<ContentAlignment value="MiddleLeft" />
<DrawBorder value="False" />
<ForeColor value="Color [ControlText]" />
<Visible value="True" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="reportDbTextItem3" />
<BackColor value="Color [White]" />
</control>
</controls>
</control>
</controls>
</section>
<section name="ReportPageFooter">
<BackColor value="Color [Window]" />
<Size value="{Width=704, Height=47}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportPageFooter" />
<Location value="{X=0,Y=0}" />
<controls />
</section>
<section name="ReportFooter">
<BackColor value="Color [Window]" />
<Size value="{Width=704, Height=55}" />
<SectionMargin value="50" />
<PageBreakAfter value="False" />
<CanGrow value="False" />
<CanShrink value="False" />
<Name value="ReportFooter" />
<Location value="{X=0,Y=0}" />
<controls />
</section>
</Report>

17
samples/SharpDevelopReports/Web/IListReport/Default.aspx

@ -1,17 +0,0 @@ @@ -1,17 +0,0 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Basic Report</title>
</head>
<body>
<form id="form1" runat="server">
<div>
Please click the "Create Report" Button to create the report.<br />
<br />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Create Report" /></div>
</form>
</body>
</html>

113
samples/SharpDevelopReports/Web/IListReport/Default.aspx.cs

@ -1,113 +0,0 @@ @@ -1,113 +0,0 @@
using System;
using System.Collections.Generic;
using System.Web.UI;
// usings for SharpDevelop Reports for .NET
using ICSharpCode.Reports.Core;
using ICSharpCode.Reports.Core.Exporter;
using ICSharpCode.Reports.Core.Exporter.ExportRenderer;
public partial class _Default : Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
contributors = CreateTestList();
// instance reporting engine
// assign parameters
ReportEngine engine = new ReportEngine();
string reportPath = Server.MapPath("ContributorList.srd");
ReportModel reportModel = ReportEngine.LoadReportModel(reportPath);
PageBuilder pageBuilder = engine.CreatePageBuilder(reportModel, contributors);
pageBuilder.BuildExportList();
string outputPath = Server.MapPath("ContributorList.pdf");
// render report
PdfRenderer pdfRenderer =
PdfRenderer.CreateInstance(pageBuilder.Pages, outputPath, false);
pdfRenderer.Start();
pdfRenderer.RenderOutput();
pdfRenderer.End();
// send report to the client
Response.ContentType = "Application/pdf";
Response.WriteFile(outputPath);
Response.End();
}
private TestList contributors;
public TestList Contributors
{
get { return contributors; }
}
private TestList CreateTestList()
{
TestList list = new TestList();
list.Add(new LastFirst("Christoph", "Wille", "Senior Project Wrangler"));
list.Add(new LastFirst("Bernhard", "Spuida", "Senior Project Wrangler"));
list.Add(new LastFirst("Daniel", "Grunwald", "Technical Lead"));
list.Add(new LastFirst("Matt", "Ward", "NUnit"));
list.Add(new LastFirst("David", "Srbecky", "Debugger"));
list.Add(new LastFirst("Peter", "Forstmeier", "SharpReport"));
list.Add(new LastFirst("Markus", "Palme", "Prg."));
list.Add(new LastFirst("Georg", "Brandl", "Prg."));
list.Add(new LastFirst("Roman", "Taranchenko", ""));
list.Add(new LastFirst("Denis", "Erchoff", ""));
list.Add(new LastFirst("Ifko", "Kovacka", ""));
list.Add(new LastFirst("Nathan", "Allen", ""));
list.Add(new LastFirst("Dickon", "Field", "DBTools"));
list.Add(new LastFirst("Troy", "Simpson", "Prg."));
list.Add(new LastFirst("David", "Alpert", "Prg."));
return list;
}
public class LastFirst
{
private string last;
private string first;
private string job;
public LastFirst(string last, string first, string job)
{
this.last = last;
this.first = first;
this.job = job;
}
public string Last
{
get { return last; }
}
public string First
{
get { return first; }
}
public string Job
{
get { return job; }
}
}
public class TestList : List<LastFirst>
{
}
}

44
samples/SharpDevelopReports/Web/IListReport/Web.Config

@ -1,44 +0,0 @@ @@ -1,44 +0,0 @@
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config.comments usually located in
\Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows"/>
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
</system.web>
</configuration>

3
samples/SharpDevelopReports/doc/ReadMe.txt

@ -1,3 +0,0 @@ @@ -1,3 +0,0 @@
The Getting Started Guide is located here:
http://sharpdevelopreports.net/FeatureTour.ashx

31
samples/SharpDevelopReports/src/AssemblyInfo.cs

@ -1,31 +0,0 @@ @@ -1,31 +0,0 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Information about this assembly is defined by the following
// attributes.
//
// change them to the information which is associated with the assembly
// you compile.
[assembly: AssemblyTitle("SharpReportSamples")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SharpReportSamples")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]
// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all values by your own or you can build default build and revision
// numbers with the '*' character (the default):
[assembly: AssemblyVersion("1.0.*")]

37
samples/SharpDevelopReports/src/ReportSamples.sln

@ -1,37 +0,0 @@ @@ -1,37 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
# SharpDevelop 4.2.0.7716-alpha
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpReportSamples", "SharpReportSamples\SharpReportSamples.csproj", "{BB5D34DA-3561-48B1-894A-46765C2A18C1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.Reports.Core", "..\..\..\src\AddIns\Misc\Reports\ICSharpCode.Reports.Core\ICSharpCode.Reports.Core.csproj", "{4B2239FF-8FD6-431D-9D22-1B8049BA6917}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BB5D34DA-3561-48B1-894A-46765C2A18C1}.Debug|Any CPU.Build.0 = Debug|x86
{BB5D34DA-3561-48B1-894A-46765C2A18C1}.Debug|Any CPU.ActiveCfg = Debug|x86
{BB5D34DA-3561-48B1-894A-46765C2A18C1}.Release|Any CPU.Build.0 = Release|x86
{BB5D34DA-3561-48B1-894A-46765C2A18C1}.Release|Any CPU.ActiveCfg = Release|x86
{BB5D34DA-3561-48B1-894A-46765C2A18C1}.Debug|x86.Build.0 = Debug|x86
{BB5D34DA-3561-48B1-894A-46765C2A18C1}.Debug|x86.ActiveCfg = Debug|x86
{BB5D34DA-3561-48B1-894A-46765C2A18C1}.Release|x86.Build.0 = Release|x86
{BB5D34DA-3561-48B1-894A-46765C2A18C1}.Release|x86.ActiveCfg = Release|x86
{4B2239FF-8FD6-431D-9D22-1B8049BA6917}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4B2239FF-8FD6-431D-9D22-1B8049BA6917}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4B2239FF-8FD6-431D-9D22-1B8049BA6917}.Debug|x86.Build.0 = Debug|Any CPU
{4B2239FF-8FD6-431D-9D22-1B8049BA6917}.Debug|x86.ActiveCfg = Debug|Any CPU
{4B2239FF-8FD6-431D-9D22-1B8049BA6917}.Release|Any CPU.Build.0 = Release|Any CPU
{4B2239FF-8FD6-431D-9D22-1B8049BA6917}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4B2239FF-8FD6-431D-9D22-1B8049BA6917}.Release|x86.Build.0 = Release|Any CPU
{4B2239FF-8FD6-431D-9D22-1B8049BA6917}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

86
samples/SharpDevelopReports/src/SharpReportSamples/ContributorsList.cs

@ -1,86 +0,0 @@ @@ -1,86 +0,0 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: Peter Forstmeier
* Datum: 07.01.2010
* Zeit: 19:46
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
using System.Collections.Generic;
using ICSharpCode.Reports.Core;
namespace SharpReportSamples
{
/// <summary>
/// Description of ContributorsList.
/// </summary>
public class ContributorsReportData
{
public static ContributorCollection CreateContributorsList () {
ContributorCollection list = new ContributorCollection();
list.Add(new Contributor("Christoph","Wille","Senior Project Wrangler"));
list.Add(new Contributor("Bernhard","Spuida","Senior Project Wrangler"));
list.Add(new Contributor("Daniel","Grunwald","Technical Lead"));
list.Add(new Contributor("Matt","Ward","NUnit"));
list.Add(new Contributor("David","Srbecky","Debugger"));
list.Add(new Contributor("Peter","Forstmeier","SharpDevelop.Reports"));
list.Add(new Contributor("Markus","Palme","Prg."));
list.Add(new Contributor("Itai","Bar-Haim","Prg."));
list.Add(new Contributor("Russel","Wilkins","Prg."));
list.Add(new Contributor("Justin","Dearing","Prg."));
list.Add(new Contributor("Christian","Hornung","Prg."));
list.Add(new Contributor("Siegfried","Pammer","Prg."));
list.Add(new Contributor("Georg","Brandl","Prg."));
list.Add(new Contributor("Roman","Taranchenko",""));
list.Add(new Contributor("Denis","Erchoff",""));
list.Add(new Contributor("Ifko","Kovacka",""));
list.Add(new Contributor("Nathan","Allen",""));
list.Add(new Contributor("Troy","Simpson","Prg."));
list.Add(new Contributor("David","Alpert","Prg."));
list.Add(new Contributor("Fred","Flintstone",null));
return list;
}
}
public class Contributor {
string last;
string first;
string job;
public Contributor(string last, string first,string job)
{
this.last = last;
this.first = first;
this.job = job;
}
public string Last {
get {
return last;
}
}
public string First {
get {
return first;
}
}
public string Job {
get {
return job;
}
}
}
public class ContributorCollection: List<Contributor>{
}
}

94
samples/SharpDevelopReports/src/SharpReportSamples/EventLogger.cs

@ -1,94 +0,0 @@ @@ -1,94 +0,0 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: Peter Forstmeier
* Datum: 24.03.2010
* Zeit: 19:45
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
using System.Collections;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
namespace SharpReportSamples
{
/// <summary>
/// Description of EventLogger.
/// </summary>
public class EventLogger
{
ImageList imageList ;
string fileName;
public EventLogger(string fileName)
{
this.fileName = fileName;
this.Run();
}
private void Run() {
EventLog ev = new EventLog();
ev.Log = "System";
ev.MachineName = "."; // Lokale Maschine
FillImageList();
ArrayList ar = new ArrayList();
foreach (System.Diagnostics.EventLogEntry entry in ev.Entries)
{
if (entry.TimeWritten > DateTime.Now.AddDays(-1))
{
ar.Add(entry);
}
}
this.EventLog = ar;
}
// using (var provider = ProfilingDataSQLiteProvider.FromFile("ProfilingSession.sdps"))
// var functions = provider.GetFunctions(0, provider.DataSets.Count - 1);
// foreach (CallTreeNode n in functions) Console.WriteLine("{0}: {1} calls, {2:f2}ms", n.Name, n.CallCount, n.TimeSpent);
private void FillImageList() {
string ns = this.GetType().Namespace;
// System.Console.WriteLine("{0}",ns);
Assembly a = Assembly.GetExecutingAssembly();
string [] resNames = a.GetManifestResourceNames();
// foreach(string s in resNames)
// {
// System.Console.WriteLine("{0}",s);
// }
this.imageList = new ImageList();
Stream imgStream = a.GetManifestResourceStream("SharpReportSamples.Resources.error.ico");
// Stream imgStream = a.GetManifestResourceStream("SharpReportSamples.Resources.Error.png");
this.imageList.Images.Add(Image.FromStream(imgStream));
imgStream = a.GetManifestResourceStream("SharpReportSamples.Resources.Info.png");
this.imageList.Images.Add(Image.FromStream(imgStream));
imgStream = a.GetManifestResourceStream("SharpReportSamples.Resources.warning.ico");
// imgStream = a.GetManifestResourceStream("SharpReportSamples.Resources.Warning.png");
this.imageList.Images.Add(Image.FromStream(imgStream));
// System.Console.WriteLine("imagelist contains {0} images",this.imageList.Images.Count);
}
public ArrayList EventLog {get;set;}
public ImageList Images
{
get {return this.imageList;}
}
}
}

163
samples/SharpDevelopReports/src/SharpReportSamples/MainForm.Designer.cs generated

@ -1,163 +0,0 @@ @@ -1,163 +0,0 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: Peter Forstmeier
* Datum: 03.01.2010
* Zeit: 17:43
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
namespace SharpReportSamples
{
partial class MainForm
{
/// <summary>
/// Designer variable used to keep track of non-visual components.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Disposes resources used by the form.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing) {
if (components != null) {
components.Dispose();
}
}
base.Dispose(disposing);
}
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent()
{
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("FormSheet");
System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("PullModel");
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("PushModel-IList");
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("Provider Independent");
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("Customized");
System.Windows.Forms.TreeNode treeNode6 = new System.Windows.Forms.TreeNode("StoredProcedure");
System.Windows.Forms.TreeNode treeNode7 = new System.Windows.Forms.TreeNode("Sample Reports", new System.Windows.Forms.TreeNode[] {
treeNode1,
treeNode2,
treeNode3,
treeNode4,
treeNode5,
treeNode6});
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.treeView1 = new System.Windows.Forms.TreeView();
this.label1 = new System.Windows.Forms.Label();
this.previewControl1 = new ICSharpCode.Reports.Core.ReportViewer.PreviewControl();
this.menuStrip2 = new System.Windows.Forms.MenuStrip();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
this.SuspendLayout();
//
// splitContainer1
//
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitContainer1.Location = new System.Drawing.Point(0, 24);
this.splitContainer1.Name = "splitContainer1";
//
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.Controls.Add(this.treeView1);
this.splitContainer1.Panel1.Padding = new System.Windows.Forms.Padding(10);
//
// splitContainer1.Panel2
//
this.splitContainer1.Panel2.Controls.Add(this.label1);
this.splitContainer1.Panel2.Controls.Add(this.previewControl1);
this.splitContainer1.Panel2.Padding = new System.Windows.Forms.Padding(10, 10, 10, 5);
this.splitContainer1.Size = new System.Drawing.Size(841, 464);
this.splitContainer1.SplitterDistance = 168;
this.splitContainer1.TabIndex = 0;
//
// treeView1
//
this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.treeView1.Location = new System.Drawing.Point(10, 10);
this.treeView1.Margin = new System.Windows.Forms.Padding(5);
this.treeView1.Name = "treeView1";
treeNode1.Name = "FormSheetNode";
treeNode1.Text = "FormSheet";
treeNode2.Name = "PullModelNode";
treeNode2.Text = "PullModel";
treeNode3.Name = "IListNode";
treeNode3.Text = "PushModel-IList";
treeNode4.Name = "ProviderIndependedNode";
treeNode4.Text = "Provider Independent";
treeNode5.Name = "CustomizedNode";
treeNode5.Text = "Customized";
treeNode6.Name = "StoredProcedure";
treeNode6.Text = "StoredProcedure";
treeNode7.Name = "Customized";
treeNode7.Text = "Sample Reports";
this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
treeNode7});
this.treeView1.Size = new System.Drawing.Size(148, 444);
this.treeView1.TabIndex = 0;
this.treeView1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.TreeView1MouseDoubleClick);
//
// label1
//
this.label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label1.Location = new System.Drawing.Point(10, 436);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(649, 23);
this.label1.TabIndex = 3;
this.label1.Text = "label1";
//
// previewControl1
//
this.previewControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.previewControl1.BackColor = System.Drawing.SystemColors.GradientActiveCaption;
this.previewControl1.Location = new System.Drawing.Point(10, 10);
this.previewControl1.Margin = new System.Windows.Forms.Padding(3, 3, 30, 3);
this.previewControl1.Messages = null;
this.previewControl1.Name = "previewControl1";
this.previewControl1.Padding = new System.Windows.Forms.Padding(5);
this.previewControl1.Size = new System.Drawing.Size(649, 414);
this.previewControl1.TabIndex = 2;
//
// menuStrip2
//
this.menuStrip2.Location = new System.Drawing.Point(0, 0);
this.menuStrip2.Name = "menuStrip2";
this.menuStrip2.Size = new System.Drawing.Size(841, 24);
this.menuStrip2.TabIndex = 1;
this.menuStrip2.Text = "menuStrip2";
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(841, 488);
this.Controls.Add(this.splitContainer1);
this.Controls.Add(this.menuStrip2);
this.Name = "MainForm";
this.Text = "SharpReportSamples";
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
private System.Windows.Forms.Label label1;
private System.Windows.Forms.MenuStrip menuStrip2;
private ICSharpCode.Reports.Core.ReportViewer.PreviewControl previewControl1;
private System.Windows.Forms.TreeView treeView1;
private System.Windows.Forms.SplitContainer splitContainer1;
}
}

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

@ -1,446 +0,0 @@ @@ -1,446 +0,0 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: Peter Forstmeier
* Datum: 03.01.2010
* Zeit: 17:43
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using ICSharpCode.Reports.Core;
using ICSharpCode.Reports.Core.Exporter.ExportRenderer;
using ICSharpCode.Reports.Core.Globals;
namespace SharpReportSamples
{
/// <summary>
/// Description of MainForm.
/// </summary>
public partial class MainForm : Form
{
private TreeNode formNode;
private TreeNode pullNode;
private TreeNode iListNode;
private TreeNode providerIndependent;
private TreeNode customized;
private TreeNode storedProcedure;
private ImageList imageList;
public MainForm()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
InitTree();
UpdateStatusbar (Application.StartupPath);
this.previewControl1.Messages = new ReportViewerMessagesProvider();
}
private void InitTree ()
{
string formSheetDir = @"\FormSheet\JCA.srd";
string startupPath = Application.StartupPath;
string samplesDir = @"SharpDevelopReports\";
int i = startupPath.IndexOf(samplesDir);
string startPath = startupPath.Substring(0,i + samplesDir.Length) + @"SampleReports\";
string pathToFormSheet = startPath + formSheetDir;
this.formNode = this.treeView1.Nodes[0].Nodes[0];
this.pullNode = this.treeView1.Nodes[0].Nodes[1];
this.iListNode = this.treeView1.Nodes[0].Nodes[2];
this.providerIndependent = this.treeView1.Nodes[0].Nodes[3];
this.customized = this.treeView1.Nodes[0].Nodes[4];
this.storedProcedure = this.treeView1.Nodes[0].Nodes[5];
AddNodesToTree (this.formNode,startPath + @"FormSheet\" );
AddNodesToTree (this.pullNode,startPath + @"PullModel\" );
AddNodesToTree (this.iListNode,startPath + @"IList\" );
AddNodesToTree (this.providerIndependent,startPath + @"ProviderIndependent\" );
AddNodesToTree (this.customized,startPath + @"Customized\" );
AddNodesToTree (this.storedProcedure,startPath + @"StoredProcedure\" );
}
private void AddNodesToTree (TreeNode parent,string path)
{
if (!Directory.Exists(path)) {
return;
}
string[] filePaths = Directory.GetFiles(path, "*.srd");
TreeNode reportNode = null;
foreach (string fullPath in filePaths){
string fileName = Path.GetFileNameWithoutExtension(fullPath);
reportNode = new TreeNode(fileName);
reportNode.Tag = fullPath;
parent.Nodes.Add(reportNode);
}
}
private void UpdateStatusbar (string text)
{
this.label1.Text = text;
}
private void RunStandardReport(string reportName)
{
string s = Path.GetFileNameWithoutExtension(reportName);
if (s == "ContributorsList" ) {
this.RunContributors(reportName);
}
else if (s == "ContributorsListWithParameters"){
this.RunContributorsWithParameters(reportName);
}
else if (s == "SalesByYear_2Params") {
{
StoredProcedureWithParam(reportName);
}
}
else if (s == "NoConnectionReport") {
this.RunProviderIndependent(reportName);
} else if (s =="EventLog")
this.RunEventLogger_Pdf(reportName);
else {
ReportParameters parameters = ReportEngine.LoadParameters(reportName);
if ((parameters != null)&& (parameters.Parameters.Count > 0)){
parameters.Parameters[0].ParameterValue = "I'm the Parameter";
}
this.previewControl1.PreviewLayoutChanged += delegate (object sender, EventArgs e)
{
this.RunStandardReport(reportName);
};
this.previewControl1.RunReport(reportName,parameters);
}
}
#region ProviderIndependent
private void RunProviderIndependent (string reportName)
{
string conOleDbString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\SharpReport_TestReports\TestReports\Nordwind.mdb;Persist Security Info=False";
ReportParameters parameters = ReportEngine.LoadParameters(reportName);
ConnectionObject con = ConnectionObject.CreateInstance(conOleDbString,
System.Data.Common.DbProviderFactories.GetFactory("System.Data.OleDb") );
parameters.ConnectionObject = con;
parameters.Parameters[0].ParameterValue = "Provider Independent";
this.previewControl1.PreviewLayoutChanged += delegate (object sender, EventArgs e)
{
this.RunProviderIndependent(reportName);
};
this.previewControl1.RunReport(reportName,parameters);
}
#endregion
#region StoredProcedure
void StoredProcedureWithParam(string fileName)
{
var model = ReportEngine.LoadReportModel(fileName);
ReportParameters parameters = ReportEngine.LoadParameters(fileName);
// The report has no sorting, so we can add it by code
parameters.SortColumnCollection.Add (new SortColumn("ShippedDate",
System.ComponentModel.ListSortDirection.Ascending));
parameters.SqlParameters[0].ParameterValue = new System.DateTime(1997,11,01).ToString();
parameters.SqlParameters[1].ParameterValue = new System.DateTime(1997,12,31).ToString();
this.previewControl1.PreviewLayoutChanged += delegate (object sender, EventArgs e)
{
this.previewControl1.RunReport(fileName,parameters);
};
this.previewControl1.RunReport(fileName,parameters);
}
#endregion
#region Contributors
//
/// <summary>
/// Some values in the Datastructure are not set (means they are null), you can handle this values by setting
/// the NullValue in the properties of this Item, or, you can use the SectionRenderingEvent as shown
/// below
/// </summary>
/// <param name="fileName"></param>
private void RunContributors (string fileName)
{
ReportModel model = ReportEngine.LoadReportModel(fileName);
// Console.WriteLine(model.ReportSettings.PageSize);
// model.ReportSettings.PageSize = new Size(model.ReportSettings.PageSize.Width,400);
// Console.WriteLine(model.ReportSettings.PageSize);
// sorting is done here, but, be carefull, misspelled fieldnames will cause an exception
//ReportSettings settings = model.ReportSettings;
//settings.SortColumnCollection.Add(new SortColumn("First",System.ComponentModel.ListSortDirection.Ascending));
// Both variable declarations are valid
ContributorCollection contributorCollection = ContributorsReportData.CreateContributorsList();
IDataManager dataManager = DataManager.CreateInstance(contributorCollection,model.ReportSettings);
// List<Contributor> list = ContributorsReportData.CreateContributorsList();
// IDataManager dm = DataManager.CreateInstance(list,model.ReportSettings);
this.previewControl1.PreviewLayoutChanged += delegate (object sender, EventArgs e)
{
this.previewControl1.RunReport(model,dataManager);
};
this.previewControl1.RunReport(model,dataManager);
}
private void V1_RunContributorsWithParameters(string fileName)
{
ReportModel model = ReportEngine.LoadReportModel(fileName);
ReportParameters parameters = ReportEngine.LoadParameters(fileName);
BasicParameter p1 = parameters.Parameters[0];
p1.ParameterValue ="Value of Parameter";
List<Contributor> list = ContributorsReportData.CreateContributorsList();
this.previewControl1.PreviewLayoutChanged += delegate (object sender, EventArgs e)
{
this.previewControl1.RunReport(model,list,parameters);
};
this.previewControl1.RunReport(model,list,parameters);
}
// Can use this version for Parameters as well
private void V2_RunContributorsWithParameters(string fileName)
{
var model = ReportEngine.LoadReportModel(fileName);
ReportParameters parameters = ReportEngine.LoadParameters(fileName);
BasicParameter p1 = parameters.Parameters[0];
p1.ParameterValue ="Value of Parameter";
List<Contributor> list = ContributorsReportData.CreateContributorsList();
IDataManager dataManager = DataManager.CreateInstance(list,model.ReportSettings);
this.previewControl1.PreviewLayoutChanged += delegate (object sender, EventArgs e)
{
this.previewControl1.RunReport(model,dataManager);
};
this.previewControl1.RunReport(model,dataManager);
}
private void RunContributorsWithParameters(string fileName)
{
var model = ReportEngine.LoadReportModel(fileName);
ReportParameters parameters = ReportEngine.LoadParameters(fileName);
BasicParameter p1 = parameters.Parameters[0];
p1.ParameterValue ="Value of Parameter";
List<Contributor> list = ContributorsReportData.CreateContributorsList();
IReportCreator creator = ReportEngine.CreatePageBuilder(model,list,parameters);
creator.SectionRendering += PushPrinting;
creator.BuildExportList();
using (PdfRenderer pdfRenderer = PdfRenderer.CreateInstance(creator,SelectFilename(),true))
{
pdfRenderer.Start();
pdfRenderer.RenderOutput();
pdfRenderer.End();
}
}
private void RunEventLogger_Pdf (string fileName)
{
Cursor.Current = Cursors.WaitCursor;
EventLogger eventLogger = new EventLogger(fileName);
Cursor.Current = Cursors.Default;
this.imageList = eventLogger.Images;
ReportModel model = ReportEngine.LoadReportModel(fileName);
IReportCreator creator = ReportEngine.CreatePageBuilder(model,eventLogger.EventLog,null);
creator.SectionRendering += PushPrinting;
creator.BuildExportList();
using (PdfRenderer pdfRenderer = PdfRenderer.CreateInstance(creator,SelectFilename(),true))
{
pdfRenderer.Start();
pdfRenderer.RenderOutput();
pdfRenderer.End();
}
}
private void RunEventLogger (string fileName)
{
/*
using (var provider = ProfilingDataSQLiteProvider.FromFile("ProfilingSession.sdps")){
var functions = provider.GetFunctions(0, provider.DataSets.Count - 1);
foreach (CallTreeNode n in functions) {
Console.WriteLine("{0}: {1} calls, {2:f2}ms", n.Name, n.CallCount, n.TimeSpent);
}
}
*/
Cursor.Current = Cursors.WaitCursor;
EventLogger eLog = new EventLogger(fileName);
Cursor.Current = Cursors.Default;
this.imageList = eLog.Images;
ReportModel model = ReportEngine.LoadReportModel(fileName);
IDataManager dataManager = DataManager.CreateInstance(eLog.EventLog,model.ReportSettings);
// this.previewControl1.SectionRendering += PushPrinting;
this.previewControl1.PreviewLayoutChanged += delegate (object sender, EventArgs e)
{
this.previewControl1.RunReport(model,dataManager);
};
this.previewControl1.RunReport(model,dataManager);
}
//Handles SectionRenderEvent
int hour = 0;
private void PushPrinting (object sender, SectionRenderEventArgs e )
{
string sectionName = e.Section.Name;
if (sectionName == ReportSectionNames.ReportHeader) {
Console.WriteLine("PushPrinting :" + ReportSectionNames.ReportHeader);
}
else if (sectionName == ReportSectionNames.ReportPageHeader) {
Console.WriteLine("PushPrinting :" +ReportSectionNames .ReportPageHeader);
}
else if (sectionName == ReportSectionNames.ReportDetail){
Console.WriteLine("PushPrinting :" + ReportSectionNames.ReportDetail);
// TimeWritten
BaseDataItem time = e.Section.FindItem("BaseDataItem1") as BaseDataItem;
if (time != null) {
DateTime dateTime = Convert.ToDateTime(time.DBValue);
int newhour = dateTime.Hour;
if (hour != newhour) {
hour = newhour;
// e.Section.Items[0].DrawBorder = true;
e.Section.Items[0].FrameColor = Color.Black;
// e.Section.Items[0].BackColor = Color.LightGray;
time.DBValue = dateTime.Hour.ToString();
time.ContentAlignment = ContentAlignment.MiddleLeft;
} else {
// time.DrawBorder = false;
e.Section.Items[0].FrameColor = Color.White;
// e.Section.Items[0].BackColor = Color.White;
time.DBValue = dateTime.Minute.ToString() + ":" + dateTime.Second.ToString();
time.ContentAlignment = ContentAlignment.MiddleRight;
}
}
// D:\SharpDevelop3.0_WorkingCopy\SharpDevelop\samples\SharpDevelopReports\SampleReports\EventLogger\Error.png
// Image
BaseDataItem dataItem = e.Section.FindItem("EntryType") as BaseDataItem;
if (dataItem != null) {
string str = dataItem.DBValue;
Image image = null;
if (str == "Information") {
image = this.imageList.Images[1];
} else if (str == "Warning") {
image = this.imageList.Images[2];
} else if (str == "Error")
{
image = this.imageList.Images[0];
}
if (image != null)
{
BaseImageItem imageItem = e.Section.FindItem("BaseImageItem1") as BaseImageItem;
if (imageItem != null) {
imageItem.Image = image;
}
}
}
}
else if (sectionName == ReportSectionNames.ReportPageFooter){
Console.WriteLine("PushPrinting :" + ReportSectionNames.ReportPageFooter);
}
else if (sectionName == ReportSectionNames.ReportFooter){
Console.WriteLine("PushPrinting :" + ReportSectionNames.ReportFooter);
}
else{
throw new WrongSectionException(sectionName);
}
}
private string SelectFilename()
{
using (SaveFileDialog saveDialog = new SaveFileDialog()){
saveDialog.FileName = "_pdf";
saveDialog.DefaultExt = "PDF";
saveDialog.ValidateNames = true;
if(saveDialog.ShowDialog() == DialogResult.OK){
return saveDialog.FileName;
} else {
return String.Empty;
}
}
}
#endregion
void TreeView1MouseDoubleClick(object sender, MouseEventArgs e)
{
TreeNode selectedNode = this.treeView1.SelectedNode;
if (selectedNode != null) {
RunStandardReport(selectedNode.Tag.ToString());
}
}
}
}

126
samples/SharpDevelopReports/src/SharpReportSamples/MainForm.resx

@ -1,126 +0,0 @@ @@ -1,126 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="menuStrip2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>237, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>25</value>
</metadata>
</root>

31
samples/SharpDevelopReports/src/SharpReportSamples/Program.cs

@ -1,31 +0,0 @@ @@ -1,31 +0,0 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: Peter Forstmeier
* Datum: 03.01.2010
* Zeit: 17:43
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
using System.Windows.Forms;
namespace SharpReportSamples
{
/// <summary>
/// Class with program entry point.
/// </summary>
internal sealed class Program
{
/// <summary>
/// Program entry point.
/// </summary>
[STAThread]
private static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
}
}

31
samples/SharpDevelopReports/src/SharpReportSamples/Properties/AssemblyInfo.cs

@ -1,31 +0,0 @@ @@ -1,31 +0,0 @@
#region Using directives
using System;
using System.Reflection;
using System.Runtime.InteropServices;
#endregion
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("SharpReportSamples")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SharpReportSamples")]
[assembly: AssemblyCopyright("Copyright 2010")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.
[assembly: ComVisible(false)]
// The assembly version has following format :
//
// Major.Minor.Build.Revision
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.*")]

77
samples/SharpDevelopReports/src/SharpReportSamples/ReportViewerMessagesProvider.cs

@ -1,77 +0,0 @@ @@ -1,77 +0,0 @@
/*
* Erstellt mit SharpDevelop.
* Benutzer: Peter Forstmeier
* Datum: 14.01.2010
* Zeit: 20:08
*
* Sie können diese Vorlage unter Extras > Optionen > Codeerstellung > Standardheader ändern.
*/
using System;
namespace SharpReportSamples
{
/// <summary>
/// Description of ReportViewerMessagesProvider.
/// </summary>
public class ReportViewerMessagesProvider:ICSharpCode.Reports.Core.ReportViewer.IReportViewerMessages
{
public ReportViewerMessagesProvider(){
}
public string BackButtonText {
get {
return "Back";
}
}
public string NextButtonMessage {
get {
return "Forward";
}
}
public string PrintButtonMessage {
get {
return "Printer";
}
}
public string CancelButtonMessage {
get {
return "Stop";
}
}
public string ZoomMessage {
get {
return "Zoom";
}
}
public string PagesCreatedMessage {
get{
return "Pages created";
}
}
public string PdfFileMessage {
get{
return "Create PdfFile";
}
}
public string FirstPageMessage {
get {
return "FirstPage";
}
}
public string LastPageMessage {
get {
return "LastPage";
}
}
}
}

BIN
samples/SharpDevelopReports/src/SharpReportSamples/Resources/Info.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

BIN
samples/SharpDevelopReports/src/SharpReportSamples/Resources/error.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

BIN
samples/SharpDevelopReports/src/SharpReportSamples/Resources/warning.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

80
samples/SharpDevelopReports/src/SharpReportSamples/SharpReportSamples.csproj

@ -1,80 +0,0 @@ @@ -1,80 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectGuid>{BB5D34DA-3561-48B1-894A-46765C2A18C1}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<OutputType>Exe</OutputType>
<RootNamespace>SharpReportSamples</RootNamespace>
<AssemblyName>SharpReportSamples</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<AppDesignerFolder>Properties</AppDesignerFolder>
<SourceAnalysisOverrideSettingsFile>C:\Users\Peter Forstmeier\AppData\Roaming\ICSharpCode/SharpDevelop3.0\Settings.SourceAnalysis</SourceAnalysisOverrideSettingsFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Platform)' == 'x86' ">
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>bin\Debug\</OutputPath>
<DebugSymbols>True</DebugSymbols>
<DebugType>Full</DebugType>
<Optimize>False</Optimize>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<DefineConstants>DEBUG;TRACE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputPath>bin\Release\</OutputPath>
<DebugSymbols>False</DebugSymbols>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
<DefineConstants>TRACE</DefineConstants>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
<ItemGroup>
<Reference Include="Irony">
<HintPath>..\..\..\..\src\AddIns\Misc\Reports\Irony\obj\Debug\Irony.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Drawing" />
<Reference Include="System.Management" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="ContributorsList.cs" />
<Compile Include="EventLogger.cs" />
<Compile Include="MainForm.cs" />
<Compile Include="MainForm.Designer.cs">
<DependentUpon>MainForm.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ReportViewerMessagesProvider.cs" />
<EmbeddedResource Include="MainForm.resx">
<DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Resources\error.ico" />
<EmbeddedResource Include="Resources\Info.png" />
<EmbeddedResource Include="Resources\warning.ico" />
</ItemGroup>
<ItemGroup>
<Folder Include="Resources" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\src\AddIns\Misc\Reports\ICSharpCode.Reports.Core\ICSharpCode.Reports.Core.csproj">
<Project>{4B2239FF-8FD6-431D-9D22-1B8049BA6917}</Project>
<Name>ICSharpCode.Reports.Core</Name>
</ProjectReference>
</ItemGroup>
</Project>
Loading…
Cancel
Save