Browse Source

Start cleanup Sample Reports

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@5373 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Peter Forstmeier 16 years ago
parent
commit
acf5b30249
  1. 0
      samples/SharpDevelopReports/SampleReports/Logos/Bannerbeige2.gif
  2. 0
      samples/SharpDevelopReports/SampleReports/Logos/SDLogo_JPG.jpg
  3. 38
      samples/SharpDevelopReports/SampleReports/PullModel/Parameter_Aggregate.srd
  4. 14
      samples/SharpDevelopReports/src/SharpReportSamples/MainForm.Designer.cs
  5. 23
      samples/SharpDevelopReports/src/SharpReportSamples/MainForm.cs

0
samples/SharpDevelopReports/Reports/Logos/Bannerbeige2.gif → samples/SharpDevelopReports/SampleReports/Logos/Bannerbeige2.gif

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

0
samples/SharpDevelopReports/Reports/Logos/SDLogo_JPG.jpg → samples/SharpDevelopReports/SampleReports/Logos/SDLogo_JPG.jpg

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

38
samples/SharpDevelopReports/SampleReports/PullModel/FirstAggFunction.srd → samples/SharpDevelopReports/SampleReports/PullModel/Parameter_Aggregate.srd

@ -40,6 +40,12 @@
</AbstractColumn> </AbstractColumn>
</AvailableFieldsCollection> </AvailableFieldsCollection>
<ReportName>Report1</ReportName> <ReportName>Report1</ReportName>
<ParameterCollection>
<BasicParameter>
<ParameterName>p1</ParameterName>
<ParameterValue>aaaaa</ParameterValue>
</BasicParameter>
</ParameterCollection>
</ReportSettings> </ReportSettings>
</ReportSettings> </ReportSettings>
<SectionCollection> <SectionCollection>
@ -55,17 +61,17 @@
<BackColor>White</BackColor> <BackColor>White</BackColor>
<CanShrink>False</CanShrink> <CanShrink>False</CanShrink>
<StringTrimming>EllipsisCharacter</StringTrimming> <StringTrimming>EllipsisCharacter</StringTrimming>
<Text>=Report1</Text> <Text>='Report with Parameter : ' + p1</Text>
<Location>313, 5</Location> <Location>235, 19</Location>
<ContentAlignment>MiddleLeft</ContentAlignment> <ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>False</Visible> <Visible>True</Visible>
<DrawBorder>False</DrawBorder> <DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font> <Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow> <CanGrow>False</CanGrow>
<FormatString /> <FormatString />
<Name>Report1</Name> <Name>Report1</Name>
<FrameColor>WindowFrame</FrameColor> <FrameColor>WindowFrame</FrameColor>
<Size>100, 20</Size> <Size>249, 20</Size>
<ForeColor>Black</ForeColor> <ForeColor>Black</ForeColor>
</BaseTextItem> </BaseTextItem>
</Items> </Items>
@ -85,7 +91,7 @@
<FrameColor>WindowFrame</FrameColor> <FrameColor>WindowFrame</FrameColor>
<Name>AbstractItem</Name> <Name>AbstractItem</Name>
<Location>5, 5</Location> <Location>5, 5</Location>
<Visible>False</Visible> <Visible>True</Visible>
<Size>717, 50</Size> <Size>717, 50</Size>
<Padding>0, 0, 0, 0</Padding> <Padding>0, 0, 0, 0</Padding>
<Items> <Items>
@ -96,7 +102,7 @@
<Text>Kategorie-Nr</Text> <Text>Kategorie-Nr</Text>
<Location>5, 5</Location> <Location>5, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment> <ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>False</Visible> <Visible>True</Visible>
<DrawBorder>False</DrawBorder> <DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font> <Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow> <CanGrow>False</CanGrow>
@ -113,7 +119,7 @@
<Text>Kategoriename</Text> <Text>Kategoriename</Text>
<Location>184, 5</Location> <Location>184, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment> <ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>False</Visible> <Visible>True</Visible>
<DrawBorder>False</DrawBorder> <DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font> <Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow> <CanGrow>False</CanGrow>
@ -130,7 +136,7 @@
<Text>Beschreibung</Text> <Text>Beschreibung</Text>
<Location>363, 5</Location> <Location>363, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment> <ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>False</Visible> <Visible>True</Visible>
<DrawBorder>False</DrawBorder> <DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font> <Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow> <CanGrow>False</CanGrow>
@ -147,7 +153,7 @@
<Text>Abbildung</Text> <Text>Abbildung</Text>
<Location>542, 5</Location> <Location>542, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment> <ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>False</Visible> <Visible>True</Visible>
<DrawBorder>False</DrawBorder> <DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font> <Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow> <CanGrow>False</CanGrow>
@ -180,7 +186,7 @@
<FrameColor>WindowFrame</FrameColor> <FrameColor>WindowFrame</FrameColor>
<Name>AbstractItem</Name> <Name>AbstractItem</Name>
<Location>5, 5</Location> <Location>5, 5</Location>
<Visible>False</Visible> <Visible>True</Visible>
<Size>717, 50</Size> <Size>717, 50</Size>
<Padding>0, 0, 0, 0</Padding> <Padding>0, 0, 0, 0</Padding>
<Items> <Items>
@ -200,7 +206,7 @@
<BackColor>White</BackColor> <BackColor>White</BackColor>
<FormatString /> <FormatString />
<Name>Kategorie-Nr</Name> <Name>Kategorie-Nr</Name>
<Visible>False</Visible> <Visible>True</Visible>
<Size>100, 20</Size> <Size>100, 20</Size>
<FrameColor>WindowFrame</FrameColor> <FrameColor>WindowFrame</FrameColor>
</BaseDataItem> </BaseDataItem>
@ -220,7 +226,7 @@
<BackColor>White</BackColor> <BackColor>White</BackColor>
<FormatString /> <FormatString />
<Name>Kategoriename</Name> <Name>Kategoriename</Name>
<Visible>False</Visible> <Visible>True</Visible>
<Size>100, 20</Size> <Size>100, 20</Size>
<FrameColor>WindowFrame</FrameColor> <FrameColor>WindowFrame</FrameColor>
</BaseDataItem> </BaseDataItem>
@ -240,7 +246,7 @@
<BackColor>Silver</BackColor> <BackColor>Silver</BackColor>
<FormatString /> <FormatString />
<Name>Beschreibung</Name> <Name>Beschreibung</Name>
<Visible>False</Visible> <Visible>True</Visible>
<Size>100, 20</Size> <Size>100, 20</Size>
<FrameColor>WindowFrame</FrameColor> <FrameColor>WindowFrame</FrameColor>
</BaseDataItem> </BaseDataItem>
@ -279,7 +285,7 @@
<Text>=Globals!PageNumber</Text> <Text>=Globals!PageNumber</Text>
<Location>622, 5</Location> <Location>622, 5</Location>
<ContentAlignment>MiddleLeft</ContentAlignment> <ContentAlignment>MiddleLeft</ContentAlignment>
<Visible>False</Visible> <Visible>True</Visible>
<DrawBorder>False</DrawBorder> <DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font> <Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow> <CanGrow>False</CanGrow>
@ -306,9 +312,9 @@
<CanShrink>False</CanShrink> <CanShrink>False</CanShrink>
<StringTrimming>None</StringTrimming> <StringTrimming>None</StringTrimming>
<Text>='This Report contains : ' + count() + ' DataRows'</Text> <Text>='This Report contains : ' + count() + ' DataRows'</Text>
<Location>5, 4</Location> <Location>15, 3</Location>
<ContentAlignment>MiddleCenter</ContentAlignment> <ContentAlignment>MiddleCenter</ContentAlignment>
<Visible>False</Visible> <Visible>True</Visible>
<DrawBorder>False</DrawBorder> <DrawBorder>False</DrawBorder>
<Font>Microsoft Sans Serif, 10pt</Font> <Font>Microsoft Sans Serif, 10pt</Font>
<CanGrow>False</CanGrow> <CanGrow>False</CanGrow>

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

