Browse Source

Update assembly base addresses to prevent relocation.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2078 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 19 years ago
parent
commit
1cb82b76a8
  1. 3
      doc/AssemblyBaseAddresses.txt
  2. BIN
      samples/SharpReport/CompletedPushDataReport.png
  3. BIN
      samples/SharpReport/CompletedReportPullDataModelForStoredProc.png
  4. BIN
      samples/SharpReport/CreatePushDataReportWithXSD.png
  5. BIN
      samples/SharpReport/DataLinkPropertiesConnectionOptions.png
  6. BIN
      samples/SharpReport/DataLinkPropertiesConnectionOptionsSQLServer.png
  7. BIN
      samples/SharpReport/DataLinkPropertiesConnectionOptions_4SQLServer.png
  8. BIN
      samples/SharpReport/DataLinkPropertiesDialog.png
  9. BIN
      samples/SharpReport/FileNewFileCreate.png
  10. BIN
      samples/SharpReport/FileNewNewFileDialog.png
  11. BIN
      samples/SharpReport/FinishedPullDataReport.png
  12. 1
      samples/SharpReport/FormSheet/SimpleFormSheet.srd
  13. BIN
      samples/SharpReport/Logos/Bannerbeige2.gif
  14. BIN
      samples/SharpReport/Logos/SDLogo_JPG.jpg
  15. BIN
      samples/SharpReport/PreviewModeParametersQuestionStoredProc.png
  16. BIN
      samples/SharpReport/PreviewModeStoredProcBasedReport.png
  17. 1
      samples/SharpReport/PullData/CustomerswithLogo_1.srd
  18. 1
      samples/SharpReport/PullData/Employees_Hiredate.srd
  19. 1
      samples/SharpReport/PullData/MSDE/CustOrdersOrders.srd
  20. 1
      samples/SharpReport/PullData/MSDE/NorthWindSalesByYear.srd
  21. 1
      samples/SharpReport/PullData/MissingConnectionStringReport.srd
  22. BIN
      samples/SharpReport/PullDataModelForStoredProc.png
  23. BIN
      samples/SharpReport/PullDataModelForStoredProcDnD.png
  24. BIN
      samples/SharpReport/PullDataModelForStoredProcParameters.png
  25. BIN
      samples/SharpReport/PullDataModelForStoredProcQueryResults.png
  26. BIN
      samples/SharpReport/PullDataModelPopulated.png
  27. BIN
      samples/SharpReport/PullDataModelQueryResults.png
  28. BIN
      samples/SharpReport/PullDataModelTableStatement.png
  29. BIN
      samples/SharpReport/PushData/EmployesData.xsd
  30. 1
      samples/SharpReport/PushData/EmployesFromXsd.srd
  31. BIN
      samples/SharpReport/PushDataModel.png
  32. BIN
      samples/SharpReport/PushDataReportStepOne.png
  33. BIN
      samples/SharpReport/PushDataReportStepTwo.png
  34. 27
      samples/SharpReport/ReportSamples/AssemblyInfo.cs
  35. 81
      samples/SharpReport/ReportSamples/BaseSample.cs
  36. 101
      samples/SharpReport/ReportSamples/ContributersList.cs
  37. 82
      samples/SharpReport/ReportSamples/CustOrdersOrdersDetail.cs
  38. 133
      samples/SharpReport/ReportSamples/EventLogger.cs
  39. 150
      samples/SharpReport/ReportSamples/ImageResource.resx
  40. 257
      samples/SharpReport/ReportSamples/MainForm.Designer.cs
  41. 141
      samples/SharpReport/ReportSamples/MainForm.cs
  42. 48
      samples/SharpReport/ReportSamples/MissingConnection.cs
  43. 110
      samples/SharpReport/ReportSamples/MultipageUnboundPullModel.cs
  44. 49
      samples/SharpReport/ReportSamples/NorthWindSalesByYear.cs
  45. 142
      samples/SharpReport/ReportSamples/ParameterDialog.cs
  46. 86
      samples/SharpReport/ReportSamples/ReportSamples.csproj
  47. 22
      samples/SharpReport/ReportSamples/ReportSamples.sln
  48. 36
      samples/SharpReport/ReportSamples/SimplePullModel.cs
  49. 43
      samples/SharpReport/ReportSamples/SimplePushModel.cs
  50. 99
      samples/SharpReport/ReportSamples/SimpleUnboundPullModel.cs
  51. 99
      samples/SharpReport/ReportSamples/UnboundFormSheet.cs
  52. 130
      samples/SharpReport/ReportSamples/UnboundPushModel.cs
  53. BIN
      samples/SharpReport/ReportWizardBaseSettings.png
  54. BIN
      samples/SharpReport/ReportWizardPullModel.png
  55. 1
      samples/SharpReport/ReportsFromList/ContributersList.srd
  56. BIN
      samples/SharpReport/ReportsFromList/Error.png
  57. 1
      samples/SharpReport/ReportsFromList/EventLogReport.srd
  58. BIN
      samples/SharpReport/ReportsFromList/Info.png
  59. BIN
      samples/SharpReport/ReportsFromList/Warning.png
  60. BIN
      samples/SharpReport/StoredProcBasedReport_ModifyBaseSettings.png
  61. 1
      samples/SharpReport/Unbound/MultiPageUnboundPullModel.srd
  62. BIN
      samples/SharpReport/Unbound/PushModel/EmployesData.xsd
  63. 1
      samples/SharpReport/Unbound/PushModel/UnboundEmployees.srd
  64. 1
      samples/SharpReport/Unbound/UnboundPullModel.srd
  65. 1
      samples/SharpReport/Unbound/UnboundReport.srd
  66. 4
      src/Main/Base/Project/Configuration/AssemblyInfo.cs
  67. 2
      src/Main/Base/Project/ICSharpCode.SharpDevelop.csproj
  68. 2
      src/Main/ICSharpCode.SharpDevelop.Widgets/Project/ICSharpCode.SharpDevelop.Widgets.csproj

3
doc/AssemblyBaseAddresses.txt

@ -64,5 +64,6 @@ CodeAnalysis: 0x8000000 - 0x8021000 @@ -64,5 +64,6 @@ CodeAnalysis: 0x8000000 - 0x8021000
IconEditor: 0x8080000 - 0x80a1000
IconEditor.AddIn: 0x8100000 - 0x810c000
SharpDbTools: 0x8180000 - 0x819e000
ICSharpCode.SD.Widgets: 0x8240000 - 0x827c000
Next free address: 0x8240000
Next free address: 0x08300000

BIN
samples/SharpReport/CompletedPushDataReport.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

BIN
samples/SharpReport/CompletedReportPullDataModelForStoredProc.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

BIN
samples/SharpReport/CreatePushDataReportWithXSD.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

BIN
samples/SharpReport/DataLinkPropertiesConnectionOptions.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

BIN
samples/SharpReport/DataLinkPropertiesConnectionOptionsSQLServer.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

BIN
samples/SharpReport/DataLinkPropertiesConnectionOptions_4SQLServer.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

BIN
samples/SharpReport/DataLinkPropertiesDialog.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

BIN
samples/SharpReport/FileNewFileCreate.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

BIN
samples/SharpReport/FileNewNewFileDialog.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

BIN
samples/SharpReport/FinishedPullDataReport.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

1
samples/SharpReport/FormSheet/SimpleFormSheet.srd

File diff suppressed because one or more lines are too long

BIN
samples/SharpReport/Logos/Bannerbeige2.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

BIN
samples/SharpReport/Logos/SDLogo_JPG.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

BIN
samples/SharpReport/PreviewModeParametersQuestionStoredProc.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 KiB

BIN
samples/SharpReport/PreviewModeStoredProcBasedReport.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

1
samples/SharpReport/PullData/CustomerswithLogo_1.srd

File diff suppressed because one or more lines are too long

1
samples/SharpReport/PullData/Employees_Hiredate.srd

File diff suppressed because one or more lines are too long

1
samples/SharpReport/PullData/MSDE/CustOrdersOrders.srd

File diff suppressed because one or more lines are too long

1
samples/SharpReport/PullData/MSDE/NorthWindSalesByYear.srd

File diff suppressed because one or more lines are too long

1
samples/SharpReport/PullData/MissingConnectionStringReport.srd

File diff suppressed because one or more lines are too long

BIN
samples/SharpReport/PullDataModelForStoredProc.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

BIN
samples/SharpReport/PullDataModelForStoredProcDnD.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

BIN
samples/SharpReport/PullDataModelForStoredProcParameters.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.3 KiB

BIN
samples/SharpReport/PullDataModelForStoredProcQueryResults.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

BIN
samples/SharpReport/PullDataModelPopulated.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

BIN
samples/SharpReport/PullDataModelQueryResults.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

BIN
samples/SharpReport/PullDataModelTableStatement.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

BIN
samples/SharpReport/PushData/EmployesData.xsd

Binary file not shown.

1
samples/SharpReport/PushData/EmployesFromXsd.srd

File diff suppressed because one or more lines are too long

BIN
samples/SharpReport/PushDataModel.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

BIN
samples/SharpReport/PushDataReportStepOne.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

BIN
samples/SharpReport/PushDataReportStepTwo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

27
samples/SharpReport/ReportSamples/AssemblyInfo.cs

@ -1,27 +0,0 @@ @@ -1,27 +0,0 @@
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")]

81
samples/SharpReport/ReportSamples/BaseSample.cs

