Browse Source
I excluded Python from this merge (too many conflicts I don't know how to solve). I also excluded SharpReport (will be ported to SD 4.0 later). git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5450 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61pull/1/head
78 changed files with 3641 additions and 200 deletions
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
%windir%\microsoft.net\framework\v3.5\msbuild CopyDependencies.build |
||||
@IF %ERRORLEVEL% NEQ 0 GOTO err |
||||
@exit /B 0 |
||||
:err |
||||
@PAUSE |
||||
@exit /B 1 |
@ -0,0 +1,24 @@
@@ -0,0 +1,24 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTarget="Build"> |
||||
<ItemGroup> |
||||
<GenericDeps Include="..\..\..\bin\ICSharpCode.NRefactory.dll"/> |
||||
<GenericDeps Include="..\..\..\bin\ICSharpCode.SharpDevelop.Dom.dll"/> |
||||
<GenericDeps Include="..\..\..\bin\ICSharpCode.TextEditor.dll"/> |
||||
<GenericDeps Include="..\..\..\bin\log4net.dll"/> |
||||
|
||||
<BooDeps Include="..\..\..\AddIns\AddIns\BackendBindings\BooBinding\Boo.Lang.dll"/> |
||||
<BooDeps Include="..\..\..\AddIns\AddIns\BackendBindings\BooBinding\Boo.Lang.Compiler.dll"/> |
||||
<BooDeps Include="..\..\..\AddIns\AddIns\BackendBindings\BooBinding\NRefactoryToBooConverter.dll"/> |
||||
|
||||
<PyDeps Include="..\..\..\AddIns\AddIns\BackendBindings\PythonBinding\PythonBinding.dll"/> |
||||
|
||||
<IrDeps Include="..\..\..\AddIns\AddIns\BackendBindings\RubyBinding\RubyBinding.dll"/> |
||||
</ItemGroup> |
||||
|
||||
|
||||
<Target Name="Build"> |
||||
<Copy SourceFiles="@(BooDeps)" DestinationFolder=".\" SkipUnchangedFiles="true"/> |
||||
<Copy SourceFiles="@(GenericDeps)" DestinationFolder=".\" SkipUnchangedFiles="true"/> |
||||
<Copy SourceFiles="@(PyDeps)" DestinationFolder=".\" SkipUnchangedFiles="true"/> |
||||
<Copy SourceFiles="@(IrDeps)" DestinationFolder=".\" SkipUnchangedFiles="true"/> |
||||
</Target> |
||||
</Project> |
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
|
||||
using ICSharpCode.NRefactory; |
||||
using ICSharpCode.PythonBinding; |
||||
|
||||
namespace ICSharpCode.CodeConversion |
||||
{ |
||||
public class PythonHelpers |
||||
{ |
||||
public static bool Convert(SupportedLanguage inputLanguage, string ProvidedSource, out string ConvertedSource, out string ErrorMessage) |
||||
{ |
||||
NRefactoryToPythonConverter converter = new |
||||
NRefactoryToPythonConverter(inputLanguage); |
||||
|
||||
string convertedCode = converter.Convert(ProvidedSource); |
||||
|
||||
ConvertedSource = convertedCode; |
||||
ErrorMessage = ""; |
||||
|
||||
return true; |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using System.Linq; |
||||
using System.Text; |
||||
|
||||
using ICSharpCode.NRefactory; |
||||
using ICSharpCode.RubyBinding; |
||||
|
||||
namespace ICSharpCode.CodeConversion |
||||
{ |
||||
public class RubyHelpers |
||||
{ |
||||
public static bool Convert(SupportedLanguage inputLanguage, string ProvidedSource, out string ConvertedSource, out string ErrorMessage) |
||||
{ |
||||
NRefactoryToRubyConverter converter = new |
||||
NRefactoryToRubyConverter(inputLanguage); |
||||
|
||||
string convertedCode = converter.Convert(ProvidedSource); |
||||
|
||||
ConvertedSource = convertedCode; |
||||
ErrorMessage = ""; |
||||
|
||||
return true; |
||||
} |
||||
} |
||||
} |
After Width: | Height: | Size: 298 B |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 273 B |
@ -0,0 +1,262 @@
@@ -0,0 +1,262 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<ReportModel> |
||||
<ReportSettings> |
||||
<ReportSettings> |
||||
<DefaultFont>Microsoft Sans Serif, 10pt</DefaultFont> |
||||
<DataModel>FormSheet</DataModel> |
||||
<FileName>Report1.srd</FileName> |
||||
<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>D:\Reporting3.0_branches\SharpDevelop\samples\SharpDevelopReports\SampleReports\Logos\Bannerbeige2.gif</RelativeFileName> |
||||
<ImageFileName>D:\Reporting3.0_branches\SharpDevelop\samples\SharpDevelopReports\SampleReports\Logos\Bannerbeige2.gif</ImageFileName> |
||||
</BaseImageItem> |
||||
</Items> |
||||
<Location>50, 50</Location> |
||||
<DrawBorder>False</DrawBorder> |
||||
</BaseSection> |
||||
<BaseSection> |
||||
<Size>718, 95</Size> |
||||
<Name>ReportPageHeader</Name> |
||||
<PageBreakAfter>False</PageBreakAfter> |
||||
<SectionMargin>50</SectionMargin> |
||||
<SectionOffset>0</SectionOffset> |
||||
<BackColor>Window</BackColor> |
||||
<Items> |
||||
<BaseTextItem> |
||||
<BackColor>White</BackColor> |
||||
<CanShrink>False</CanShrink> |
||||
<StringTrimming>None</StringTrimming> |
||||
<Text>#develop Open Source Project |
||||
Joint Copyright Assignment by Contributor To AlphaSierraPapa</Text> |
||||
<Location>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> |
||||
<BaseLineItem> |
||||
<StartLineCap>Flat</StartLineCap> |
||||
<FromPoint>10, 5</FromPoint> |
||||
<Location>92, 82</Location> |
||||
<Name>reportLineControl1</Name> |
||||
<Size>597, 9</Size> |
||||
<EndLineCap>Flat</EndLineCap> |
||||
<DashStyle>Solid</DashStyle> |
||||
<BackColor>White</BackColor> |
||||
<DashLineCap>Flat</DashLineCap> |
||||
<ForeColor>ControlText</ForeColor> |
||||
<ToPoint>40, 5</ToPoint> |
||||
<Thickness>1</Thickness> |
||||
</BaseLineItem> |
||||
</Items> |
||||
<Location>50, 150</Location> |
||||
<DrawBorder>False</DrawBorder> |
||||
</BaseSection> |
||||
<BaseSection> |
||||
<Size>718, 723</Size> |
||||
<Name>ReportDetail</Name> |
||||
<PageBreakAfter>False</PageBreakAfter> |
||||
<SectionMargin>50</SectionMargin> |
||||
<SectionOffset>0</SectionOffset> |
||||
<BackColor>Window</BackColor> |
||||
<Items> |
||||
<BaseTextItem> |
||||
<BackColor>White</BackColor> |
||||
<CanShrink>False</CanShrink> |
||||
<StringTrimming>None</StringTrimming> |
||||
<Text>Contact Information: |
||||
Full Name:_________________________________ (the "Contributor") |
||||
|
||||
Mailing Address_________________________ e-mail :_________________________ |
||||
|
||||
______________________________________ Telephone :_________________________ |
||||
|
||||
Country:_______________________________ Facsimile :_________________________</Text> |
||||
<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>622, 135</Size> |
||||
<ForeColor>ControlText</ForeColor> |
||||
</BaseTextItem> |
||||
<BaseTextItem> |
||||
<BackColor>White</BackColor> |
||||
<CanShrink>False</CanShrink> |
||||
<StringTrimming>None</StringTrimming> |
||||
<Text>1. Contributor owns, and has sufficient rights to contribute, all source code and related material intended |
||||
to be compiled or integrated with the source code for the #develop open source product (the |
||||
"Contribution") which Contributor has ever delivered, and AlphaSierraPapa has accepted, for |
||||
incorporation into the technology made available under the #develop open source project.</Text> |
||||
<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>675, 67</Size> |
||||
<ForeColor>ControlText</ForeColor> |
||||
</BaseTextItem> |
||||
<BaseTextItem> |
||||
<BackColor>White</BackColor> |
||||
<CanShrink>False</CanShrink> |
||||
<StringTrimming>None</StringTrimming> |
||||
<Text>2. Contributor hereby assigns to AlphaSierraPapa joint ownership in all worldwide common law and |
||||
statutory rights associated with the copyrights, copyright application, copyright registration and moral |
||||
rights in the Contribution to the extent allowable under applicable local laws and copyright |
||||
conventions. Contributor agrees that this assignment may be submitted by AlphaSierraPapa to register |
||||
a copyright in the Contribution. Contributor retains the right to use the Contribution for Contributor's |
||||
own purposes. This Joint Copyright Assignment supersedes and replaces all prior copyright |
||||
assignments made by Contributor to AlphaSierraPapa under the #develop project.</Text> |
||||
<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>695, 113</Size> |
||||
<ForeColor>ControlText</ForeColor> |
||||
</BaseTextItem> |
||||
<BaseTextItem> |
||||
<BackColor>White</BackColor> |
||||
<CanShrink>False</CanShrink> |
||||
<StringTrimming>None</StringTrimming> |
||||
<Text>3. Contributor is legally entitled to grant the above assignment and agrees not to provide any |
||||
Contribution that violates any law or breaches any contract.</Text> |
||||
<Location>50, 380</Location> |
||||
<ContentAlignment>TopLeft</ContentAlignment> |
||||
<Visible>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>695, 80</Size> |
||||
<ForeColor>ControlText</ForeColor> |
||||
</BaseTextItem> |
||||
<BaseTextItem> |
||||
<BackColor>White</BackColor> |
||||
<CanShrink>False</CanShrink> |
||||
<StringTrimming>None</StringTrimming> |
||||
<Text>+43-3842-22620 |
||||
|
||||
or mail it to: |
||||
|
||||
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> |
@ -0,0 +1,285 @@
@@ -0,0 +1,285 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<ReportModel> |
||||
<ReportSettings> |
||||
<ReportSettings> |
||||
<GridSize>8, 8</GridSize> |
||||
<PageSize>827, 1169</PageSize> |
||||
<CommandText /> |
||||
<Landscape>False</Landscape> |
||||
<GroupColumnsCollection /> |
||||
<RightMargin>50</RightMargin> |
||||
<NoDataMessage>No Data for this Report</NoDataMessage> |
||||
<DefaultFont>Microsoft Sans Serif, 10pt</DefaultFont> |
||||
<ReportType>DataReport</ReportType> |
||||
<UseStandardPrinter>True</UseStandardPrinter> |
||||
<CommandType>Text</CommandType> |
||||
<GraphicsUnit>Millimeter</GraphicsUnit> |
||||
<TopMargin>50</TopMargin> |
||||
<ConnectionString /> |
||||
<Padding>5, 5, 5, 5</Padding> |
||||
<LeftMargin>50</LeftMargin> |
||||
<SortColumnCollection /> |
||||
<DataModel>PushData</DataModel> |
||||
<BottomMargin>50</BottomMargin> |
||||
<AvailableFieldsCollection /> |
||||
<ReportName>Report1</ReportName> |
||||
<ParameterCollection /> |
||||
</ReportSettings> |
||||
</ReportSettings> |
||||
<SectionCollection> |
||||
<BaseSection> |
||||
<Size>786, 35</Size> |
||||
<Name>ReportHeader</Name> |
||||
<PageBreakAfter>False</PageBreakAfter> |
||||
<SectionMargin>50</SectionMargin> |
||||
<SectionOffset>0</SectionOffset> |
||||
<BackColor>Window</BackColor> |
||||
<Items /> |
||||
<Location>50, 50</Location> |
||||
<DrawBorder>False</DrawBorder> |
||||
</BaseSection> |
||||
<BaseSection> |
||||
<Size>786, 108</Size> |
||||
<Name>ReportPageHeader</Name> |
||||
<PageBreakAfter>False</PageBreakAfter> |
||||
<SectionMargin>50</SectionMargin> |
||||
<SectionOffset>0</SectionOffset> |
||||
<BackColor>Window</BackColor> |
||||
<Items> |
||||
<BaseTextItem> |
||||
<BackColor>White</BackColor> |
||||
<CanShrink>False</CanShrink> |
||||
<StringTrimming>None</StringTrimming> |
||||
<Text>Job</Text> |
||||
<Location>429, 63</Location> |
||||
<ContentAlignment>TopLeft</ContentAlignment> |
||||
<Visible>True</Visible> |
||||
<DrawBorder>False</DrawBorder> |
||||
<Font>Microsoft Sans Serif, 12pt, style=Bold</Font> |
||||
<CanGrow>False</CanGrow> |
||||
<FormatString /> |
||||
<Name>Job</Name> |
||||
<FrameColor>WindowFrame</FrameColor> |
||||
<Size>100, 20</Size> |
||||
<ForeColor>ControlText</ForeColor> |
||||
</BaseTextItem> |
||||
<BaseTextItem> |
||||
<BackColor>White</BackColor> |
||||
<CanShrink>False</CanShrink> |
||||
<StringTrimming>None</StringTrimming> |
||||
<Text>Lastname</Text> |
||||
<Location>234, 63</Location> |
||||
<ContentAlignment>TopLeft</ContentAlignment> |
||||
<Visible>True</Visible> |
||||
<DrawBorder>False</DrawBorder> |
||||
<Font>Microsoft Sans Serif, 12pt, style=Bold</Font> |
||||
<CanGrow>False</CanGrow> |
||||
<FormatString /> |
||||
<Name>Lastname</Name> |
||||
<FrameColor>WindowFrame</FrameColor> |
||||
<Size>100, 20</Size> |
||||
<ForeColor>ControlText</ForeColor> |
||||
</BaseTextItem> |
||||
<BaseImageItem> |
||||
<ImageSource>File</ImageSource> |
||||
<Location>47, 6</Location> |
||||
<Name>ReportImageControl</Name> |
||||
<Size>661, 42</Size> |
||||
<ScaleImageToSize>False</ScaleImageToSize> |
||||
<BackColor>Window</BackColor> |
||||
<RelativeFileName>D:\Reporting3.0_branches\SharpDevelop\samples\SharpDevelopReports\SampleReports\Logos\Bannerbeige2.gif</RelativeFileName> |
||||
<ImageFileName>D:\Reporting3.0_branches\SharpDevelop\samples\SharpDevelopReports\SampleReports\Logos\Bannerbeige2.gif</ImageFileName> |
||||
</BaseImageItem> |
||||
<BaseLineItem> |
||||
<StartLineCap>Flat</StartLineCap> |
||||
<FromPoint>0, 3</FromPoint> |
||||
<Location>47, 87</Location> |
||||
<Name /> |
||||
<Size>661, 18</Size> |
||||
<EndLineCap>Flat</EndLineCap> |
||||
<DashStyle>Solid</DashStyle> |
||||
<BackColor>White</BackColor> |
||||
<DashLineCap>Flat</DashLineCap> |
||||
<ForeColor>ControlText</ForeColor> |
||||
<ToPoint>614, 3</ToPoint> |
||||
<Thickness>2</Thickness> |
||||
</BaseLineItem> |
||||
<BaseTextItem> |
||||
<BackColor>White</BackColor> |
||||
<CanShrink>False</CanShrink> |
||||
<StringTrimming>EllipsisCharacter</StringTrimming> |
||||
<Text>Firstname</Text> |
||||
<Location>46, 63</Location> |
||||
<ContentAlignment>TopLeft</ContentAlignment> |
||||
<Visible>True</Visible> |
||||
<DrawBorder>False</DrawBorder> |
||||
<Font>Microsoft Sans Serif, 12pt, style=Bold</Font> |
||||
<CanGrow>False</CanGrow> |
||||
<FormatString /> |
||||
<Name>reportTextItem1</Name> |
||||
<FrameColor>WindowFrame</FrameColor> |
||||
<Size>109, 20</Size> |
||||
<ForeColor>ControlText</ForeColor> |
||||
</BaseTextItem> |
||||
</Items> |
||||
<Location>50, 100</Location> |
||||
<DrawBorder>False</DrawBorder> |
||||
</BaseSection> |
||||
<BaseSection> |
||||
<Size>750, 51</Size> |
||||
<Name>ReportDetail</Name> |
||||
<PageBreakAfter>False</PageBreakAfter> |
||||
<SectionMargin>50</SectionMargin> |
||||
<SectionOffset>0</SectionOffset> |
||||
<BackColor>Window</BackColor> |
||||
<Items> |
||||
<BaseRowItem> |
||||
<AlternateBackColor /> |
||||
<FrameColor>WindowFrame</FrameColor> |
||||
<Name>Row</Name> |
||||
<Location>3, 10</Location> |
||||
<Visible>True</Visible> |
||||
<Size>699, 40</Size> |
||||
<Padding>5, 5, 5, 5</Padding> |
||||
<Items> |
||||
<BaseDataItem> |
||||
<DataType>System.String</DataType> |
||||
<Text>First</Text> |
||||
<Font>Microsoft Sans Serif, 10pt</Font> |
||||
<Location>43, 12</Location> |
||||
<CanGrow>False</CanGrow> |
||||
<ForeColor>ControlText</ForeColor> |
||||
<StringTrimming>EllipsisCharacter</StringTrimming> |
||||
<ColumnName>First</ColumnName> |
||||
<DrawBorder>False</DrawBorder> |
||||
<CanShrink>False</CanShrink> |
||||
<ContentAlignment>MiddleLeft</ContentAlignment> |
||||
<BackColor>White</BackColor> |
||||
<FormatString /> |
||||
<Name>unbound1</Name> |
||||
<Visible>True</Visible> |
||||
<Size>147, 25</Size> |
||||
<FrameColor>WindowFrame</FrameColor> |
||||
</BaseDataItem> |
||||
<BaseDataItem> |
||||
<DataType>System.String</DataType> |
||||
<Text>last</Text> |
||||
<Font>Microsoft Sans Serif, 10pt</Font> |
||||
<Location>231, 12</Location> |
||||
<CanGrow>False</CanGrow> |
||||
<ForeColor>ControlText</ForeColor> |
||||
<StringTrimming>EllipsisCharacter</StringTrimming> |
||||
<ColumnName>last</ColumnName> |
||||
<DrawBorder>False</DrawBorder> |
||||
<CanShrink>False</CanShrink> |
||||
<ContentAlignment>MiddleLeft</ContentAlignment> |
||||
<BackColor>White</BackColor> |
||||
<FormatString /> |
||||
<Name>unbound2</Name> |
||||
<Visible>True</Visible> |
||||
<Size>139, 25</Size> |
||||
<FrameColor>WindowFrame</FrameColor> |
||||
</BaseDataItem> |
||||
<BaseDataItem> |
||||
<DataType>System.String</DataType> |
||||
<Text>Job</Text> |
||||
<Font>Microsoft Sans Serif, 10pt</Font> |
||||
<Location>426, 10</Location> |
||||
<CanGrow>False</CanGrow> |
||||
<ForeColor>ControlText</ForeColor> |
||||
<StringTrimming>EllipsisCharacter</StringTrimming> |
||||
<ColumnName>Job</ColumnName> |
||||
<DrawBorder>False</DrawBorder> |
||||
<NullValue>--------------</NullValue> |
||||
<CanShrink>False</CanShrink> |
||||
<ContentAlignment>MiddleLeft</ContentAlignment> |
||||
<BackColor>White</BackColor> |
||||
<FormatString /> |
||||
<Name>unbound3</Name> |
||||
<Visible>True</Visible> |
||||
<Size>216, 25</Size> |
||||
<FrameColor>WindowFrame</FrameColor> |
||||
</BaseDataItem> |
||||
</Items> |
||||
<ChangeBackColorEveryNRow>0</ChangeBackColorEveryNRow> |
||||
<BackColor>White</BackColor> |
||||
<DrawBorder>False</DrawBorder> |
||||
<ForeColor>ControlText</ForeColor> |
||||
</BaseRowItem> |
||||
</Items> |
||||
<Location>50, 223</Location> |
||||
<DrawBorder>False</DrawBorder> |
||||
</BaseSection> |
||||
<BaseSection> |
||||
<Size>750, 49</Size> |
||||
<Name>ReportPageFooter</Name> |
||||
<PageBreakAfter>False</PageBreakAfter> |
||||
<SectionMargin>50</SectionMargin> |
||||
<SectionOffset>0</SectionOffset> |
||||
<BackColor>Window</BackColor> |
||||
<Items> |
||||
<BaseTextItem> |
||||
<BackColor>White</BackColor> |
||||
<CanShrink>False</CanShrink> |
||||
<StringTrimming>None</StringTrimming> |
||||
<Text>=Globals!ReportFolder</Text> |
||||
<Location>45, 24</Location> |
||||
<ContentAlignment>TopLeft</ContentAlignment> |
||||
<Visible>True</Visible> |
||||
<DrawBorder>False</DrawBorder> |
||||
<Font>Microsoft Sans Serif, 8.25pt</Font> |
||||
<CanGrow>False</CanGrow> |
||||
<FormatString /> |
||||
<Name>=Globals!ReportFolder</Name> |
||||
<FrameColor>WindowFrame</FrameColor> |
||||
<Size>483, 20</Size> |
||||
<ForeColor>ControlText</ForeColor> |
||||
</BaseTextItem> |
||||
<BaseLineItem> |
||||
<StartLineCap>Flat</StartLineCap> |
||||
<FromPoint>0, 0</FromPoint> |
||||
<Location>45, 3</Location> |
||||
<Name>object_177a5444_b8e0_4202_87d2_05cdc7cd1194</Name> |
||||
<Size>663, 15</Size> |
||||
<EndLineCap>Flat</EndLineCap> |
||||
<DashStyle>Solid</DashStyle> |
||||
<BackColor>White</BackColor> |
||||
<DashLineCap>Flat</DashLineCap> |
||||
<ForeColor>ControlText</ForeColor> |
||||
<ToPoint>656, 0</ToPoint> |
||||
<Thickness>2</Thickness> |
||||
</BaseLineItem> |
||||
<BaseTextItem> |
||||
<BackColor>White</BackColor> |
||||
<CanShrink>False</CanShrink> |
||||
<StringTrimming>None</StringTrimming> |
||||
<Text>='Page ' + Globals!PageNumber</Text> |
||||
<Location>602, 24</Location> |
||||
<ContentAlignment>TopLeft</ContentAlignment> |
||||
<Visible>True</Visible> |
||||
<DrawBorder>False</DrawBorder> |
||||
<Font>Microsoft Sans Serif, 8.25pt</Font> |
||||
<CanGrow>False</CanGrow> |
||||
<FormatString /> |
||||
<Name>='Page ' + Globals!PageNumber</Name> |
||||
<FrameColor>WindowFrame</FrameColor> |
||||
<Size>100, 20</Size> |
||||
<ForeColor>ControlText</ForeColor> |
||||
</BaseTextItem> |
||||
</Items> |
||||
<Location>50, 289</Location> |
||||
<DrawBorder>False</DrawBorder> |
||||
</BaseSection> |
||||
<BaseSection> |
||||
<Size>750, 55</Size> |
||||
<Name>ReportFooter</Name> |
||||
<PageBreakAfter>False</PageBreakAfter> |
||||
<SectionMargin>50</SectionMargin> |
||||
<SectionOffset>0</SectionOffset> |
||||
<BackColor>Window</BackColor> |
||||
<Items /> |
||||
<Location>50, 353</Location> |
||||
<DrawBorder>False</DrawBorder> |
||||
</BaseSection> |
||||
</SectionCollection> |
||||
</ReportModel> |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 12 KiB |
@ -0,0 +1,332 @@
@@ -0,0 +1,332 @@
|
||||
<?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 /> |
||||
<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>='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> |
@ -0,0 +1,332 @@
@@ -0,0 +1,332 @@
|
||||
<?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> |
@ -0,0 +1,20 @@
@@ -0,0 +1,20 @@
|
||||
<%@ 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> |
@ -0,0 +1,38 @@
@@ -0,0 +1,38 @@
|
||||
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(); |
||||
} |
||||
} |
@ -0,0 +1,247 @@
@@ -0,0 +1,247 @@
|
||||
<?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> |
@ -0,0 +1,43 @@
@@ -0,0 +1,43 @@
|
||||
<?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> |
@ -0,0 +1,166 @@
@@ -0,0 +1,166 @@
|
||||
<?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> |
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
<%@ 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> |
@ -0,0 +1,113 @@
@@ -0,0 +1,113 @@
|
||||
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> |
||||
{ |
||||
} |
||||
} |
@ -0,0 +1,44 @@
@@ -0,0 +1,44 @@
|
||||
<?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> |
@ -0,0 +1,3 @@
@@ -0,0 +1,3 @@
|
||||
The Getting Started Guide is located here: |
||||
|
||||
http://sharpdevelopreports.net/FeatureTour.ashx |
@ -0,0 +1,31 @@
@@ -0,0 +1,31 @@
|
||||
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.*")] |
@ -0,0 +1,21 @@
@@ -0,0 +1,21 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00 |
||||
# Visual Studio 2008 |
||||
# SharpDevelop 3.2.0.5405 |
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpReportSamples", "SharpReportSamples\SharpReportSamples.csproj", "{BB5D34DA-3561-48B1-894A-46765C2A18C1}" |
||||
EndProject |
||||
Global |
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
||||
Debug|Any CPU = Debug|Any CPU |
||||
Release|Any CPU = Release|Any CPU |
||||
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 |
||||
EndGlobalSection |
||||
GlobalSection(SolutionProperties) = preSolution |
||||
HideSolutionNode = FALSE |
||||
EndGlobalSection |
||||
EndGlobal |
@ -0,0 +1,88 @@
@@ -0,0 +1,88 @@
|
||||
/* |
||||
* 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 |
||||
{ |
||||
/* |
||||
This list is by no means exhaustive: |
||||
•Siegfried Pammer |
||||
*/ |
||||
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.")); |
||||
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>{ |
||||
} |
||||
} |
@ -0,0 +1,153 @@
@@ -0,0 +1,153 @@
|
||||
/* |
||||
* 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("Sample Reports", new System.Windows.Forms.TreeNode[] { |
||||
treeNode1, |
||||
treeNode2, |
||||
treeNode3, |
||||
treeNode4}); |
||||
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(); |
||||
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 = "FormSheetItem"; |
||||
treeNode1.Text = "FormSheet"; |
||||
treeNode2.Name = "PullModelItem"; |
||||
treeNode2.Text = "PullModel"; |
||||
treeNode3.Name = "iListNode"; |
||||
treeNode3.Text = "PushModel-IList"; |
||||
treeNode4.Name = "Knoten0"; |
||||
treeNode4.Text = "Provider Independent"; |
||||
treeNode5.Name = "Knoten0"; |
||||
treeNode5.Text = "Sample Reports"; |
||||
this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { |
||||
treeNode5}); |
||||
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); |
||||
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; |
||||
} |
||||
} |
@ -0,0 +1,252 @@
@@ -0,0 +1,252 @@
|
||||
/* |
||||
* 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; |
||||
using System.Collections.Generic; |
||||
using System.Diagnostics; |
||||
using System.Drawing; |
||||
using System.IO; |
||||
using System.Windows.Forms; |
||||
|
||||
using ICSharpCode.Reports.Core; |
||||
|
||||
namespace SharpReportSamples |
||||
{ |
||||
/// <summary>
|
||||
/// Description of MainForm.
|
||||
/// </summary>
|
||||
public partial class MainForm : Form |
||||
{ |
||||
|
||||
private TreeNode formNode; |
||||
private TreeNode pullNode; |
||||
private TreeNode iListNode; |
||||
private TreeNode providerIndependent; |
||||
|
||||
public MainForm() |
||||
{ |
||||
//
|
||||
// The InitializeComponent() call is required for Windows Forms designer support.
|
||||
//
|
||||
InitializeComponent(); |
||||
InitTree(); |
||||
UpdateStatusbar (Application.StartupPath); |
||||
this.previewControl1.Messages = new ReportViewerMessagesProvider(); |
||||
|
||||
/* |
||||
EventLog ev = new EventLog(); |
||||
ev.Log = "System"; |
||||
ev.MachineName = "."; // Lokale Maschine
|
||||
ArrayList ar = new ArrayList(); |
||||
ar.AddRange(ev.Entries); |
||||
*/ |
||||
} |
||||
|
||||
|
||||
private void InitTree () |
||||
{ |
||||
string formSheetDir = @"\FormSheet\JCA.srd"; |
||||
|
||||
string startupPath = Application.StartupPath; |
||||
string samplesDir = @"SharpDevelopReports\"; |
||||
int y = startupPath.IndexOf(samplesDir); |
||||
string startPath = startupPath.Substring(0,y + samplesDir.Length) + @"SampleReports\"; |
||||
|
||||
//D:\Reporting3.0_branches\SharpDevelop\samples\SharpDevelopReports\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]; |
||||
|
||||
AddNodesToTree (this.formNode,startPath + @"FormSheet\" ); |
||||
AddNodesToTree (this.pullNode,startPath + @"PullModel\" ); |
||||
AddNodesToTree (this.iListNode,startPath + @"IList\" ); |
||||
AddNodesToTree (this.providerIndependent,startPath + @"ProviderIndependent\" ); |
||||
|
||||
} |
||||
|
||||
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 == "NoConnectionReport") { |
||||
this.RunProviderIndependent(reportName); |
||||
} |
||||
|
||||
else { |
||||
|
||||
ReportParameters parameters = ReportEngine.LoadParameters(reportName); |
||||
|
||||
if ((parameters != null)&& (parameters.SqlParameters.Count > 0)){ |
||||
parameters.SqlParameters[0].ParameterValue = "I'm the Parameter"; |
||||
} |
||||
|
||||
this.previewControl1.SetupAsynchron(reportName,parameters); |
||||
} |
||||
} |
||||
|
||||
#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.SqlParameters[0].ParameterValue = "Provider Independent"; |
||||
this.previewControl1.SetupAsynchron(reportName,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); |
||||
|
||||
// Both variable declarations are valid
|
||||
|
||||
ContributorCollection list = ContributorsReportData.CreateContributorsList(); |
||||
IDataManager dm = DataManager.CreateInstance(list,model.ReportSettings); |
||||
|
||||
// List<Contributor> list = ContributorsReportData.CreateContributorsList();
|
||||
// IDataManager dm = DataManager.CreateInstance(list,model.ReportSettings);
|
||||
|
||||
// this.previewControl1.SectionRendering += new EventHandler<SectionRenderEventArgs>(PushPrinting);
|
||||
this.previewControl1.SetupAsynchron(model,dm); |
||||
|
||||
} |
||||
|
||||
//Try this to react to SectionrenderEvent,
|
||||
/* |
||||
private void PushPrinting (object sender,SectionRenderEventArgs e) |
||||
{ |
||||
|
||||
switch (e.CurrentSection) { |
||||
case GlobalEnums.ReportSection.ReportHeader: |
||||
break; |
||||
|
||||
case GlobalEnums.ReportSection.ReportPageHeader: |
||||
break; |
||||
|
||||
case GlobalEnums.ReportSection.ReportDetail: |
||||
BaseRowItem ri = e.Section.Items[0] as BaseRowItem; |
||||
if (ri != null) { |
||||
BaseDataItem r = (BaseDataItem)ri.Items.Find("unbound3"); |
||||
if (r != null) { |
||||
r.DBValue = "xxxxxxx"; |
||||
} |
||||
} |
||||
|
||||
break; |
||||
case GlobalEnums.ReportSection.ReportPageFooter: |
||||
break; |
||||
|
||||
case GlobalEnums.ReportSection.ReportFooter: |
||||
break; |
||||
|
||||
default: |
||||
break; |
||||
} |
||||
} |
||||
*/ |
||||
#endregion
|
||||
|
||||
|
||||
|
||||
void TreeView1MouseDoubleClick(object sender, MouseEventArgs e) |
||||
{ |
||||
TreeNode selectedNode = this.treeView1.SelectedNode; |
||||
if (selectedNode != null) { |
||||
RunStandardReport(selectedNode.Tag.ToString()); |
||||
} |
||||
} |
||||
|
||||
/* |
||||
void Button2Click(object sender, EventArgs e) |
||||
{ |
||||
// get Filename to save *.pdf
|
||||
string saveTo = this.SelectFilename(); |
||||
|
||||
// Create connectionobject
|
||||
parameters = ReportEngine.LoadParameters(reportName); |
||||
ConnectionObject con = ConnectionObject.CreateInstance(this.conOleDbString, |
||||
System.Data.Common.DbProviderFactories.GetFactory("System.Data.OleDb") ); |
||||
|
||||
parameters.ConnectionObject = con; |
||||
|
||||
|
||||
// create a Pagebuilder
|
||||
pageBuilder = ReportEngine.CreatePageBuilder(reportName,parameters); |
||||
pageBuilder.BuildExportList(); |
||||
|
||||
using (PdfRenderer pdfRenderer = PdfRenderer.CreateInstance(pageBuilder,saveTo,true)){ |
||||
pdfRenderer.Start(); |
||||
pdfRenderer.RenderOutput(); |
||||
pdfRenderer.End(); |
||||
} |
||||
} |
||||
|
||||
|
||||
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; |
||||
} |
||||
} |
||||
} |
||||
|
||||
*/ |
||||
|
||||
} |
||||
} |
@ -0,0 +1,126 @@
@@ -0,0 +1,126 @@
|
||||
<?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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<resheader name="writer"> |
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
||||
</resheader> |
||||
<metadata name="menuStrip2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
||||
<value>237, 17</value> |
||||
</metadata> |
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
||||
<value>25</value> |
||||
</metadata> |
||||
</root> |
@ -0,0 +1,31 @@
@@ -0,0 +1,31 @@
|
||||
/* |
||||
* 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()); |
||||
} |
||||
|
||||
} |
||||
} |
@ -0,0 +1,31 @@
@@ -0,0 +1,31 @@
|
||||
#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.*")] |
@ -0,0 +1,77 @@
@@ -0,0 +1,77 @@
|
||||
/* |
||||
* 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"; |
||||
} |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,77 @@
@@ -0,0 +1,77 @@
|
||||
<Project ToolsVersion="3.5" 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>v3.5</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="ICSharpCode.Reports.Core"> |
||||
<HintPath>..\..\..\..\AddIns\AddIns\Misc\SharpDevelopReports\ICSharpCode.Reports.Core.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.Windows.Forms" /> |
||||
<Reference Include="System.Xml" /> |
||||
<Reference Include="System.Xml.Linq"> |
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework> |
||||
</Reference> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<Compile Include="ContributorsList.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="..\..\SampleReports\EventLogger\Error.png"> |
||||
<Link>Resources\Error.png</Link> |
||||
</EmbeddedResource> |
||||
<EmbeddedResource Include="..\..\SampleReports\EventLogger\Info.png"> |
||||
<Link>Resources\Info.png</Link> |
||||
</EmbeddedResource> |
||||
<EmbeddedResource Include="..\..\SampleReports\EventLogger\Warning.png"> |
||||
<Link>Resources\Warning.png</Link> |
||||
</EmbeddedResource> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<Folder Include="Resources" /> |
||||
</ItemGroup> |
||||
</Project> |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,39 @@
@@ -0,0 +1,39 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.Collections.Generic; |
||||
using ICSharpCode.RubyBinding; |
||||
using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor; |
||||
using ICSharpCode.SharpDevelop.Dom; |
||||
using ICSharpCode.TextEditor.Document; |
||||
using NUnit.Framework; |
||||
using RubyBinding.Tests; |
||||
|
||||
namespace RubyBinding.Tests.Parsing |
||||
{ |
||||
/// <summary>
|
||||
/// A string of the form "require #" would cause a null reference exception since the ruby ast walker tries
|
||||
/// to use the MethodCall's Argument which is null.
|
||||
/// </summary>
|
||||
[TestFixture] |
||||
public class ParseRequireFollowedByCommentTestFixture |
||||
{ |
||||
[Test] |
||||
public void ParseDoesNotThrowNullReferenceException() |
||||
{ |
||||
string ruby = "require #"; |
||||
|
||||
DefaultProjectContent projectContent = new DefaultProjectContent(); |
||||
RubyParser parser = new RubyParser(); |
||||
ICompilationUnit unit = null; |
||||
|
||||
Assert.DoesNotThrow(delegate { unit = parser.Parse(projectContent, @"C:\test.rb", ruby); }); |
||||
Assert.IsNotNull(unit); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,84 @@
@@ -0,0 +1,84 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using ICSharpCode.SharpDevelop.Dom; |
||||
using ICSharpCode.UnitTesting; |
||||
using NUnit.Framework; |
||||
using UnitTesting.Tests.Utils; |
||||
|
||||
namespace UnitTesting.Tests.Project |
||||
{ |
||||
[TestFixture] |
||||
public class OverriddenBaseTestMethodTestFixture |
||||
{ |
||||
TestClass testClass; |
||||
MockClass c; |
||||
|
||||
[SetUp] |
||||
public void SetUp() |
||||
{ |
||||
MockProjectContent projectContent = new MockProjectContent(); |
||||
projectContent.Language = LanguageProperties.None; |
||||
|
||||
// Create the base test class.
|
||||
MockClass baseClass = new MockClass("ICSharpCode.Tests.BaseClass"); |
||||
baseClass.ProjectContent = projectContent; |
||||
|
||||
// Add a virtual method to base class.
|
||||
MockMethod baseMethod = new MockMethod("VirtualTestMethod"); |
||||
baseMethod.Attributes.Add(new MockAttribute("Test")); |
||||
baseMethod.DeclaringType = baseClass; |
||||
baseMethod.IsVirtual = true; |
||||
baseClass.Methods.Add(baseMethod); |
||||
|
||||
// Add a second method that is virtual but will not be overriden.
|
||||
baseMethod = new MockMethod("VirtualNonOverriddenTestMethod"); |
||||
baseMethod.Attributes.Add(new MockAttribute("Test")); |
||||
baseMethod.DeclaringType = baseClass; |
||||
baseMethod.IsVirtual = true; |
||||
baseClass.Methods.Add(baseMethod); |
||||
|
||||
// Create the derived test class.
|
||||
c = new MockClass("ICSharpCode.Tests.DerivedClass"); |
||||
c.Attributes.Add(new MockAttribute("TestFixture")); |
||||
c.ProjectContent = projectContent; |
||||
projectContent.Classes.Add(c); |
||||
|
||||
// Create a new test method that overrides one of the base class methods.
|
||||
MockMethod method = new MockMethod("VirtualTestMethod"); |
||||
method.Attributes.Add(new MockAttribute("Test")); |
||||
method.DeclaringType = c; |
||||
method.IsOverride = true; |
||||
c.Methods.Add(method); |
||||
|
||||
// Set derived class's base class.
|
||||
c.BaseClass = baseClass; |
||||
|
||||
// Create TestClass.
|
||||
testClass = new TestClass(c); |
||||
} |
||||
|
||||
[Test] |
||||
public void NonOverriddenVirtualBaseMethodExists() |
||||
{ |
||||
Assert.IsTrue(testClass.TestMethods.Contains("BaseClass.VirtualNonOverriddenTestMethod")); |
||||
} |
||||
|
||||
[Test] |
||||
public void VirtualBaseMethodDoesNotExistSinceItIsOverriddenInDerivedClass() |
||||
{ |
||||
Assert.IsFalse(testClass.TestMethods.Contains("BaseClass.VirtualTestMethod")); |
||||
} |
||||
|
||||
[Test] |
||||
public void DerivedClassTestMethodExists() |
||||
{ |
||||
Assert.IsTrue(testClass.TestMethods.Contains("VirtualTestMethod")); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue