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

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

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

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

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

Loading…
Cancel
Save