@ -1,81 +0,0 @@ @@ -1,81 +0,0 @@
/*
* Created by SharpDevelop.
* User: Forstmeier Helmut
* Date: 14.08.2006
* Time: 22:28
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Data;
using System.Windows.Forms;
using SharpReportCore;
namespace ReportSamples
{
/// <summary>
/// Description of BaseSample.
/// </summary>
public class BaseSample{
string msdeConnection = @"Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Northwind";
SharpReportEngine engine = new SharpReportCore.SharpReportEngine();
string reportName;
public BaseSample(){
engine = new SharpReportCore.SharpReportEngine();
}
public virtual void Run() {
try
{
OpenFileDialog dg = new OpenFileDialog();
dg.Filter = "SharpReport files|*.srd";
dg.Title = "Select a report file: ";
if (dg.ShowDialog() == DialogResult.OK){
this.reportName = dg.FileName;
}
}
catch(Exception er)
{
MessageBox.Show(er.ToString(),"MainForm");
}
}
protected 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;
}
protected SharpReportEngine Engine {
get {
return engine;
}
}
protected string ReportName {
get {
return reportName;
}
}
protected string MSDEConnection {
get {
return msdeConnection;
}
}
}
}

101
samples/SharpReport/ReportSamples/ContributersList.cs

@ -1,101 +0,0 @@ @@ -1,101 +0,0 @@
/*
* Created by SharpDevelop.
* User: Forstmeier Peter
* Date: 24.07.2006
* Time: 11:55
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Windows.Forms;
using SharpReportCore;
namespace ReportSamples{
/// <summary>
/// Description of ReportFromCollection.
/// </summary>
public class ContributersList:BaseSample
{
public ContributersList(){
}
public override void Run () {
try
{
base.Run();
if (!String.IsNullOrEmpty(base.ReportName)) {
TestList list = CreateTestList();
base.Engine.PreviewPushDataReport(base.ReportName,list);
}
}
catch (Exception e){
MessageBox.Show(e.Message,this.ToString());
}
}
private TestList CreateTestList () {
TestList list = new TestList();
list.Add(new LastFirst("Bernhard","Spuida","Core"));
list.Add(new LastFirst("Daniel","Grunwald","Core"));
list.Add(new LastFirst("Christoph","Wille","Core"));
list.Add(new LastFirst("Markus","Palme","Prg."));
list.Add(new LastFirst("Georg","Brandl","Prg."));
list.Add(new LastFirst("David","Srbecky","Debugger"));
list.Add(new LastFirst("Dickon","Field","DBTools"));
list.Add(new LastFirst("Matt","Ward","NUnit"));
list.Add(new LastFirst("Troy","Simpson","Prg."));
list.Add(new LastFirst("Peter","Forstmeier","SharpReport"));
list.Add(new LastFirst("David","Alpert","Prg."));
return list;
}
}
public class LastFirst {
string last;
string first;
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>{
}
}

82
samples/SharpReport/ReportSamples/CustOrdersOrdersDetail.cs

@ -1,82 +0,0 @@ @@ -1,82 +0,0 @@
/*
* Created by SharpDevelop.
* User: Forstmeier Helmut
* Date: 23.08.2006
* Time: 22:24
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Windows.Forms;
using SharpReportCore;
namespace ReportSamples
{
/// <summary>
/// Description of CustOrdersDetail.
/// </summary>
public class CustOrdersOrdersDetail:BaseSample
{
string paramName;
public CustOrdersOrdersDetail()
{
}
public override void Run()
{
try {
base.Run();
if (!String.IsNullOrEmpty(base.ReportName)) {
ConnectionObject con = new ConnectionObject(base.MSDEConnection);
ReportParameters par = base.Engine.LoadParameters(base.ReportName);
par.ConnectionObject = con;
using (ParameterDialog dialog = new ParameterDialog(par.SqlParameters)){
dialog.ShowDialog();
if (dialog.DialogResult == DialogResult.OK) {
SqlParameter p = par.SqlParameters.Find("@CustomerID");
this.paramName = (string)p.ParameterValue;
base.Engine.SectionRendering += new EventHandler<SectionRenderEventArgs>(CustOrdersOrdersPrinting);
base.Engine.PreviewStandartReport(base.ReportName,par);
}
}
}
} catch (Exception e) {
MessageBox.Show(e.Message,this.ToString());
}
}
private void CustOrdersOrdersPrinting (object sender,SectionRenderEventArgs e) {
switch (e.CurrentSection) {
case GlobalEnums.enmSection.ReportHeader:
break;
case GlobalEnums.enmSection.ReportPageHeader:
BaseDataItem bdi = e.Section.Items.Find("CustomerID") as BaseDataItem;
bdi.DbValue = "[" + this.paramName + "]";
break;
case GlobalEnums.enmSection.ReportDetail:
break;
case GlobalEnums.enmSection.ReportPageFooter:
break;
case GlobalEnums.enmSection.ReportFooter:
break;
default:
break;
}
}
}
}

133
samples/SharpReport/ReportSamples/EventLogger.cs

@ -1,133 +0,0 @@ @@ -1,133 +0,0 @@
/*
* Created by SharpDevelop.
* User: Forstmeier Peter
* Date: 26.07.2006
* Time: 08:07
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Collections;
using System.Diagnostics;
using System.Drawing;
using System.Resources;
using System.Windows.Forms;
using SharpReportCore;
//using System.Collections.Generic;
namespace ReportSamples
{
// public class EventList: List<EventLogEntry>{
// }
//
//
/// <summary>
/// Description of EventLogger.
/// </summary>
public class EventLogger:BaseSample
{
ImageList imageList ;
public EventLogger():base()
{
}
public override void Run() {
EventLog ev = new EventLog();
ev.Log = "System";
ev.MachineName = "."; // Lokale Maschine
FillImageList();
try
{
base.Run();
if (!String.IsNullOrEmpty(base.ReportName)) {
// EventLog dosn't implement IList, so we have to convert it to the 'cheapest'
// IList implementaion
ArrayList ar = new ArrayList();
ar.AddRange(ev.Entries);
SharpReportCore.SharpReportEngine engine = new SharpReportCore.SharpReportEngine();
engine.SectionRendering += new EventHandler<SectionRenderEventArgs>(PushPrinting);
engine.SectionRendered += new EventHandler<SectionRenderEventArgs>(PushPrinted);
engine.PreviewPushDataReport(base.ReportName,ar);
}
}
catch (Exception e){
MessageBox.Show(e.Message,this.ToString());
}
}
private void PushPrinting (object sender,SectionRenderEventArgs e) {
switch (e.CurrentSection) {
case GlobalEnums.enmSection.ReportHeader:
break;
case GlobalEnums.enmSection.ReportPageHeader:
break;
case GlobalEnums.enmSection.ReportDetail:
RowItem ri = e.Section.Items[0] as RowItem;
if (ri != null) {
BaseDataItem r = (BaseDataItem)ri.Items.Find("reportDbTextItem1");
if (r != null) {
BaseImageItem image = (BaseImageItem)ri.Items.Find("Image");
switch (r.DbValue) {
case "Information":
image.Image = this.imageList.Images["Info"];
break;
case "Error":
image.Image = this.imageList.Images["Error"];
break;
case "Warning" :
image.Image = this.imageList.Images["Warning"];
break;
}
}
}
break;
case GlobalEnums.enmSection.ReportPageFooter:
break;
case GlobalEnums.enmSection.ReportFooter:
break;
default:
break;
}
}
private void PushPrinted (object sender,SectionRenderEventArgs e) {
//// System.Console.WriteLine("MainForm:Rendering done for <{0}>",e.CurrentSection);
// System.Console.WriteLine("----------");
}
void FillImageList() {
string ns = this.GetType().Namespace;
System.Console.WriteLine("\t{0}",ns);
ResourceManager resMan = new ResourceManager(ns +
".ImageResource", this.GetType().Assembly);
this.imageList = new ImageList();
Image i = (Image)resMan.GetObject("Error");
this.imageList.Images.Add("Error",i);
i = (Image)resMan.GetObject("Info");
this.imageList.Images.Add("Info",i);
i = (Image)resMan.GetObject("Warning");
this.imageList.Images.Add("Warning",i);
}
}
}

150
samples/SharpReport/ReportSamples/ImageResource.resx

@ -1,150 +0,0 @@ @@ -1,150 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=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>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="Error" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABQAAAASCAIAAADUsmlHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAOwQAA
DsEBuJFr7QAAAJ9JREFUOE+tk0sOwCAIRO3VG+9toagMvzQxNS4M8oQBucYY7XgRHFdvDXfqw1HdhTCU
DO5pDG8YOGLuCYcrrORbBrOXhX1gBXjfbR4snP/d1SAnkzDy4S0MPiN7tV6cqsDgBYzaYuVX5r9H/tK8
a3ZS7RoWtXWfk1YlDUs/6d1LWBpe/W3CkEwGg3lyslMlmCNzeEpYQIqJjx/JanRT+wO0cLqKIdfSPQAA
AABJRU5ErkJggg==
</value>
</data>
<data name="Info" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABQAAAASCAIAAADUsmlHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAOwQAA
DsEBuJFr7QAAAKVJREFUOE+tU0EOgCAM068bfmbCt3BaU0c3MDESLsC6dltZW2vL52VgWWUrccewk9Xf
ApPHXerk6TkLzCKxuepeBT8EWy4Bozue4waP1IpOIc/BpA1lduRD5lS2KP8JbPXI2GLDUDMblHebc/J4
IknTzd2yCr8MWVwUTHM5yacAIdSqkaIZGY0UhEVRyuxzwYziqi4g/Qa8pOD3X5VGzL7anHn+egDB4FCz
M7fsxAAAAABJRU5ErkJggg==
</value>
</data>
<data name="Warning" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABQAAAASCAIAAADUsmlHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAOwQAA
DsEBuJFr7QAAAI5JREFUOE+dk+EWwBAIRu3VHe9tkTWqr5lO/7huoavWmo6DYDdKTpxoQ7Misi+1pED8
FlxycXkH7qUuieQR3JlRuSvXsGjlBYLOf8BWvsBzt8rsXjuE6SAKdZySvzC45OjaI1g9GFc+ywdstbTp
2QrlJ7DIIWxrth9m6XlnNEmrzfzveeEzZUiicQ0mmZduRR/i7LeU+AcAAAAASUVORK5CYII=
</value>
</data>
</root>

257
samples/SharpReport/ReportSamples/MainForm.Designer.cs generated

@ -1,257 +0,0 @@ @@ -1,257 +0,0 @@
/*
* 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.components = new System.ComponentModel.Container();
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
this.formSheetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.simpleFormsSheetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.unboundFormSheetToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.pullMpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.employeeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.missingConnectionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.northWindSalesByYearToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.custOrdersDetailToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.pushModelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.emlpoyeesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.unboundToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.unboundPullModelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.multipageUnboundPullModelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.unboundPuskModelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.listDatasourceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.simpleListToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.eventLoggerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components);
this.menuStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit();
this.SuspendLayout();
//
// menuStrip1
//
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.formSheetToolStripMenuItem,
this.pullMpToolStripMenuItem,
this.pushModelToolStripMenuItem,
this.unboundToolStripMenuItem,
this.listDatasourceToolStripMenuItem});
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.unboundFormSheetToolStripMenuItem});
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(180, 22);
this.simpleFormsSheetToolStripMenuItem.Text = "SimpleFormSheet";
this.simpleFormsSheetToolStripMenuItem.Click += new System.EventHandler(this.SimpleFormsSheet);
//
// unboundFormSheetToolStripMenuItem
//
this.unboundFormSheetToolStripMenuItem.Name = "unboundFormSheetToolStripMenuItem";
this.unboundFormSheetToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.unboundFormSheetToolStripMenuItem.Text = "UnboundFormSheet";
this.unboundFormSheetToolStripMenuItem.Click += new System.EventHandler(this.UnboundFormSheet);
//
// pullMpToolStripMenuItem
//
this.pullMpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.employeeToolStripMenuItem,
this.missingConnectionToolStripMenuItem,
this.toolStripMenuItem1});
this.pullMpToolStripMenuItem.Name = "pullMpToolStripMenuItem";
this.pullMpToolStripMenuItem.Size = new System.Drawing.Size(65, 20);
this.pullMpToolStripMenuItem.Text = "PullModell";
//
// employeeToolStripMenuItem
//
this.employeeToolStripMenuItem.Name = "employeeToolStripMenuItem";
this.employeeToolStripMenuItem.Size = new System.Drawing.Size(173, 22);
this.employeeToolStripMenuItem.Text = "PullModel";
this.employeeToolStripMenuItem.Click += new System.EventHandler(this.PullModelClick);
//
// 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);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.northWindSalesByYearToolStripMenuItem,
this.custOrdersDetailToolStripMenuItem});
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(173, 22);
this.toolStripMenuItem1.Text = "From MSDE";
//
// northWindSalesByYearToolStripMenuItem
//
this.northWindSalesByYearToolStripMenuItem.Name = "northWindSalesByYearToolStripMenuItem";
this.northWindSalesByYearToolStripMenuItem.Size = new System.Drawing.Size(195, 22);
this.northWindSalesByYearToolStripMenuItem.Text = "NorthWindSalesByYear";
this.northWindSalesByYearToolStripMenuItem.Click += new System.EventHandler(this.NorthWindSalesByYearClick);
//
// custOrdersDetailToolStripMenuItem
//
this.custOrdersDetailToolStripMenuItem.Name = "custOrdersDetailToolStripMenuItem";
this.custOrdersDetailToolStripMenuItem.Size = new System.Drawing.Size(195, 22);
this.custOrdersDetailToolStripMenuItem.Text = "CustOrdersOrders";
this.custOrdersDetailToolStripMenuItem.Click += new System.EventHandler(this.CustOrdersDetailClick);
//
// 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(138, 22);
this.emlpoyeesToolStripMenuItem.Text = "SimplePush";
this.emlpoyeesToolStripMenuItem.Click += new System.EventHandler(this.SimplePushClick);
//
// unboundToolStripMenuItem
//
this.unboundToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.unboundPullModelToolStripMenuItem,
this.multipageUnboundPullModelToolStripMenuItem,
this.unboundPuskModelToolStripMenuItem});
this.unboundToolStripMenuItem.Name = "unboundToolStripMenuItem";
this.unboundToolStripMenuItem.Size = new System.Drawing.Size(62, 20);
this.unboundToolStripMenuItem.Text = "Unbound";
//
// unboundPullModelToolStripMenuItem
//
this.unboundPullModelToolStripMenuItem.Name = "unboundPullModelToolStripMenuItem";
this.unboundPullModelToolStripMenuItem.Size = new System.Drawing.Size(218, 22);
this.unboundPullModelToolStripMenuItem.Text = "UnboundPullModel";
this.unboundPullModelToolStripMenuItem.Click += new System.EventHandler(this.UnboundPullModelClick);
//
// multipageUnboundPullModelToolStripMenuItem
//
this.multipageUnboundPullModelToolStripMenuItem.Name = "multipageUnboundPullModelToolStripMenuItem";
this.multipageUnboundPullModelToolStripMenuItem.Size = new System.Drawing.Size(218, 22);
this.multipageUnboundPullModelToolStripMenuItem.Text = "MultipageUnboundPullModel";
this.multipageUnboundPullModelToolStripMenuItem.Click += new System.EventHandler(this.MultiPageUnboundPullModelClick);
//
// unboundPuskModelToolStripMenuItem
//
this.unboundPuskModelToolStripMenuItem.Name = "unboundPuskModelToolStripMenuItem";
this.unboundPuskModelToolStripMenuItem.Size = new System.Drawing.Size(218, 22);
this.unboundPuskModelToolStripMenuItem.Text = "UnboundPushModel";
this.unboundPuskModelToolStripMenuItem.Click += new System.EventHandler(this.UnboundPushModelClick);
//
// listDatasourceToolStripMenuItem
//
this.listDatasourceToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.simpleListToolStripMenuItem,
this.eventLoggerToolStripMenuItem});
this.listDatasourceToolStripMenuItem.Name = "listDatasourceToolStripMenuItem";
this.listDatasourceToolStripMenuItem.Size = new System.Drawing.Size(90, 20);
this.listDatasourceToolStripMenuItem.Text = "ListDatasource";
//
// simpleListToolStripMenuItem
//
this.simpleListToolStripMenuItem.Name = "simpleListToolStripMenuItem";
this.simpleListToolStripMenuItem.Size = new System.Drawing.Size(161, 22);
this.simpleListToolStripMenuItem.Text = "ContributersList";
this.simpleListToolStripMenuItem.Click += new System.EventHandler(this.ContributersListClick);
//
// eventLoggerToolStripMenuItem
//
this.eventLoggerToolStripMenuItem.Name = "eventLoggerToolStripMenuItem";
this.eventLoggerToolStripMenuItem.Size = new System.Drawing.Size(161, 22);
this.eventLoggerToolStripMenuItem.Text = "EventLogger";
this.eventLoggerToolStripMenuItem.Click += new System.EventHandler(this.EventLoggerClick);
//
// errorProvider1
//
this.errorProvider1.ContainerControl = this;
//
// 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();
((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
private System.Windows.Forms.ToolStripMenuItem custOrdersDetailToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem northWindSalesByYearToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem eventLoggerToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem simpleListToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem listDatasourceToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem unboundFormSheetToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem unboundPuskModelToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem multipageUnboundPullModelToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem unboundPullModelToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem unboundToolStripMenuItem;
private System.Windows.Forms.ErrorProvider errorProvider1;
private System.Windows.Forms.ToolStripMenuItem emlpoyeesToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem missingConnectionToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem employeeToolStripMenuItem;
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;
}
}

141
samples/SharpReport/ReportSamples/MainForm.cs

@ -1,141 +0,0 @@ @@ -1,141 +0,0 @@
/*
* Created by SharpDevelop.
* User: Forstmeier Peter
* 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());
}
public MainForm()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
}
#region FormsSheet
void SimpleFormsSheet(object sender, System.EventArgs e)
{
SimplePullModel simplePull = new SimplePullModel();
simplePull.Run();
}
void UnboundFormSheet(object sender, System.EventArgs e){
UnboundFormSheet unboundFormSheet = new UnboundFormSheet();
unboundFormSheet.Run();
}
#endregion
#region PullModel
void PullModelClick(object sender, System.EventArgs e)
{
SimplePullModel simplePull = new SimplePullModel();
simplePull.Run();
}
void MissingConnectionClick(object sender, System.EventArgs e)
{
MissingConnection missingConnection = new MissingConnection();
missingConnection.Run();
}
#endregion
#region PushModel
void SimplePushClick(object sender, System.EventArgs e)
{
SimplePushModel simplePush = new SimplePushModel();
simplePush.Run();
}
#endregion
#region Unbound
void UnboundPullModelClick(object sender, System.EventArgs e){
SimpleUnboundPullModel sm = new SimpleUnboundPullModel();
sm.Run();
}
void MultiPageUnboundPullModelClick(object sender, System.EventArgs e)
{
MultiPageUnboundPullModel mp = new MultiPageUnboundPullModel();
mp.Run();
}
void UnboundPushModelClick(object sender, System.EventArgs e)
{
UnboundPushModel u = new UnboundPushModel();
u.Run();
}
#endregion
#region List as DataSource
void ContributersListClick(object sender, System.EventArgs e)
{
ContributersList r = new ContributersList();
r.Run();
}
void EventLoggerClick(object sender, System.EventArgs e)
{
EventLogger el = new EventLogger();
el.Run();
}
#endregion
#region MSDE
void NorthWindSalesByYearClick(object sender, System.EventArgs e)
{
NorthWindSalesByYear northWindSalesByYear = new NorthWindSalesByYear();
northWindSalesByYear.Run();
}
void CustOrdersDetailClick(object sender, System.EventArgs e)
{
CustOrdersOrdersDetail custOrderDetail = new CustOrdersOrdersDetail();
custOrderDetail.Run();
}
#endregion
}
}

48
samples/SharpReport/ReportSamples/MissingConnection.cs

@ -1,48 +0,0 @@ @@ -1,48 +0,0 @@
/*
* Created by SharpDevelop.
* User: Forstmeier Helmut
* Date: 14.08.2006
* Time: 22:37
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Data;
using System.Data.OleDb;
using System.Windows.Forms;
using SharpReportCore;
namespace ReportSamples
{
/// <summary>
/// Description of MissingConnection.
/// </summary>
public class MissingConnection:BaseSample
{
string conString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\CSharp\samples\Nwind.mdb;Persist Security Info=False";
public MissingConnection(){
}
public override void Run(){
base.Run();
ReportParameters p = base.Engine.LoadParameters(base.ReportName);
/* this snippet shows a different method to get a valid ConnectionObject
ConnectionObject con = new ConnectionObject(this.conString);
p.ConnectionObject = con;
*/
try {
System.Data.OleDb.OleDbConnectionStringBuilder b = new OleDbConnectionStringBuilder(this.conString); p.ConnectionObject = new ConnectionObject(b);
base.Engine.PreviewStandartReport(base.ReportName,p);
} catch (Exception e) {
MessageBox.Show(e.Message,this.ToString());
}
}
}
}

