Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1126 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
15 changed files with 915 additions and 0 deletions
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 12 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,324 @@
@@ -0,0 +1,324 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes"?> |
||||
<SharpReport> |
||||
<section name="SharpReportCore.ReportSettings"> |
||||
<SqlParams> |
||||
<params> |
||||
<DataType value="Int32"/> |
||||
<DefaultValue value="10248"/> |
||||
<ParameterDirection value="Input"/> |
||||
<Nullable value="False"/> |
||||
<ParameterName value="@OrderID"/> |
||||
<Prompt value=""/> |
||||
</params> |
||||
</SqlParams> |
||||
<ReportType value="DataReport"/> |
||||
<CommandText value="update CustOrdersDetail"/> |
||||
<CommandType value="StoredProcedure"/> |
||||
<DataModel value="PullData"/> |
||||
<DefaultFont value="Microsoft Sans Serif, 16pt"/> |
||||
<ReportName value="SharpReport1"/> |
||||
<UseStandartPrinter value="False"/> |
||||
<DefaultMargins value="50; 50; 50; 50"/> |
||||
</section> |
||||
<section name="ReportHeader"> |
||||
<BackColor value="Color [Window]"/> |
||||
<Size value="{Width=803, Height=38}"/> |
||||
<CanGrow value="False"/> |
||||
<CanShrink value="False"/> |
||||
<Name value="ReportHeader"/> |
||||
<PageBreakAfter value="False"/> |
||||
<PageBreakBefore value="False"/> |
||||
<Location value="{X=0,Y=0}"/> |
||||
<controls/> |
||||
</section> |
||||
<section name="ReportPageHeader"> |
||||
<BackColor value="Color [Window]"/> |
||||
<Size value="{Width=803, Height=78}"/> |
||||
<CanGrow value="False"/> |
||||
<CanShrink value="False"/> |
||||
<Name value="ReportPageHeader"/> |
||||
<PageBreakAfter value="False"/> |
||||
<PageBreakBefore value="False"/> |
||||
<Location value="{X=0,Y=0}"/> |
||||
<controls> |
||||
<control type="SharpReport.ReportItems.ReportTextItem" basetype="SharpReportCore.BaseTextItem"> |
||||
<Size value="{Width=150, Height=35}"/> |
||||
<Location value="{X=50,Y=0}"/> |
||||
<Font value="Microsoft Sans Serif, 8pt"/> |
||||
<Text value="SharpReport1"/> |
||||
<FormatString value=""/> |
||||
<StringAlignment value="Near"/> |
||||
<StandartStringFormat value="[StringFormat, FormatFlags=FitBlackBox, LineLimit, NoClip]"/> |
||||
<Site value=""/> |
||||
<DrawBorder value="False"/> |
||||
<ForeColor value="Color [ControlText]"/> |
||||
<Visible value="True"/> |
||||
<CanGrow value="False"/> |
||||
<CanShrink value="False"/> |
||||
<Name value="ReportTextItem"/> |
||||
<PageBreakAfter value="False"/> |
||||
<PageBreakBefore value="False"/> |
||||
<BackColor value="Color [White]"/> |
||||
</control> |
||||
<control type="SharpReport.ReportItems.ReportTextItem" basetype="SharpReportCore.BaseTextItem"> |
||||
<Size value="{Width=231, Height=26}"/> |
||||
<Location value="{X=1,Y=40}"/> |
||||
<Font value="Microsoft Sans Serif, 8pt"/> |
||||
<Text value="ProductName"/> |
||||
<FormatString value=""/> |
||||
<StringAlignment value="Near"/> |
||||
<StandartStringFormat value="[StringFormat, FormatFlags=FitBlackBox, LineLimit, NoClip]"/> |
||||
<Site value=""/> |
||||
<DrawBorder value="False"/> |
||||
<ForeColor value="Color [ControlText]"/> |
||||
<Visible value="True"/> |
||||
<CanGrow value="False"/> |
||||
<CanShrink value="False"/> |
||||
<Name value="ReportTextItem"/> |
||||
<PageBreakAfter value="False"/> |
||||
<PageBreakBefore value="False"/> |
||||
<BackColor value="Color [White]"/> |
||||
</control> |
||||
<control type="SharpReport.ReportItems.ReportTextItem" basetype="SharpReportCore.BaseTextItem"> |
||||
<Size value="{Width=142, Height=25}"/> |
||||
<Location value="{X=350,Y=40}"/> |
||||
<Font value="Microsoft Sans Serif, 8pt"/> |
||||
<Text value="Quantity"/> |
||||
<FormatString value=""/> |
||||
<StringAlignment value="Near"/> |
||||
<StandartStringFormat value="[StringFormat, FormatFlags=FitBlackBox, LineLimit, NoClip]"/> |
||||
<Site value=""/> |
||||
<DrawBorder value="False"/> |
||||
<ForeColor value="Color [ControlText]"/> |
||||
<Visible value="True"/> |
||||
<CanGrow value="False"/> |
||||
<CanShrink value="False"/> |
||||
<Name value="ReportTextItem"/> |
||||
<PageBreakAfter value="False"/> |
||||
<PageBreakBefore value="False"/> |
||||
<BackColor value="Color [White]"/> |
||||
</control> |
||||
<control type="SharpReport.ReportItems.ReportTextItem" basetype="SharpReportCore.BaseTextItem"> |
||||
<Size value="{Width=142, Height=25}"/> |
||||
<Location value="{X=500,Y=40}"/> |
||||
<Font value="Microsoft Sans Serif, 8pt"/> |
||||
<Text value="Discount"/> |
||||
<FormatString value=""/> |
||||
<StringAlignment value="Near"/> |
||||
<StandartStringFormat value="[StringFormat, FormatFlags=FitBlackBox, LineLimit, NoClip]"/> |
||||
<Site value=""/> |
||||
<DrawBorder value="False"/> |
||||
<ForeColor value="Color [ControlText]"/> |
||||
<Visible value="True"/> |
||||
<CanGrow value="False"/> |
||||
<CanShrink value="False"/> |
||||
<Name value="ReportTextItem"/> |
||||
<PageBreakAfter value="False"/> |
||||
<PageBreakBefore value="False"/> |
||||
<BackColor value="Color [White]"/> |
||||
</control> |
||||
<control type="SharpReport.ReportItems.ReportTextItem" basetype="SharpReportCore.BaseTextItem"> |
||||
<Size value="{Width=142, Height=39}"/> |
||||
<Location value="{X=650,Y=40}"/> |
||||
<Font value="Microsoft Sans Serif, 8pt"/> |
||||
<Text value="ExtendedPrice"/> |
||||
<FormatString value=""/> |
||||
<StringAlignment value="Near"/> |
||||
<StandartStringFormat value="[StringFormat, FormatFlags=FitBlackBox, LineLimit, NoClip]"/> |
||||
<Site value=""/> |
||||
<DrawBorder value="False"/> |
||||
<ForeColor value="Color [ControlText]"/> |
||||
<Visible value="True"/> |
||||
<CanGrow value="False"/> |
||||
<CanShrink value="False"/> |
||||
<Name value="ReportTextItem"/> |
||||
<PageBreakAfter value="False"/> |
||||
<PageBreakBefore value="False"/> |
||||
<BackColor value="Color [White]"/> |
||||
</control> |
||||
<control type="SharpReport.ReportItems.ReportTextItem" basetype="SharpReportCore.BaseTextItem"> |
||||
<Size value="{Width=115, Height=25}"/> |
||||
<Location value="{X=234,Y=41}"/> |
||||
<Font value="Microsoft Sans Serif, 8pt"/> |
||||
<Text value="UnitPrice"/> |
||||
<FormatString value=""/> |
||||
<StringAlignment value="Near"/> |
||||
<StandartStringFormat value="[StringFormat, FormatFlags=FitBlackBox, LineLimit, NoClip]"/> |
||||
<Site value=""/> |
||||
<DrawBorder value="False"/> |
||||
<ForeColor value="Color [ControlText]"/> |
||||
<Visible value="True"/> |
||||
<CanGrow value="False"/> |
||||
<CanShrink value="False"/> |
||||
<Name value="ReportTextItem"/> |
||||
<PageBreakAfter value="False"/> |
||||
<PageBreakBefore value="False"/> |
||||
<BackColor value="Color [White]"/> |
||||
</control> |
||||
</controls> |
||||
</section> |
||||
<section name="ReportDetail"> |
||||
<BackColor value="Color [Window]"/> |
||||
<Size value="{Width=803, Height=38}"/> |
||||
<CanGrow value="False"/> |
||||
<CanShrink value="False"/> |
||||
<Name value="ReportDetail"/> |
||||
<PageBreakAfter value="False"/> |
||||
<PageBreakBefore value="False"/> |
||||
<Location value="{X=0,Y=0}"/> |
||||
<controls> |
||||
<control type="SharpReport.ReportItems.ReportDataItem" basetype="SharpReportCore.BaseDataItem"> |
||||
<Size value="{Width=232, Height=26}"/> |
||||
<Location value="{X=0,Y=4}"/> |
||||
<Font value="Microsoft Sans Serif, 8pt"/> |
||||
<Text value="ProductName"/> |
||||
<ColumnName value="ProductName"/> |
||||
<DataType value="System.String"/> |
||||
<BaseTableName value="Products"/> |
||||
<FormatString value=""/> |
||||
<StringAlignment value="Near"/> |
||||
<StandartStringFormat value="[StringFormat, FormatFlags=FitBlackBox, LineLimit, NoClip]"/> |
||||
<Site value=""/> |
||||
<DrawBorder value="False"/> |
||||
<ForeColor value="Color [ControlText]"/> |
||||
<Visible value="True"/> |
||||
<CanGrow value="False"/> |
||||
<CanShrink value="False"/> |
||||
<Name value="ReportDbTextItem"/> |
||||
<PageBreakAfter value="False"/> |
||||
<PageBreakBefore value="False"/> |
||||
<BackColor value="Color [White]"/> |
||||
</control> |
||||
<control type="SharpReport.ReportItems.ReportDataItem" basetype="SharpReportCore.BaseDataItem"> |
||||
<Size value="{Width=115, Height=25}"/> |
||||
<Location value="{X=234,Y=5}"/> |
||||
<Font value="Microsoft Sans Serif, 8pt"/> |
||||
<Text value="UnitPrice"/> |
||||
<ColumnName value="UnitPrice"/> |
||||
<DataType value="System.Decimal"/> |
||||
<BaseTableName value=""/> |
||||
<FormatString value=""/> |
||||
<StringAlignment value="Near"/> |
||||
<StandartStringFormat value="[StringFormat, FormatFlags=FitBlackBox, LineLimit, NoClip]"/> |
||||
<Site value=""/> |
||||
<DrawBorder value="False"/> |
||||
<ForeColor value="Color [ControlText]"/> |
||||
<Visible value="True"/> |
||||
<CanGrow value="False"/> |
||||
<CanShrink value="False"/> |
||||
<Name value="ReportDbTextItem"/> |
||||
<PageBreakAfter value="False"/> |
||||
<PageBreakBefore value="False"/> |
||||
<BackColor value="Color [White]"/> |
||||
</control> |
||||
<control type="SharpReport.ReportItems.ReportDataItem" basetype="SharpReportCore.BaseDataItem"> |
||||
<Size value="{Width=142, Height=25}"/> |
||||
<Location value="{X=350,Y=5}"/> |
||||
<Font value="Microsoft Sans Serif, 8pt"/> |
||||
<Text value="Quantity"/> |
||||
<ColumnName value="Quantity"/> |
||||
<DataType value="System.Int16"/> |
||||
<BaseTableName value="Order Details"/> |
||||
<FormatString value=""/> |
||||
<StringAlignment value="Near"/> |
||||
<StandartStringFormat value="[StringFormat, FormatFlags=FitBlackBox, LineLimit, NoClip]"/> |
||||
<Site value=""/> |
||||
<DrawBorder value="False"/> |
||||
<ForeColor value="Color [ControlText]"/> |
||||
<Visible value="True"/> |
||||
<CanGrow value="False"/> |
||||
<CanShrink value="False"/> |
||||
<Name value="ReportDbTextItem"/> |
||||
<PageBreakAfter value="False"/> |
||||
<PageBreakBefore value="False"/> |
||||
<BackColor value="Color [White]"/> |
||||
</control> |
||||
<control type="SharpReport.ReportItems.ReportDataItem" basetype="SharpReportCore.BaseDataItem"> |
||||
<Size value="{Width=142, Height=25}"/> |
||||
<Location value="{X=500,Y=5}"/> |
||||
<Font value="Microsoft Sans Serif, 8pt"/> |
||||
<Text value="Discount"/> |
||||
<ColumnName value="Discount"/> |
||||
<DataType value="System.Int32"/> |
||||
<BaseTableName value=""/> |
||||
<FormatString value=""/> |
||||
<StringAlignment value="Near"/> |
||||
<StandartStringFormat value="[StringFormat, FormatFlags=FitBlackBox, LineLimit, NoClip]"/> |
||||
<Site value=""/> |
||||
<DrawBorder value="False"/> |
||||
<ForeColor value="Color [ControlText]"/> |
||||
<Visible value="True"/> |
||||
<CanGrow value="False"/> |
||||
<CanShrink value="False"/> |
||||
<Name value="ReportDbTextItem"/> |
||||
<PageBreakAfter value="False"/> |
||||
<PageBreakBefore value="False"/> |
||||
<BackColor value="Color [White]"/> |
||||
</control> |
||||
<control type="SharpReport.ReportItems.ReportDataItem" basetype="SharpReportCore.BaseDataItem"> |
||||
<Size value="{Width=142, Height=34}"/> |
||||
<Location value="{X=650,Y=5}"/> |
||||
<Font value="Microsoft Sans Serif, 8pt"/> |
||||
<Text value="ExtendedPrice"/> |
||||
<ColumnName value="ExtendedPrice"/> |
||||
<DataType value="System.Decimal"/> |
||||
<BaseTableName value=""/> |
||||
<FormatString value=""/> |
||||
<StringAlignment value="Near"/> |
||||
<StandartStringFormat value="[StringFormat, FormatFlags=FitBlackBox, LineLimit, NoClip]"/> |
||||
<Site value=""/> |
||||
<DrawBorder value="False"/> |
||||
<ForeColor value="Color [ControlText]"/> |
||||
<Visible value="True"/> |
||||
<CanGrow value="False"/> |
||||
<CanShrink value="False"/> |
||||
<Name value="ReportDbTextItem"/> |
||||
<PageBreakAfter value="False"/> |
||||
<PageBreakBefore value="False"/> |
||||
<BackColor value="Color [White]"/> |
||||
</control> |
||||
</controls> |
||||
</section> |
||||
<section name="ReportPageFooter"> |
||||
<BackColor value="Color [Window]"/> |
||||
<Size value="{Width=803, Height=38}"/> |
||||
<CanGrow value="False"/> |
||||
<CanShrink value="False"/> |
||||
<Name value="ReportPageFooter"/> |
||||
<PageBreakAfter value="False"/> |
||||
<PageBreakBefore value="False"/> |
||||
<Location value="{X=0,Y=0}"/> |
||||
<controls> |
||||
<control type="SharpReport.ReportItems.Functions.PageNumber" basetype="SharpReportCore.BasePageNumber"> |
||||
<Size value="{Width=150, Height=25}"/> |
||||
<Location value="{X=50,Y=0}"/> |
||||
<Font value="Microsoft Sans Serif, 8pt"/> |
||||
<Text value="PageNumber"/> |
||||
<FormatString value=""/> |
||||
<StringAlignment value="Near"/> |
||||
<StandartStringFormat value="[StringFormat, FormatFlags=FitBlackBox, LineLimit, NoClip]"/> |
||||
<Site value=""/> |
||||
<DrawBorder value="False"/> |
||||
<ForeColor value="Color [ControlText]"/> |
||||
<Visible value="True"/> |
||||
<CanGrow value="False"/> |
||||
<CanShrink value="False"/> |
||||
<Name value="PageNumber"/> |
||||
<PageBreakAfter value="False"/> |
||||
<PageBreakBefore value="False"/> |
||||
<BackColor value="Color [White]"/> |
||||
</control> |
||||
</controls> |
||||
</section> |
||||
<section name="ReportFooter"> |
||||
<BackColor value="Color [Window]"/> |
||||
<Size value="{Width=803, Height=38}"/> |
||||
<CanGrow value="False"/> |
||||
<CanShrink value="False"/> |
||||
<Name value="ReportFooter"/> |
||||
<PageBreakAfter value="False"/> |
||||
<PageBreakBefore value="False"/> |
||||
<Location value="{X=0,Y=0}"/> |
||||
<controls/> |
||||
</section> |
||||
</SharpReport> |
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -0,0 +1,27 @@
@@ -0,0 +1,27 @@
|
||||
using System.Reflection; |
||||
using System.Runtime.CompilerServices; |
||||
|
||||
// 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("")] |
||||
[assembly: AssemblyDescription("")] |
||||
[assembly: AssemblyConfiguration("")] |
||||
[assembly: AssemblyCompany("")] |
||||
[assembly: AssemblyProduct("")] |
||||
[assembly: AssemblyCopyright("")] |
||||
[assembly: AssemblyTrademark("")] |
||||
[assembly: AssemblyCulture("")] |
||||
|
||||
// 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("2.0.0.1")] |
||||
|
@ -0,0 +1,148 @@
@@ -0,0 +1,148 @@
|
||||
/* |
||||
* Created by SharpDevelop. |
||||
* User: Forstmeier Helmut |
||||
* Date: 08.02.2006 |
||||
* Time: 15:24 |
||||
* |
||||
* To change this template use Tools | Options | Coding | Edit Standard Headers. |
||||
*/ |
||||
namespace ReportSamples |
||||
{ |
||||
partial class MainForm : System.Windows.Forms.Form |
||||
{ |
||||
/// <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() |
||||
{ |
||||
this.menuStrip1 = new System.Windows.Forms.MenuStrip(); |
||||
this.formSheetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.simpleFormsSheetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.pullMpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.customersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.employeeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.missingConnectionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.pushModelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.emlpoyeesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
||||
this.menuStrip1.SuspendLayout(); |
||||
this.SuspendLayout(); |
||||
//
|
||||
// menuStrip1
|
||||
//
|
||||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
this.formSheetToolStripMenuItem, |
||||
this.pullMpToolStripMenuItem, |
||||
this.pushModelToolStripMenuItem}); |
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0); |
||||
this.menuStrip1.Name = "menuStrip1"; |
||||
this.menuStrip1.Size = new System.Drawing.Size(518, 24); |
||||
this.menuStrip1.TabIndex = 0; |
||||
this.menuStrip1.Text = "menuStrip1"; |
||||
//
|
||||
// formSheetToolStripMenuItem
|
||||
//
|
||||
this.formSheetToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
this.simpleFormsSheetToolStripMenuItem}); |
||||
this.formSheetToolStripMenuItem.Name = "formSheetToolStripMenuItem"; |
||||
this.formSheetToolStripMenuItem.Size = new System.Drawing.Size(71, 20); |
||||
this.formSheetToolStripMenuItem.Text = "FormSheet"; |
||||
//
|
||||
// simpleFormsSheetToolStripMenuItem
|
||||
//
|
||||
this.simpleFormsSheetToolStripMenuItem.Name = "simpleFormsSheetToolStripMenuItem"; |
||||
this.simpleFormsSheetToolStripMenuItem.Size = new System.Drawing.Size(172, 22); |
||||
this.simpleFormsSheetToolStripMenuItem.Text = "SimpleFormsSheet"; |
||||
this.simpleFormsSheetToolStripMenuItem.Click += new System.EventHandler(this.SimpleFormsSheetClick); |
||||
//
|
||||
// pullMpToolStripMenuItem
|
||||
//
|
||||
this.pullMpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
this.customersToolStripMenuItem, |
||||
this.employeeToolStripMenuItem, |
||||
this.missingConnectionToolStripMenuItem}); |
||||
this.pullMpToolStripMenuItem.Name = "pullMpToolStripMenuItem"; |
||||
this.pullMpToolStripMenuItem.Size = new System.Drawing.Size(65, 20); |
||||
this.pullMpToolStripMenuItem.Text = "PullModell"; |
||||
//
|
||||
// customersToolStripMenuItem
|
||||
//
|
||||
this.customersToolStripMenuItem.Name = "customersToolStripMenuItem"; |
||||
this.customersToolStripMenuItem.Size = new System.Drawing.Size(173, 22); |
||||
this.customersToolStripMenuItem.Text = "Customers"; |
||||
this.customersToolStripMenuItem.Click += new System.EventHandler(this.CustomersClick); |
||||
//
|
||||
// employeeToolStripMenuItem
|
||||
//
|
||||
this.employeeToolStripMenuItem.Name = "employeeToolStripMenuItem"; |
||||
this.employeeToolStripMenuItem.Size = new System.Drawing.Size(173, 22); |
||||
this.employeeToolStripMenuItem.Text = "Employee"; |
||||
this.employeeToolStripMenuItem.Click += new System.EventHandler(this.EmployeeClick); |
||||
//
|
||||
// missingConnectionToolStripMenuItem
|
||||
//
|
||||
this.missingConnectionToolStripMenuItem.Name = "missingConnectionToolStripMenuItem"; |
||||
this.missingConnectionToolStripMenuItem.Size = new System.Drawing.Size(173, 22); |
||||
this.missingConnectionToolStripMenuItem.Text = "MissingConnection"; |
||||
this.missingConnectionToolStripMenuItem.Click += new System.EventHandler(this.MissingConnectionClick); |
||||
//
|
||||
// pushModelToolStripMenuItem
|
||||
//
|
||||
this.pushModelToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
||||
this.emlpoyeesToolStripMenuItem}); |
||||
this.pushModelToolStripMenuItem.Name = "pushModelToolStripMenuItem"; |
||||
this.pushModelToolStripMenuItem.Size = new System.Drawing.Size(70, 20); |
||||
this.pushModelToolStripMenuItem.Text = "PushModel"; |
||||
//
|
||||
// emlpoyeesToolStripMenuItem
|
||||
//
|
||||
this.emlpoyeesToolStripMenuItem.Name = "emlpoyeesToolStripMenuItem"; |
||||
this.emlpoyeesToolStripMenuItem.Size = new System.Drawing.Size(163, 22); |
||||
this.emlpoyeesToolStripMenuItem.Text = "Employees-Push"; |
||||
this.emlpoyeesToolStripMenuItem.Click += new System.EventHandler(this.EmployeesPushClick); |
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
||||
this.ClientSize = new System.Drawing.Size(518, 273); |
||||
this.Controls.Add(this.menuStrip1); |
||||
this.MainMenuStrip = this.menuStrip1; |
||||
this.Name = "MainForm"; |
||||
this.Text = "ReportSamples"; |
||||
this.menuStrip1.ResumeLayout(false); |
||||
this.menuStrip1.PerformLayout(); |
||||
this.ResumeLayout(false); |
||||
this.PerformLayout(); |
||||
} |
||||
private System.Windows.Forms.ToolStripMenuItem emlpoyeesToolStripMenuItem; |
||||
private System.Windows.Forms.ToolStripMenuItem missingConnectionToolStripMenuItem; |
||||
private System.Windows.Forms.ToolStripMenuItem employeeToolStripMenuItem; |
||||
private System.Windows.Forms.ToolStripMenuItem customersToolStripMenuItem; |
||||
private System.Windows.Forms.ToolStripMenuItem simpleFormsSheetToolStripMenuItem; |
||||
private System.Windows.Forms.ToolStripMenuItem pushModelToolStripMenuItem; |
||||
private System.Windows.Forms.ToolStripMenuItem pullMpToolStripMenuItem; |
||||
private System.Windows.Forms.ToolStripMenuItem formSheetToolStripMenuItem; |
||||
private System.Windows.Forms.MenuStrip menuStrip1; |
||||
} |
||||
} |
@ -0,0 +1,197 @@
@@ -0,0 +1,197 @@
|
||||
/* |
||||
* Created by SharpDevelop. |
||||
* User: Forstmeier Helmut |
||||
* Date: 08.02.2006 |
||||
* Time: 15:24 |
||||
* |
||||
* To change this template use Tools | Options | Coding | Edit Standard Headers. |
||||
*/ |
||||
|
||||
using System; |
||||
using System.Data; |
||||
using System.Data.Common; |
||||
using System.Drawing; |
||||
using System.Windows.Forms; |
||||
|
||||
using SharpReportCore; |
||||
|
||||
namespace ReportSamples |
||||
{ |
||||
/// <summary>
|
||||
/// Description of MainForm.
|
||||
/// </summary>
|
||||
public partial class MainForm |
||||
{ |
||||
[STAThread] |
||||
public static void Main(string[] args) |
||||
{ |
||||
Application.EnableVisualStyles(); |
||||
Application.SetCompatibleTextRenderingDefault(false); |
||||
Application.Run(new MainForm()); |
||||
} |
||||
|
||||
|
||||
|
||||
private void MissingConnection () { |
||||
try |
||||
{ |
||||
string connectionString=""; |
||||
OpenFileDialog dg = new OpenFileDialog(); |
||||
dg.Filter = "SharpReport files|*.srd"; |
||||
dg.Title = "Select a report file: "; |
||||
if (dg.ShowDialog() == DialogResult.OK) |
||||
{ |
||||
SharpReportCore.SharpReportEngine mn = new SharpReportCore.SharpReportEngine(); |
||||
SharpReportCore.ReportParameters pn = new SharpReportCore.ReportParameters(); |
||||
|
||||
// sql = "Provider=SQLOLEDB.1;Password=xxx;Persist Security Info=True;User ID=xxx;Initial Catalog=Northwind;Data Source=WS161";
|
||||
connectionString = this.ConnectionStringFromMsDataLink(); |
||||
|
||||
|
||||
// pn.ConnectionObject = new ConnectionObject(sql);
|
||||
|
||||
pn.ConnectionObject = this.ConnectionFromConnectionBuilder(connectionString); |
||||
|
||||
// pn.SqlParameters.Clear();
|
||||
// pn.SqlParameters.Add(new SharpReportCore.SqlParameter("@OrderID",System.Data.DbType.Int32,10248));
|
||||
// pn.SortColumnCollection.Add(new SortColumn("UnitPrice",System.ComponentModel.ListSortDirection.Descending));
|
||||
mn.PreviewStandartReport(dg.FileName.ToString(),pn); |
||||
// mn.PrintStandartReport(dg.FileName.ToString(),pn);
|
||||
} |
||||
} |
||||
catch(Exception er) |
||||
{ |
||||
MessageBox.Show(er.ToString(),": MainForm"); |
||||
} |
||||
} |
||||
|
||||
private void OpenPull() |
||||
{ |
||||
try |
||||
{ |
||||
OpenFileDialog dg = new OpenFileDialog(); |
||||
dg.Filter = "SharpReport files|*.srd"; |
||||
dg.Title = "Select a report file: "; |
||||
if (dg.ShowDialog() == DialogResult.OK){ |
||||
SharpReportCore.SharpReportEngine mn = new SharpReportCore.SharpReportEngine(); |
||||
mn.PreviewStandartReport(dg.FileName.ToString()); |
||||
// mn.PrintStandartReport(dg.FileName.ToString());
|
||||
|
||||
} |
||||
} |
||||
catch(Exception er) |
||||
{ |
||||
MessageBox.Show(er.ToString(),"MainForm"); |
||||
} |
||||
} |
||||
///<summary>Preferd Method to initialise the <see cref="SharpReportCore.ConnectionObject"></see>
|
||||
/// hav a look to
|
||||
/// <http://msdn2.microsoft.com/en-us/library/system.data.oledb.oledbconnectionstringbuilder(VS.80).aspx>
|
||||
/// <example><code>
|
||||
/// public void OleDbConnectionBuilderForSqlServer () {
|
||||
/// OleDbConnectionStringBuilder builder = new OleDbConnectionStringBuilder();
|
||||
/// builder["Provider"] = "SQLOLEDB.1";
|
||||
/// builder["Integrated Security"] = "SSPI";
|
||||
/// builder["Initial Catalog"] = "NorthWind";
|
||||
/// System.Console.WriteLine("{0}",builder.ConnectionString);
|
||||
/// ConnectionObject obj = new ConnectionObject(builder);
|
||||
/// Assert.IsTrue(obj.Connection.State == ConnectionState.Closed,"Connection should be closed");
|
||||
/// obj.Connection.Open();
|
||||
/// Assert.IsTrue(obj.Connection.State == ConnectionState.Open,"Connection should be opend");
|
||||
///}
|
||||
/// </code></example>
|
||||
/// </summary>
|
||||
///
|
||||
|
||||
private SharpReportCore.ConnectionObject ConnectionFromConnectionBuilder (string sql) { |
||||
System.Data.Common.DbConnectionStringBuilder builder = new System.Data.OleDb.OleDbConnectionStringBuilder(sql); |
||||
return new SharpReportCore.ConnectionObject (builder.ConnectionString); |
||||
} |
||||
|
||||
|
||||
private string ConnectionStringFromMsDataLink() { |
||||
ADODB._Connection AdoConnection; |
||||
MSDASC.DataLinks dataLink = new MSDASC.DataLinks(); |
||||
|
||||
AdoConnection = null; |
||||
AdoConnection = (ADODB._Connection) dataLink.PromptNew(); |
||||
return AdoConnection.ConnectionString; |
||||
} |
||||
|
||||
///<summary>This Report is send directly to the Printer, PrintDialog is
|
||||
/// showing when UseStandartPrinter to 'false'</summary>
|
||||
|
||||
private void OpenPushModell() |
||||
{ |
||||
string reportFileName; |
||||
try |
||||
{ |
||||
OpenFileDialog dg = new OpenFileDialog(); |
||||
dg.Filter = "SharpReport files|*.srd"; |
||||
dg.Title = "Select a report file: "; |
||||
if (dg.ShowDialog() == DialogResult.OK){ |
||||
SharpReportCore.SharpReportEngine mn = new SharpReportCore.SharpReportEngine(); |
||||
reportFileName = dg.FileName.ToString(); |
||||
DataTable table = SelectData(); |
||||
if (table != null) { |
||||
// mn.PreviewPushDataReport(reportFileName,table);
|
||||
mn.PrintPushDataReport(reportFileName,table); |
||||
} |
||||
} |
||||
} |
||||
catch (Exception){ |
||||
|
||||
} |
||||
} |
||||
|
||||
private DataTable SelectData() |
||||
{ |
||||
OpenFileDialog dg = new OpenFileDialog(); |
||||
dg.Filter = "SharpReport files|*.xsd"; |
||||
dg.Title = "Select a '.xsdfile: "; |
||||
if (dg.ShowDialog() == DialogResult.OK){ |
||||
DataSet ds = new DataSet(); |
||||
ds.ReadXml(dg.FileName); |
||||
return ds.Tables[0]; |
||||
} |
||||
return null; |
||||
} |
||||
|
||||
public MainForm() |
||||
{ |
||||
//
|
||||
// The InitializeComponent() call is required for Windows Forms designer support.
|
||||
//
|
||||
InitializeComponent(); |
||||
|
||||
//
|
||||
// TODO: Add constructor code after the InitializeComponent() call.
|
||||
//
|
||||
} |
||||
|
||||
void SimpleFormsSheetClick(object sender, System.EventArgs e) |
||||
{ |
||||
OpenPull(); |
||||
} |
||||
|
||||
void CustomersClick(object sender, System.EventArgs e) |
||||
{ |
||||
OpenPull(); |
||||
} |
||||
|
||||
void EmployeeClick(object sender, System.EventArgs e) |
||||
{ |
||||
OpenPull(); |
||||
} |
||||
|
||||
void MissingConnectionClick(object sender, System.EventArgs e) |
||||
{ |
||||
MissingConnection(); |
||||
} |
||||
|
||||
void EmployeesPushClick(object sender, System.EventArgs e) |
||||
{ |
||||
OpenPushModell(); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,123 @@
@@ -0,0 +1,123 @@
|
||||
<?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="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
||||
<value>17, 17</value> |
||||
</metadata> |
||||
</root> |
@ -0,0 +1,75 @@
@@ -0,0 +1,75 @@
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
<PropertyGroup> |
||||
<OutputType>WinExe</OutputType> |
||||
<RootNamespace>ReportSamples</RootNamespace> |
||||
<AssemblyName>ReportSamples</AssemblyName> |
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
||||
<ProjectGuid>{0D46CC0C-FC27-4258-BC0D-F4A9E617FA0E}</ProjectGuid> |
||||
<AllowUnsafeBlocks>False</AllowUnsafeBlocks> |
||||
<NoStdLib>False</NoStdLib> |
||||
<RegisterForComInterop>False</RegisterForComInterop> |
||||
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies> |
||||
<BaseAddress>4194304</BaseAddress> |
||||
<PlatformTarget>AnyCPU</PlatformTarget> |
||||
<FileAlignment>4096</FileAlignment> |
||||
<WarningLevel>4</WarningLevel> |
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> |
||||
<OutputPath>bin\Debug\</OutputPath> |
||||
<Optimize>False</Optimize> |
||||
<DefineConstants>DEBUG;TRACE</DefineConstants> |
||||
<DebugSymbols>true</DebugSymbols> |
||||
<DebugType>Full</DebugType> |
||||
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow> |
||||
</PropertyGroup> |
||||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> |
||||
<OutputPath>bin\Release\</OutputPath> |
||||
<Optimize>True</Optimize> |
||||
<DefineConstants>TRACE</DefineConstants> |
||||
<DebugSymbols>False</DebugSymbols> |
||||
<DebugType>None</DebugType> |
||||
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow> |
||||
</PropertyGroup> |
||||
<ItemGroup> |
||||
<Reference Include="System" /> |
||||
<Reference Include="System.Data" /> |
||||
<Reference Include="System.Drawing" /> |
||||
<Reference Include="System.Windows.Forms" /> |
||||
<Reference Include="System.Xml" /> |
||||
<Reference Include="SharpReportCore"> |
||||
<HintPath>..\..\..\..\..\..\AddIns\AddIns\Misc\SharpReport\SharpReportCore.dll</HintPath> |
||||
<SpecificVersion>False</SpecificVersion> |
||||
</Reference> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<Compile Include="MainForm.cs" /> |
||||
<Compile Include="MainForm.Designer.cs"> |
||||
<DependentUpon>MainForm.cs</DependentUpon> |
||||
</Compile> |
||||
<Compile Include="AssemblyInfo.cs" /> |
||||
<EmbeddedResource Include="MainForm.resx"> |
||||
<DependentUpon>MainForm.cs</DependentUpon> |
||||
</EmbeddedResource> |
||||
</ItemGroup> |
||||
<ItemGroup> |
||||
<COMReference Include="Microsoft ActiveX Data Objects 2.7 Library"> |
||||
<Guid>{EF53050B-882E-4776-B643-EDA472E8E3F2}</Guid> |
||||
<VersionMajor>2</VersionMajor> |
||||
<VersionMinor>7</VersionMinor> |
||||
<Lcid>0</Lcid> |
||||
<WrapperTool>tlbimp</WrapperTool> |
||||
<Isolated>False</Isolated> |
||||
</COMReference> |
||||
<COMReference Include="Microsoft OLE DB Service Component 1.0 Type Library"> |
||||
<Guid>{2206CEB0-19C1-11D1-89E0-00C04FD7A829}</Guid> |
||||
<VersionMajor>1</VersionMajor> |
||||
<VersionMinor>0</VersionMinor> |
||||
<Lcid>0</Lcid> |
||||
<WrapperTool>tlbimp</WrapperTool> |
||||
<Isolated>False</Isolated> |
||||
</COMReference> |
||||
</ItemGroup> |
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" /> |
||||
</Project> |
@ -0,0 +1,16 @@
@@ -0,0 +1,16 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 9.00 |
||||
# SharpDevelop 2.0.0.1100 |
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReportSamples", "ReportSamples.csproj", "{0D46CC0C-FC27-4258-BC0D-F4A9E617FA0E}" |
||||
EndProject |
||||
Global |
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
||||
Debug|Any CPU = Debug|Any CPU |
||||
Release|Any CPU = Release|Any CPU |
||||
EndGlobalSection |
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
||||
{0D46CC0C-FC27-4258-BC0D-F4A9E617FA0E}.Debug|Any CPU.Build.0 = Debug|Any CPU |
||||
{0D46CC0C-FC27-4258-BC0D-F4A9E617FA0E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
||||
{0D46CC0C-FC27-4258-BC0D-F4A9E617FA0E}.Release|Any CPU.Build.0 = Release|Any CPU |
||||
{0D46CC0C-FC27-4258-BC0D-F4A9E617FA0E}.Release|Any CPU.ActiveCfg = Release|Any CPU |
||||
EndGlobalSection |
||||
EndGlobal |
Loading…
Reference in new issue