@ -39,10 +39,12 @@ namespace SharpReportSamples
System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("FormSheet"); 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 treeNode2 = new System.Windows.Forms.TreeNode("PullModel");
System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("PushModel"); System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("PushModel");
System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("Sample Reports", new System.Windows.Forms.TreeNode[] { System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("IList");
System.Windows.Forms.TreeNode treeNode5 = new System.Windows.Forms.TreeNode("Sample Reports", new System.Windows.Forms.TreeNode[] {
treeNode1, treeNode1,
treeNode2, treeNode2,
treeNode3}); treeNode3,
treeNode4});
this.splitContainer1 = new System.Windows.Forms.SplitContainer(); this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.treeView1 = new System.Windows.Forms.TreeView(); this.treeView1 = new System.Windows.Forms.TreeView();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
@ -85,10 +87,12 @@ namespace SharpReportSamples
treeNode2.Text = "PullModel"; treeNode2.Text = "PullModel";
treeNode3.Name = "PushModelItem"; treeNode3.Name = "PushModelItem";
treeNode3.Text = "PushModel"; treeNode3.Text = "PushModel";
treeNode4.Name = "Knoten0"; treeNode4.Name = "iListNode";
treeNode4.Text = "Sample Reports"; treeNode4.Text = "IList";
treeNode5.Name = "Knoten0";
treeNode5.Text = "Sample Reports";
this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
treeNode4}); treeNode5});
this.treeView1.Size = new System.Drawing.Size(132, 444); this.treeView1.Size = new System.Drawing.Size(132, 444);
this.treeView1.TabIndex = 0; this.treeView1.TabIndex = 0;
this.treeView1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.TreeView1MouseDoubleClick); this.treeView1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.TreeView1MouseDoubleClick);

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