110
samples/SharpReport/ReportSamples/MultipageUnboundPullModel.cs

@ -1,110 +0,0 @@ @@ -1,110 +0,0 @@
/*
* Created by SharpDevelop.
* User: Forstmeier Helmut
* Date: 29.06.2006
* Time: 13:02
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Windows.Forms;
using SharpReportCore;
namespace ReportSamples{
/// <summary>
/// Description of MultipageUnboundPullModel.
/// </summary>
public class MultiPageUnboundPullModel :BaseSample{
int rowNr;
int rowsPerPage;
System.DateTime startTime;
System.DateTime endTime;
public MultiPageUnboundPullModel(){
}
public override void Run() {
try{
base.Run();
if (!String.IsNullOrEmpty(base.ReportName)) {
SharpReportCore.SharpReportEngine mn = new SharpReportCore.SharpReportEngine();
base.Engine.SectionRendering += new EventHandler<SectionRenderEventArgs>(MultipagePrinting);
base.Engine.SectionRendered += new EventHandler<SectionRenderEventArgs>(MultipagePrinted);
this.startTime = System.DateTime.Now;
base.Engine.PreviewStandartReport(base.ReportName);
}
}
catch(Exception er){
MessageBox.Show(er.ToString(),this.ToString());
}
}
private void MultipagePrinting (object sender,SectionRenderEventArgs e) {
CheckItems(e.Section.Items);
switch (e.CurrentSection) {
case GlobalEnums.enmSection.ReportHeader:
break;
case GlobalEnums.enmSection.ReportPageHeader:
System.Console.WriteLine("");
this.rowsPerPage = 0;
break;
case GlobalEnums.enmSection.ReportDetail:
this.rowNr ++;
this.rowsPerPage ++;
RowItem ri = e.Section.Items[0] as RowItem;
if (ri != null) {
if (this.rowNr %2 == 0) {
ri.DrawBorder = true;
} else {
ri.DrawBorder = false;
}
}
break;
case GlobalEnums.enmSection.ReportPageFooter:
BaseDataItem bdi = e.Section.Items.Find("ItemsPerPage") as BaseDataItem;
if (bdi != null) {
bdi.DbValue = this.rowsPerPage.ToString();
}
break;
case GlobalEnums.enmSection.ReportFooter:
this.endTime = System.DateTime.Now;
BaseDataItem b = e.Section.Items.Find("reportDbTextItem1")as BaseDataItem;
if (b != null) {
b.FormatString = "t";
b.DbValue = (this.endTime - this.startTime).ToString();
}
break;
default:
break;
}
}
private void MultipagePrinted (object sender,SectionRenderEventArgs e) {
// System.Console.WriteLine("---Rendering done <{0}>-----",e.CurrentSection);
}
private void CheckItems (ReportItemCollection items) {
// System.Console.WriteLine("\t<{0}> Items",items.Count );
foreach (BaseReportItem i in items) {
IContainerItem container = i as IContainerItem;
if (container != null) {
// System.Console.WriteLine("\t\tContainer found");
CheckItems (container.Items);
}
}
}
}
}

49
samples/SharpReport/ReportSamples/NorthWindSalesByYear.cs

@ -1,49 +0,0 @@ @@ -1,49 +0,0 @@
/*
* Created by SharpDevelop.
* User: Forstmeier Helmut
* Date: 16.08.2006
* Time: 11:10
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Windows.Forms;
using SharpReportCore;
namespace ReportSamples
{
/// <summary>
/// Description of StoredProcedure.
/// </summary>
public class NorthWindSalesByYear:BaseSample
{
// string conString = @"Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Northwind";
public NorthWindSalesByYear():base()
{
}
public override void Run(){
try {
base.Run();
if (!String.IsNullOrEmpty(base.ReportName)) {
ConnectionObject con = new ConnectionObject(base.MSDEConnection);
ReportParameters par = base.Engine.LoadParameters(base.ReportName);
par.ConnectionObject = con;
par.SqlParameters.Clear();
par.SqlParameters.Add(new SqlParameter("@Beginning_Date",
System.Data.DbType.DateTime,
"01/01/1997"));
par.SqlParameters.Add(new SqlParameter("@Ending_Date",
System.Data.DbType.DateTime,
"31.01.1997"));
base.Engine.PreviewStandartReport(base.ReportName,par);
}
} catch (Exception e) {
MessageBox.Show(e.Message,this.ToString());
}
}
}
}

142
samples/SharpReport/ReportSamples/ParameterDialog.cs

@ -1,142 +0,0 @@ @@ -1,142 +0,0 @@
/*
* Created by SharpDevelop.
* User: Forstmeier Helmut
* Date: 09.08.2006
* Time: 13:55
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using SharpReportCore;
namespace ReportSamples{
/// <summary>
/// Description of ParameterDialog.
/// </summary>
public class ParameterDialog : System.Windows.Forms.Form
{
private SqlParametersCollection collection;
public ParameterDialog(SqlParametersCollection collection):this(){
this.collection = collection;
this.dataGrid1.DataSource = this.collection;
}
public ParameterDialog()
{
//
// The InitializeComponent() call is required for Windows Forms designer support.
//
InitializeComponent();
}
#region Designer generated
/// <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.dataGrid1 = new System.Windows.Forms.DataGrid();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.cancelButton = new System.Windows.Forms.Button();
this.okButton = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
this.tableLayoutPanel1.SuspendLayout();
this.SuspendLayout();
//
// dataGrid1
//
this.dataGrid1.DataMember = "";
this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dataGrid1.Location = new System.Drawing.Point(48, 26);
this.dataGrid1.Name = "dataGrid1";
this.dataGrid1.Size = new System.Drawing.Size(363, 120);
this.dataGrid1.TabIndex = 1;
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 2;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 77.28119F));
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 22.71881F));
this.tableLayoutPanel1.Controls.Add(this.cancelButton, 1, 0);
this.tableLayoutPanel1.Controls.Add(this.okButton, 0, 0);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;
this.tableLayoutPanel1.Location = new System.Drawing.Point(10, 175);
this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(10, 3, 10, 3);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 1;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(457, 30);
this.tableLayoutPanel1.TabIndex = 3;
//
// cancelButton
//
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelButton.Dock = System.Windows.Forms.DockStyle.Right;
this.cancelButton.Location = new System.Drawing.Point(374, 3);
this.cancelButton.Name = "cancelButton";
this.cancelButton.Size = new System.Drawing.Size(80, 24);
this.cancelButton.TabIndex = 0;
this.cancelButton.Text = "Cancel";
this.cancelButton.UseVisualStyleBackColor = true;
//
// okButton
//
this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this.okButton.Dock = System.Windows.Forms.DockStyle.Right;
this.okButton.Location = new System.Drawing.Point(275, 3);
this.okButton.Name = "okButton";
this.okButton.Size = new System.Drawing.Size(75, 24);
this.okButton.TabIndex = 1;
this.okButton.Text = "Ok";
this.okButton.UseVisualStyleBackColor = true;
//
// ParameterDialog
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.cancelButton;
this.ClientSize = new System.Drawing.Size(477, 215);
this.ControlBox = false;
this.Controls.Add(this.tableLayoutPanel1);
this.Controls.Add(this.dataGrid1);
this.Name = "ParameterDialog";
this.Padding = new System.Windows.Forms.Padding(10);
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "ParameterDialog";
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
this.tableLayoutPanel1.ResumeLayout(false);
this.ResumeLayout(false);
}
private System.Windows.Forms.Button okButton;
private System.Windows.Forms.Button cancelButton;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.DataGrid dataGrid1;
#endregion
}
}

86
samples/SharpReport/ReportSamples/ReportSamples.csproj

@ -1,86 +0,0 @@ @@ -1,86 +0,0 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<OutputType>Exe</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" />
</ItemGroup>
<ItemGroup>
<Compile Include="MainForm.cs" />
<Compile Include="MainForm.Designer.cs">
<DependentUpon>MainForm.cs</DependentUpon>
</Compile>
<Compile Include="AssemblyInfo.cs" />
<Compile Include="SimpleUnboundPullModel.cs" />
<Compile Include="MultipageUnboundPullModel.cs" />
<Compile Include="UnboundPushModel.cs" />
<Compile Include="UnboundFormSheet.cs" />
<Compile Include="ContributersList.cs" />
<Compile Include="EventLogger.cs" />
<EmbeddedResource Include="ImageResource.resx" />
<Compile Include="BaseSample.cs" />
<Compile Include="SimplePullModel.cs" />
<Compile Include="MissingConnection.cs" />
<Compile Include="SimplePushModel.cs" />
<Compile Include="NorthWindSalesByYear.cs" />
<Compile Include="CustOrdersOrdersDetail.cs" />
<Compile Include="ParameterDialog.cs" />
</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>
<ProjectReference Include="..\..\..\src\AddIns\Misc\SharpReport\SharpReportCore\SharpReportCore.csproj">
<Project>{4B2239FF-8FD6-431D-9D22-1B8049BA6917}</Project>
<Name>SharpReportCore</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
</Project>

22
samples/SharpReport/ReportSamples/ReportSamples.sln

@ -1,22 +0,0 @@ @@ -1,22 +0,0 @@
Microsoft Visual Studio Solution File, Format Version 9.00
# SharpDevelop 2.0.0.1587
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReportSamples", "ReportSamples.csproj", "{0D46CC0C-FC27-4258-BC0D-F4A9E617FA0E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpReportCore", "..\..\..\src\AddIns\Misc\SharpReport\SharpReportCore\SharpReportCore.csproj", "{4B2239FF-8FD6-431D-9D22-1B8049BA6917}"
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
{4B2239FF-8FD6-431D-9D22-1B8049BA6917}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4B2239FF-8FD6-431D-9D22-1B8049BA6917}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4B2239FF-8FD6-431D-9D22-1B8049BA6917}.Release|Any CPU.Build.0 = Release|Any CPU
{4B2239FF-8FD6-431D-9D22-1B8049BA6917}.Release|Any CPU.ActiveCfg = Release|Any CPU
EndGlobalSection
EndGlobal

36
samples/SharpReport/ReportSamples/SimplePullModel.cs

@ -1,36 +0,0 @@ @@ -1,36 +0,0 @@
/*
* Created by SharpDevelop.
* User: Forstmeier Helmut
* Date: 14.08.2006
* Time: 22:37
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Windows.Forms;
using SharpReportCore;
namespace ReportSamples
{
/// <summary>
/// Description of SimplePullModel.
/// </summary>
public class SimplePullModel:BaseSample
{
public SimplePullModel(){
}
public override void Run(){
try {
base.Run();
base.Engine.PreviewStandartReport(base.ReportName);
} catch (Exception e) {
MessageBox.Show(e.ToString(),this.ToString());
}
}
}
}

43
samples/SharpReport/ReportSamples/SimplePushModel.cs

@ -1,43 +0,0 @@ @@ -1,43 +0,0 @@
/*
* Created by SharpDevelop.
* User: Forstmeier Helmut
* Date: 14.08.2006
* Time: 22:41
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Data;
using System.Windows.Forms;
using SharpReportCore;
namespace ReportSamples
{
/// <summary>
/// Description of SimplePushModel.
/// </summary>
public class SimplePushModel:BaseSample
{
public SimplePushModel()
{
}
public override void Run(){
try {
base.Run();
DataTable table = SelectData();
if (table != null) {
base.Engine.PreviewPushDataReport(base.ReportName,table);
}
} catch (Exception e) {
MessageBox.Show(e.Message,this.ToString());
}
}
}
}

99
samples/SharpReport/ReportSamples/SimpleUnboundPullModel.cs

@ -1,99 +0,0 @@ @@ -1,99 +0,0 @@
/*
* Created by SharpDevelop.
* User: Forstmeier Helmut
* Date: 29.06.2006
* Time: 09:21
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Drawing;
using System.Windows.Forms;
using SharpReportCore;
namespace ReportSamples
{
/// <summary>
/// Description of SimpleUnboundPullModel.
/// </summary>
public class SimpleUnboundPullModel{
int rowNr;
public SimpleUnboundPullModel(){
}
public void Run() {
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.SectionRendering += new EventHandler<SectionRenderEventArgs>(SimplePullPrinting);
mn.SectionRendered += new EventHandler<SectionRenderEventArgs>(SimplePullPrinted);
mn.PreviewStandartReport(dg.FileName.ToString());
}
}
catch(Exception er){
MessageBox.Show(er.ToString(),this.ToString());
}
}
private void SimplePullPrinting (object sender,SectionRenderEventArgs e) {
// System.Console.WriteLine("SimpleUnboundPullPrinting");
CheckItems(e.Section.Items);
switch (e.CurrentSection) {
case GlobalEnums.enmSection.ReportHeader:
// System.Console.WriteLine("\tI found the ReportHeader");
break;
case GlobalEnums.enmSection.ReportPageHeader:
// System.Console.WriteLine("\tI found the Pageheader");
break;
case GlobalEnums.enmSection.ReportDetail:
// System.Console.WriteLine("\tI found the ReportDetail");
this.rowNr ++;
RowItem ri = e.Section.Items[0] as RowItem;
if (ri != null) {
if (this.rowNr %2 == 0) {
ri.DrawBorder = true;
} else {
ri.DrawBorder = false;
}
}
break;
case GlobalEnums.enmSection.ReportPageFooter:
// System.Console.WriteLine("\tI found the PageFooter");
break;
case GlobalEnums.enmSection.ReportFooter:
// System.Console.WriteLine("\tI found the ReportFooter");
break;
default:
break;
}
}
private void SimplePullPrinted (object sender,SectionRenderEventArgs e) {
//// System.Console.WriteLine("MainForm:Rendering done for <{0}>",e.CurrentSection);
// System.Console.WriteLine("----------");
}
private void CheckItems (ReportItemCollection items) {
// System.Console.WriteLine("\t<{0}> Items",items.Count );
foreach (BaseReportItem i in items) {
IContainerItem container = i as IContainerItem;
if (container != null) {
// System.Console.WriteLine("\t\tContainer found");
CheckItems (container.Items);
}
}
}
}
}

99
samples/SharpReport/ReportSamples/UnboundFormSheet.cs

@ -1,99 +0,0 @@ @@ -1,99 +0,0 @@
/*
* Created by SharpDevelop.
* User: Forstmeier Helmut
* Date: 18.07.2006
* Time: 22:10
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Windows.Forms;
using SharpReportCore;
namespace ReportSamples
{
/// <summary>
/// Description of UnboundFormSheet.
/// </summary>
public class UnboundFormSheet:BaseSample
{
public UnboundFormSheet():base()
{
}
public override void Run()
{
try {
base.Run();
base.Engine.SectionRendering += new EventHandler<SectionRenderEventArgs>(UnboundPrinting);
base.Engine.SectionRendered += new EventHandler<SectionRenderEventArgs>(UnboundPrinted);
base.Engine.PreviewStandartReport(base.ReportName);
} catch (Exception e) {
MessageBox.Show(e.Message,this.ToString());
}
}
private void UnboundPrinting (object sender,SectionRenderEventArgs e) {
System.Console.WriteLine("UnboundFormSheet");
switch (e.CurrentSection) {
case GlobalEnums.enmSection.ReportHeader:
System.Console.WriteLine("\tReportHeader");
BaseDataItem a = e.Section.Items.Find("reportHeaderLabel")as BaseDataItem;
System.Console.WriteLine("\t{0}",a.Font.ToString());
if (a != null) {
a.DbValue = "The Report starts here";
}
break;
case GlobalEnums.enmSection.ReportPageHeader:
System.Console.WriteLine("\tPageheader");
System.Console.WriteLine("");
BaseDataItem b = e.Section.Items.Find("pageHeaderLabel")as BaseDataItem;
if (b != null) {
b.DbValue = "This is the Pageheader";
}
break;
case GlobalEnums.enmSection.ReportDetail:
System.Console.WriteLine("\tReportDetail");
BaseDataItem c = e.Section.Items.Find("detailLabel")as BaseDataItem;
if (c != null) {
c.DbValue = "The Detail Section";
}
break;
case GlobalEnums.enmSection.ReportPageFooter:
System.Console.WriteLine("\tPageFooter");
BaseDataItem d = e.Section.Items.Find("pageFooterLabel")as BaseDataItem;
if (d != null) {
d.DbValue = "Page Footer";
}
break;
case GlobalEnums.enmSection.ReportFooter:
System.Console.WriteLine("\tReportFooter");
BaseDataItem ee = e.Section.Items.Find("reportFooterLabel")as BaseDataItem;
if (ee != null) {
ee.DbValue = "Report Footer is printed before PageFooter";
}
break;
default:
break;
}
}
private void UnboundPrinted (object sender,SectionRenderEventArgs e) {
// System.Console.WriteLine("---Rendering done <{0}>-----",e.CurrentSection);
}
}
}

130
samples/SharpReport/ReportSamples/UnboundPushModel.cs

@ -1,130 +0,0 @@ @@ -1,130 +0,0 @@
/*
* Created by SharpDevelop.
* User: Forstmeier Helmut
* Date: 10.07.2006
* Time: 13:15
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Data;
using System.Windows.Forms;
using SharpReportCore;
namespace ReportSamples
{
/// <summary>
/// Description of UnboundPushModel.
/// </summary>
public class UnboundPushModel
{
int rowNr;
public UnboundPushModel()
{
}
public void Run() {
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 engine = new SharpReportCore.SharpReportEngine();
reportFileName = dg.FileName.ToString();
DataTable table = SelectData();
if (table != null) {
engine.SectionRendering += new EventHandler<SectionRenderEventArgs>(PushPrinting);
engine.SectionRendered += new EventHandler<SectionRenderEventArgs>(PushPrinted);
engine.PreviewPushDataReport(reportFileName,table);
// engine.PrintPushDataReport(reportFileName,table);
}
}
}
catch (Exception e){
MessageBox.Show(e.Message,this.ToString());
}
}
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;
}
private void PushPrinting (object sender,SectionRenderEventArgs e) {
System.Console.WriteLine("UnboundPushModel");
CheckItems(e.Section.Items);
switch (e.CurrentSection) {
case GlobalEnums.enmSection.ReportHeader:
System.Console.WriteLine("\tReportHeader");
break;
case GlobalEnums.enmSection.ReportPageHeader:
System.Console.WriteLine("\tPageheader");
System.Console.WriteLine("");
break;
case GlobalEnums.enmSection.ReportDetail:
this.rowNr ++;
System.Console.WriteLine("\tReportDetail");
RowItem ri = e.Section.Items[0] as RowItem;
if (ri != null) {
if (this.rowNr %2 == 0) {
ri.DrawBorder = true;
} else {
ri.DrawBorder = false;
}
}
break;
case GlobalEnums.enmSection.ReportPageFooter:
System.Console.WriteLine("\tPageFooter");
break;
case GlobalEnums.enmSection.ReportFooter:
System.Console.WriteLine("\tReportFooter");
BaseDataItem b = e.Section.Items.Find("ReportDbTextItem")as BaseDataItem;
if (b != null) {
b.DbValue = this.rowNr.ToString();
}
break;
default:
break;
}
}
private void PushPrinted (object sender,SectionRenderEventArgs e) {
// System.Console.WriteLine("---Rendering done <{0}>-----",e.CurrentSection);
}
private void CheckItems (ReportItemCollection items) {
foreach (BaseReportItem i in items) {
// System.Console.WriteLine("\tItem {0}",i.Name);
IContainerItem container = i as IContainerItem;
if (container != null) {
// System.Console.WriteLine("\t\tContainer found");
CheckItems (container.Items);
}
}
}
}
}

BIN
samples/SharpReport/ReportWizardBaseSettings.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 105 KiB

BIN
samples/SharpReport/ReportWizardPullModel.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

1
samples/SharpReport/ReportsFromList/ContributersList.srd

File diff suppressed because one or more lines are too long

BIN
samples/SharpReport/ReportsFromList/Error.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 B

1
samples/SharpReport/ReportsFromList/EventLogReport.srd

File diff suppressed because one or more lines are too long

BIN
samples/SharpReport/ReportsFromList/Info.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 310 B

BIN
samples/SharpReport/ReportsFromList/Warning.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 273 B

BIN
samples/SharpReport/StoredProcBasedReport_ModifyBaseSettings.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

1
samples/SharpReport/Unbound/MultiPageUnboundPullModel.srd

File diff suppressed because one or more lines are too long

BIN
samples/SharpReport/Unbound/PushModel/EmployesData.xsd

Binary file not shown.

1
samples/SharpReport/Unbound/PushModel/UnboundEmployees.srd

File diff suppressed because one or more lines are too long

1
samples/SharpReport/Unbound/UnboundPullModel.srd

File diff suppressed because one or more lines are too long

1
samples/SharpReport/Unbound/UnboundReport.srd

@ -1 +0,0 @@ @@ -1 +0,0 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><SharpReport><section name="SharpReportCore.ReportSettings"><ReportType value="FormSheet" /><ConnectionString value="" /><CommandText value="" /><CommandType value="0" /><DataModel value="FormSheet" /><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=787, 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=787, 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="SharpReport.ReportItems.ReportTextItem" basetype="SharpReportCore.BaseTextItem"><Location value="{X=0,Y=0}" /><Font value="Microsoft Sans Serif, 10pt" /><Text value="SharpReport1" /><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=185, Height=24}" /><BackColor value="Color [White]" /></control><control type="SharpReport.ReportItems.ReportDataItem" basetype="SharpReportCore.BaseDataItem"><Size value="{Width=191, Height=24}" /><Location value="{X=267,Y=4}" /><Font value="Microsoft Sans Serif, 8.25pt" /><Text value="unbound" /><ColumnName value="unbound" /><DataType value="" /><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></controls></section><section name="ReportDetail"><BackColor value="Color [Window]" /><Size value="{Width=787, Height=108}" /><SectionMargin value="50" /><PageBreakAfter value="False" /><CanGrow value="False" /><CanShrink value="False" /><Name value="ReportDetail" /><Location value="{X=0,Y=0}" /><controls /></section><section name="ReportPageFooter"><BackColor value="Color [Window]" /><Size value="{Width=787, 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="SharpReport.ReportItems.Functions.PageNumber" basetype="SharpReportCore.BasePageNumber"><Size value="{Width=120, Height=20}" /><Location value="{X=0,Y=0}" /><Font value="Microsoft Sans Serif, 8.25pt" /><Text value="Seiten Nummer" /><LocalisedName 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=787, 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></SharpReport>

4
src/Main/Base/Project/Configuration/AssemblyInfo.cs

@ -17,10 +17,14 @@ using System.Runtime.CompilerServices; @@ -17,10 +17,14 @@ using System.Runtime.CompilerServices;
[assembly: Dependency("ICSharpCode.Core", LoadHint.Always)]
[assembly: Dependency("ICSharpCode.TextEditor", LoadHint.Always)]
[assembly: Dependency("ICSharpCode.NRefactory", LoadHint.Always)]
[assembly: Dependency("ICSharpCode.SharpDevelop.Dom", LoadHint.Always)]
[assembly: Dependency("ICSharpCode.SharpDevelop.Widgets", LoadHint.Always)]
[assembly: Dependency("System.Drawing", LoadHint.Always)]
[assembly: Dependency("System.Xml", LoadHint.Always)]
[assembly: Dependency("System.Windows.Forms", LoadHint.Always)]
[assembly: Dependency("WeifenLuo.WinFormsUI.Docking", LoadHint.Always)]
[assembly: Dependency("Microsoft.Build.Framework", LoadHint.Always)]
[assembly: Dependency("Microsoft.Build.Engine", LoadHint.Always)]
[assembly: AssemblyTitle("SharpDevelopBase")]
[assembly: AssemblyDescription("The base add-in of SharpDevelop")]

2
src/Main/Base/Project/ICSharpCode.SharpDevelop.csproj

@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
<RegisterForComInterop>False</RegisterForComInterop>
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
<BaseAddress>84934656</BaseAddress>
<BaseAddress>88080384</BaseAddress>
<PlatformTarget>AnyCPU</PlatformTarget>
<FileAlignment>4096</FileAlignment>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>

2
src/Main/ICSharpCode.SharpDevelop.Widgets/Project/ICSharpCode.SharpDevelop.Widgets.csproj

@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
<PropertyGroup Condition=" '$(Platform)' == 'AnyCPU' ">
<RegisterForComInterop>False</RegisterForComInterop>
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
<BaseAddress>4194304</BaseAddress>
<BaseAddress>136577024</BaseAddress>
<PlatformTarget>AnyCPU</PlatformTarget>
<FileAlignment>4096</FileAlignment>
</PropertyGroup>

Loading…
Cancel
Save