@ -22,10 +22,10 @@ namespace SharpReportSamples
public partial class MainForm : Form public partial class MainForm : Form
{ {
private TreeNode formNode; private TreeNode formNode;
private TreeNode pullNode; private TreeNode pullNode;
private TreeNode pushNode; private TreeNode pushNode;
private TreeNode iListNode;
public MainForm() public MainForm()
{ {
// //
@ -42,22 +42,23 @@ namespace SharpReportSamples
string formSheetDir = @"\FormSheet\JCA.srd"; string formSheetDir = @"\FormSheet\JCA.srd";
string startupPath = Application.StartupPath; string startupPath = Application.StartupPath;
string samplesDir = @"samples\"; string samplesDir = @"SharpDevelopReports\";
int y = startupPath.IndexOf(samplesDir); int y = startupPath.IndexOf(samplesDir);
string startPath = startupPath.Substring(0,y + samplesDir.Length) + @"SampleReports\"; string startPath = startupPath.Substring(0,y + samplesDir.Length) + @"SampleReports\";
//D:\Reporting3.0_branches\SharpDevelop\samples\SharpDevelopReports\SampleReports
string pathToFormSheet = startPath + formSheetDir; string pathToFormSheet = startPath + formSheetDir;
this.formNode = this.treeView1.Nodes[0].Nodes[0]; this.formNode = this.treeView1.Nodes[0].Nodes[0];
this.pullNode = this.treeView1.Nodes[0].Nodes[1]; this.pullNode = this.treeView1.Nodes[0].Nodes[1];
this.pushNode = this.treeView1.Nodes[0].Nodes[2]; this.pushNode = this.treeView1.Nodes[0].Nodes[2];
this.iListNode = this.treeView1.Nodes[0].Nodes[3];
AddNodesToTree (this.formNode,startPath + @"FormSheet\" ); AddNodesToTree (this.formNode,startPath + @"FormSheet\" );
AddNodesToTree (this.pullNode,startPath + @"PullModel\" ); AddNodesToTree (this.pullNode,startPath + @"PullModel\" );
AddNodesToTree (this.pushNode,startPath + @"PushModel\" ); AddNodesToTree (this.pushNode,startPath + @"PushModel\" );
AddNodesToTree (this.pullNode,startPath + @"IList\" ); AddNodesToTree (this.iListNode,startPath + @"IList\" );
} }
@ -91,7 +92,7 @@ namespace SharpReportSamples
ReportEngine engine = new ReportEngine(); ReportEngine engine = new ReportEngine();
this.previewControl1.SetupAsynchron(reportName,null); this.previewControl1.SetupAsynchron(reportName,null);
} }
@ -104,19 +105,19 @@ namespace SharpReportSamples
Console.WriteLine("push"); Console.WriteLine("push");
} else { } else {
RunStandardReport(selectedNode.Tag.ToString()); RunStandardReport(selectedNode.Tag.ToString());
} }
} }
} }
} }
void TreeView1MouseDoubleClick(object sender, MouseEventArgs e) void TreeView1MouseDoubleClick(object sender, MouseEventArgs e)
{ {
SelectReport(); SelectReport();
} }
} }
} }

Loading…
Cancel
Save