summaryrefslogtreecommitdiff
path: root/src/app/PlayingWithActiveReports.Win.UI
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2007-11-02 17:03:42 -0600
committermo khan <mo@mokhan.ca>2007-11-02 17:03:42 -0600
commit36ffa9f174c831146ca5630a41b75c9d213f3db6 (patch)
tree3ba71964656b385995bb9557c87a05b131348ddf /src/app/PlayingWithActiveReports.Win.UI
import from svntrunkmain
Diffstat (limited to 'src/app/PlayingWithActiveReports.Win.UI')
-rw-r--r--src/app/PlayingWithActiveReports.Win.UI/Adapters/ReportViewer.cs17
-rw-r--r--src/app/PlayingWithActiveReports.Win.UI/PlayingWithActiveReports.Win.UI.csproj114
-rw-r--r--src/app/PlayingWithActiveReports.Win.UI/Program.cs17
-rw-r--r--src/app/PlayingWithActiveReports.Win.UI/Properties/AssemblyInfo.cs33
-rw-r--r--src/app/PlayingWithActiveReports.Win.UI/Properties/Resources.Designer.cs70
-rw-r--r--src/app/PlayingWithActiveReports.Win.UI/Properties/Resources.resx117
-rw-r--r--src/app/PlayingWithActiveReports.Win.UI/Properties/Settings.Designer.cs30
-rw-r--r--src/app/PlayingWithActiveReports.Win.UI/Properties/Settings.settings7
-rw-r--r--src/app/PlayingWithActiveReports.Win.UI/Properties/licenses.licx1
-rw-r--r--src/app/PlayingWithActiveReports.Win.UI/ResultsReportView.Designer.cs71
-rw-r--r--src/app/PlayingWithActiveReports.Win.UI/ResultsReportView.cs26
-rw-r--r--src/app/PlayingWithActiveReports.Win.UI/ResultsReportView.resx120
-rw-r--r--src/app/PlayingWithActiveReports.Win.UI/SimpleReport.Designer.cs122
-rw-r--r--src/app/PlayingWithActiveReports.Win.UI/SimpleReport.cs11
-rw-r--r--src/app/PlayingWithActiveReports.Win.UI/SimpleReport.resx123
-rw-r--r--src/app/PlayingWithActiveReports.Win.UI/SimpleReportView.Designer.cs69
-rw-r--r--src/app/PlayingWithActiveReports.Win.UI/SimpleReportView.cs23
-rw-r--r--src/app/PlayingWithActiveReports.Win.UI/SimpleReportView.resx120
18 files changed, 1091 insertions, 0 deletions
diff --git a/src/app/PlayingWithActiveReports.Win.UI/Adapters/ReportViewer.cs b/src/app/PlayingWithActiveReports.Win.UI/Adapters/ReportViewer.cs
new file mode 100644
index 0000000..b4a4e39
--- /dev/null
+++ b/src/app/PlayingWithActiveReports.Win.UI/Adapters/ReportViewer.cs
@@ -0,0 +1,17 @@
+using DataDynamics.ActiveReports.Viewer;
+using PlayingWithActiveReports.Core.Reports;
+using PlayingWithActiveReports.Core.View;
+
+namespace PlayingWithActiveReports.Win.UI.Adapters {
+ public class ReportViewer : IReportViewer {
+ public ReportViewer( Viewer viewerControl ) {
+ _viewerControl = viewerControl;
+ }
+
+ public void BindTo( IResultsReport document ) {
+ _viewerControl.Document = document.Report.Document;
+ }
+
+ private Viewer _viewerControl;
+ }
+} \ No newline at end of file
diff --git a/src/app/PlayingWithActiveReports.Win.UI/PlayingWithActiveReports.Win.UI.csproj b/src/app/PlayingWithActiveReports.Win.UI/PlayingWithActiveReports.Win.UI.csproj
new file mode 100644
index 0000000..b9b15c7
--- /dev/null
+++ b/src/app/PlayingWithActiveReports.Win.UI/PlayingWithActiveReports.Win.UI.csproj
@@ -0,0 +1,114 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{09E6C76E-17AD-46F8-B09D-2C140942C9E5}</ProjectGuid>
+ <OutputType>WinExe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>PlayingWithActiveReports.Win.UI</RootNamespace>
+ <AssemblyName>PlayingWithActiveReports.Win.UI</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="ActiveReports.Viewer3, Version=5.2.0.397, Culture=neutral, PublicKeyToken=cc4967777c49a3ff">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\lib\active.reports\ActiveReports.Viewer3.dll</HintPath>
+ </Reference>
+ <Reference Include="ActiveReports3, Version=5.2.0.397, Culture=neutral, PublicKeyToken=cc4967777c49a3ff">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\..\..\lib\active.reports\ActiveReports3.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Security" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="ResultsReportView.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="ResultsReportView.Designer.cs">
+ <DependentUpon>ResultsReportView.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <EmbeddedResource Include="ResultsReportView.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>ResultsReportView.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Properties\licenses.licx" />
+ <EmbeddedResource Include="Properties\Resources.resx">
+ <Generator>ResXFileCodeGenerator</Generator>
+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <EmbeddedResource Include="SimpleReport.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>SimpleReport.cs</DependentUpon>
+ </EmbeddedResource>
+ <EmbeddedResource Include="SimpleReportView.resx">
+ <SubType>Designer</SubType>
+ <DependentUpon>SimpleReportView.cs</DependentUpon>
+ </EmbeddedResource>
+ <Compile Include="Properties\Resources.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Resources.resx</DependentUpon>
+ </Compile>
+ <None Include="Properties\Settings.settings">
+ <Generator>SettingsSingleFileGenerator</Generator>
+ <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+ </None>
+ <Compile Include="Properties\Settings.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Settings.settings</DependentUpon>
+ <DesignTimeSharedInput>True</DesignTimeSharedInput>
+ </Compile>
+ <Compile Include="Adapters\ReportViewer.cs" />
+ <Compile Include="SimpleReport.cs">
+ <SubType>Component</SubType>
+ </Compile>
+ <Compile Include="SimpleReport.Designer.cs">
+ <DependentUpon>SimpleReport.cs</DependentUpon>
+ </Compile>
+ <Compile Include="SimpleReportView.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="SimpleReportView.Designer.cs">
+ <DependentUpon>SimpleReportView.cs</DependentUpon>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\PlayingWithActiveReports.Core\PlayingWithActiveReports.Core.csproj">
+ <Project>{B77DDEAC-6A13-4AA7-8C99-CD4234F7B105}</Project>
+ <Name>PlayingWithActiveReports.Core</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project> \ No newline at end of file
diff --git a/src/app/PlayingWithActiveReports.Win.UI/Program.cs b/src/app/PlayingWithActiveReports.Win.UI/Program.cs
new file mode 100644
index 0000000..f7baa54
--- /dev/null
+++ b/src/app/PlayingWithActiveReports.Win.UI/Program.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Windows.Forms;
+
+namespace PlayingWithActiveReports.Win.UI {
+ internal static class Program {
+ /// <summary>
+ /// The main entry point for the application.
+ /// </summary>
+ [STAThread]
+ private static void Main( ) {
+ Application.EnableVisualStyles( );
+ Application.SetCompatibleTextRenderingDefault( false );
+ //Application.Run( new ResultsReportView( ) );
+ Application.Run( new SimpleReportView( ) );
+ }
+ }
+} \ No newline at end of file
diff --git a/src/app/PlayingWithActiveReports.Win.UI/Properties/AssemblyInfo.cs b/src/app/PlayingWithActiveReports.Win.UI/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..b649d9d
--- /dev/null
+++ b/src/app/PlayingWithActiveReports.Win.UI/Properties/AssemblyInfo.cs
@@ -0,0 +1,33 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle( "PlayingWithActiveReports.Win.UI" )]
+[assembly: AssemblyDescription( "" )]
+[assembly: AssemblyConfiguration( "" )]
+[assembly: AssemblyCompany( "" )]
+[assembly: AssemblyProduct( "PlayingWithActiveReports.Win.UI" )]
+[assembly: AssemblyCopyright( "Copyright © 2007" )]
+[assembly: AssemblyTrademark( "" )]
+[assembly: AssemblyCulture( "" )]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible( false )]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid( "0fe1cc6e-a4a3-42e5-a5f5-664c0d5a69eb" )]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+[assembly: AssemblyVersion( "1.0.0.0" )]
+[assembly: AssemblyFileVersion( "1.0.0.0" )]
diff --git a/src/app/PlayingWithActiveReports.Win.UI/Properties/Resources.Designer.cs b/src/app/PlayingWithActiveReports.Win.UI/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..d901300
--- /dev/null
+++ b/src/app/PlayingWithActiveReports.Win.UI/Properties/Resources.Designer.cs
@@ -0,0 +1,70 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.832
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace PlayingWithActiveReports.Win.UI.Properties
+{
+
+
+ /// <summary>
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ /// </summary>
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute( "System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0" )]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute( )]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute( )]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute( "Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode" )]
+ internal Resources( )
+ {
+ }
+
+ /// <summary>
+ /// Returns the cached ResourceManager instance used by this class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute( global::System.ComponentModel.EditorBrowsableState.Advanced )]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if( ( resourceMan == null ) ) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager( "PlayingWithActiveReports.Win.UI.Properties.Resources", typeof( Resources ).Assembly );
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ /// <summary>
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute( global::System.ComponentModel.EditorBrowsableState.Advanced )]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/src/app/PlayingWithActiveReports.Win.UI/Properties/Resources.resx b/src/app/PlayingWithActiveReports.Win.UI/Properties/Resources.resx
new file mode 100644
index 0000000..c40a448
--- /dev/null
+++ b/src/app/PlayingWithActiveReports.Win.UI/Properties/Resources.resx
@@ -0,0 +1,117 @@
+<?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.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: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" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ </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" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ </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>
+</root> \ No newline at end of file
diff --git a/src/app/PlayingWithActiveReports.Win.UI/Properties/Settings.Designer.cs b/src/app/PlayingWithActiveReports.Win.UI/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..aac8847
--- /dev/null
+++ b/src/app/PlayingWithActiveReports.Win.UI/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.832
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace PlayingWithActiveReports.Win.UI.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute( )]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute( "Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "8.0.0.0" )]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ( (Settings)( global::System.Configuration.ApplicationSettingsBase.Synchronized( new Settings( ) ) ) );
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
diff --git a/src/app/PlayingWithActiveReports.Win.UI/Properties/Settings.settings b/src/app/PlayingWithActiveReports.Win.UI/Properties/Settings.settings
new file mode 100644
index 0000000..abf36c5
--- /dev/null
+++ b/src/app/PlayingWithActiveReports.Win.UI/Properties/Settings.settings
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
+ <Profiles>
+ <Profile Name="(Default)" />
+ </Profiles>
+ <Settings />
+</SettingsFile>
diff --git a/src/app/PlayingWithActiveReports.Win.UI/Properties/licenses.licx b/src/app/PlayingWithActiveReports.Win.UI/Properties/licenses.licx
new file mode 100644
index 0000000..5ab2d7a
--- /dev/null
+++ b/src/app/PlayingWithActiveReports.Win.UI/Properties/licenses.licx
@@ -0,0 +1 @@
+DataDynamics.ActiveReports.ActiveReport3, ActiveReports3, Version=5.2.0.397, Culture=neutral, PublicKeyToken=cc4967777c49a3ff
diff --git a/src/app/PlayingWithActiveReports.Win.UI/ResultsReportView.Designer.cs b/src/app/PlayingWithActiveReports.Win.UI/ResultsReportView.Designer.cs
new file mode 100644
index 0000000..19fda50
--- /dev/null
+++ b/src/app/PlayingWithActiveReports.Win.UI/ResultsReportView.Designer.cs
@@ -0,0 +1,71 @@
+namespace PlayingWithActiveReports.Win.UI
+{
+ partial class ResultsReportView
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose( bool disposing )
+ {
+ if( disposing && ( components != null ) ) {
+ components.Dispose( );
+ }
+ base.Dispose( disposing );
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent( )
+ {
+ this.viewer1 = new DataDynamics.ActiveReports.Viewer.Viewer( );
+ this.SuspendLayout( );
+ //
+ // viewer1
+ //
+ this.viewer1.Anchor = ( (System.Windows.Forms.AnchorStyles)( ( ( ( System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom )
+ | System.Windows.Forms.AnchorStyles.Left )
+ | System.Windows.Forms.AnchorStyles.Right ) ) );
+ this.viewer1.BackColor = System.Drawing.SystemColors.Control;
+ this.viewer1.Document = new DataDynamics.ActiveReports.Document.Document( "ARNet Document" );
+ this.viewer1.Location = new System.Drawing.Point( 12, 12 );
+ this.viewer1.Name = "viewer1";
+ this.viewer1.ReportViewer.CurrentPage = 0;
+ this.viewer1.ReportViewer.MultiplePageCols = 3;
+ this.viewer1.ReportViewer.MultiplePageRows = 2;
+ this.viewer1.ReportViewer.ViewType = DataDynamics.ActiveReports.Viewer.ViewType.Normal;
+ this.viewer1.Size = new System.Drawing.Size( 831, 680 );
+ this.viewer1.TabIndex = 0;
+ this.viewer1.TableOfContents.Text = "Table Of Contents";
+ this.viewer1.TableOfContents.Width = 200;
+ this.viewer1.TabTitleLength = 35;
+ this.viewer1.Toolbar.Font = new System.Drawing.Font( "Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ( (byte)( 0 ) ) );
+ //
+ // Form1
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF( 6F, 13F );
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size( 855, 704 );
+ this.Controls.Add( this.viewer1 );
+ this.Name = "Form1";
+ this.Text = "Form1";
+ this.ResumeLayout( false );
+
+ }
+
+ #endregion
+
+ private DataDynamics.ActiveReports.Viewer.Viewer viewer1;
+
+ }
+}
+
diff --git a/src/app/PlayingWithActiveReports.Win.UI/ResultsReportView.cs b/src/app/PlayingWithActiveReports.Win.UI/ResultsReportView.cs
new file mode 100644
index 0000000..e7ad7d0
--- /dev/null
+++ b/src/app/PlayingWithActiveReports.Win.UI/ResultsReportView.cs
@@ -0,0 +1,26 @@
+using System.Windows.Forms;
+using PlayingWithActiveReports.Core.View;
+using PlayingWithActiveReports.Win.UI.Adapters;
+
+namespace PlayingWithActiveReports.Win.UI {
+ public partial class ResultsReportView : Form, IResultsReportView {
+ public ResultsReportView( ) {
+ InitializeComponent( );
+
+ //ResultsReport report = new ResultsReport( );
+ //report.subReport1.Report = new ResultsSection( );
+ //report.Run( false );
+
+ //this.viewer1.Document = report.Document;
+
+ _presenter = new ResultsReportPresenter( this );
+ _presenter.Initialize( );
+ }
+
+ public IReportViewer ReportViewer {
+ get { return new ReportViewer( viewer1 ); }
+ }
+
+ private ResultsReportPresenter _presenter;
+ }
+} \ No newline at end of file
diff --git a/src/app/PlayingWithActiveReports.Win.UI/ResultsReportView.resx b/src/app/PlayingWithActiveReports.Win.UI/ResultsReportView.resx
new file mode 100644
index 0000000..ff31a6d
--- /dev/null
+++ b/src/app/PlayingWithActiveReports.Win.UI/ResultsReportView.resx
@@ -0,0 +1,120 @@
+<?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>
+</root> \ No newline at end of file
diff --git a/src/app/PlayingWithActiveReports.Win.UI/SimpleReport.Designer.cs b/src/app/PlayingWithActiveReports.Win.UI/SimpleReport.Designer.cs
new file mode 100644
index 0000000..c4abcf3
--- /dev/null
+++ b/src/app/PlayingWithActiveReports.Win.UI/SimpleReport.Designer.cs
@@ -0,0 +1,122 @@
+namespace PlayingWithActiveReports.Win.UI
+{
+ /// <summary>
+ /// Summary description for SimpleReport.
+ /// </summary>
+ partial class SimpleReport
+ {
+ private DataDynamics.ActiveReports.PageHeader pageHeader;
+ private DataDynamics.ActiveReports.Detail detail;
+ private DataDynamics.ActiveReports.PageFooter pageFooter;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ protected override void Dispose( bool disposing )
+ {
+ if( disposing ) {
+ }
+ base.Dispose( disposing );
+ }
+
+ #region ActiveReport Designer generated code
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent( )
+ {
+ System.Resources.ResourceManager resources = new System.Resources.ResourceManager( typeof( SimpleReport ) );
+ this.pageHeader = new DataDynamics.ActiveReports.PageHeader( );
+ this.detail = new DataDynamics.ActiveReports.Detail( );
+ this.pageFooter = new DataDynamics.ActiveReports.PageFooter( );
+ this.uxQuestionText = new DataDynamics.ActiveReports.Label( );
+ this.uxAnswerText = new DataDynamics.ActiveReports.Label( );
+ ( (System.ComponentModel.ISupportInitialize)( this.uxQuestionText ) ).BeginInit( );
+ ( (System.ComponentModel.ISupportInitialize)( this.uxAnswerText ) ).BeginInit( );
+ ( (System.ComponentModel.ISupportInitialize)( this ) ).BeginInit( );
+ //
+ // pageHeader
+ //
+ this.pageHeader.Height = 0.25F;
+ this.pageHeader.Name = "pageHeader";
+ //
+ // detail
+ //
+ this.detail.ColumnSpacing = 0F;
+ this.detail.Controls.AddRange( new DataDynamics.ActiveReports.ARControl[] {
+ this.uxQuestionText,
+ this.uxAnswerText} );
+ this.detail.Height = 0.7604167F;
+ this.detail.Name = "detail";
+ this.detail.NewPage = DataDynamics.ActiveReports.NewPage.After;
+ //
+ // pageFooter
+ //
+ this.pageFooter.Height = 0.25F;
+ this.pageFooter.Name = "pageFooter";
+ //
+ // uxQuestionText
+ //
+ this.uxQuestionText.Border.BottomColor = System.Drawing.Color.Black;
+ this.uxQuestionText.Border.BottomStyle = DataDynamics.ActiveReports.BorderLineStyle.None;
+ this.uxQuestionText.Border.LeftColor = System.Drawing.Color.Black;
+ this.uxQuestionText.Border.LeftStyle = DataDynamics.ActiveReports.BorderLineStyle.None;
+ this.uxQuestionText.Border.RightColor = System.Drawing.Color.Black;
+ this.uxQuestionText.Border.RightStyle = DataDynamics.ActiveReports.BorderLineStyle.None;
+ this.uxQuestionText.Border.TopColor = System.Drawing.Color.Black;
+ this.uxQuestionText.Border.TopStyle = DataDynamics.ActiveReports.BorderLineStyle.None;
+ this.uxQuestionText.DataField = "Text";
+ this.uxQuestionText.Height = 0.1875F;
+ this.uxQuestionText.HyperLink = null;
+ this.uxQuestionText.Left = 0.1875F;
+ this.uxQuestionText.Name = "uxQuestionText";
+ this.uxQuestionText.Style = "";
+ this.uxQuestionText.Text = "Question Text";
+ this.uxQuestionText.Top = 0.125F;
+ this.uxQuestionText.Width = 6F;
+ //
+ // uxAnswerText
+ //
+ this.uxAnswerText.Border.BottomColor = System.Drawing.Color.Black;
+ this.uxAnswerText.Border.BottomStyle = DataDynamics.ActiveReports.BorderLineStyle.None;
+ this.uxAnswerText.Border.LeftColor = System.Drawing.Color.Black;
+ this.uxAnswerText.Border.LeftStyle = DataDynamics.ActiveReports.BorderLineStyle.None;
+ this.uxAnswerText.Border.RightColor = System.Drawing.Color.Black;
+ this.uxAnswerText.Border.RightStyle = DataDynamics.ActiveReports.BorderLineStyle.None;
+ this.uxAnswerText.Border.TopColor = System.Drawing.Color.Black;
+ this.uxAnswerText.Border.TopStyle = DataDynamics.ActiveReports.BorderLineStyle.None;
+ this.uxAnswerText.DataField = "Answer";
+ this.uxAnswerText.Height = 0.1875F;
+ this.uxAnswerText.HyperLink = null;
+ this.uxAnswerText.Left = 0.1875F;
+ this.uxAnswerText.Name = "uxAnswerText";
+ this.uxAnswerText.Style = "";
+ this.uxAnswerText.Text = "Answer Text";
+ this.uxAnswerText.Top = 0.4375F;
+ this.uxAnswerText.Width = 6F;
+ //
+ // SimpleReport
+ //
+ this.PageSettings.PaperHeight = 11F;
+ this.PageSettings.PaperWidth = 8.5F;
+ this.Sections.Add( this.pageHeader );
+ this.Sections.Add( this.detail );
+ this.Sections.Add( this.pageFooter );
+ this.StyleSheet.Add( new DDCssLib.StyleSheetRule( "font-family: Arial; font-style: normal; text-decoration: none; font-weight: norma" +
+ "l; font-size: 10pt; color: Black; ", "Normal" ) );
+ this.StyleSheet.Add( new DDCssLib.StyleSheetRule( "font-size: 16pt; font-weight: bold; ", "Heading1", "Normal" ) );
+ this.StyleSheet.Add( new DDCssLib.StyleSheetRule( "font-family: Times New Roman; font-size: 14pt; font-weight: bold; font-style: ita" +
+ "lic; ", "Heading2", "Normal" ) );
+ this.StyleSheet.Add( new DDCssLib.StyleSheetRule( "font-size: 13pt; font-weight: bold; ", "Heading3", "Normal" ) );
+ ( (System.ComponentModel.ISupportInitialize)( this.uxQuestionText ) ).EndInit( );
+ ( (System.ComponentModel.ISupportInitialize)( this.uxAnswerText ) ).EndInit( );
+ ( (System.ComponentModel.ISupportInitialize)( this ) ).EndInit( );
+
+ }
+ #endregion
+
+ private DataDynamics.ActiveReports.Label uxQuestionText;
+ private DataDynamics.ActiveReports.Label uxAnswerText;
+ }
+}
diff --git a/src/app/PlayingWithActiveReports.Win.UI/SimpleReport.cs b/src/app/PlayingWithActiveReports.Win.UI/SimpleReport.cs
new file mode 100644
index 0000000..7a6276e
--- /dev/null
+++ b/src/app/PlayingWithActiveReports.Win.UI/SimpleReport.cs
@@ -0,0 +1,11 @@
+using DataDynamics.ActiveReports;
+
+namespace PlayingWithActiveReports.Win.UI {
+ public partial class SimpleReport : ActiveReport3 {
+ public SimpleReport( ) {
+ InitializeComponent( );
+
+ this.detail.Format += delegate { detail.AddBookmark( uxQuestionText.Value.ToString( ) ); };
+ }
+ }
+} \ No newline at end of file
diff --git a/src/app/PlayingWithActiveReports.Win.UI/SimpleReport.resx b/src/app/PlayingWithActiveReports.Win.UI/SimpleReport.resx
new file mode 100644
index 0000000..121d63f
--- /dev/null
+++ b/src/app/PlayingWithActiveReports.Win.UI/SimpleReport.resx
@@ -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="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+ <value>True</value>
+ </metadata>
+</root> \ No newline at end of file
diff --git a/src/app/PlayingWithActiveReports.Win.UI/SimpleReportView.Designer.cs b/src/app/PlayingWithActiveReports.Win.UI/SimpleReportView.Designer.cs
new file mode 100644
index 0000000..daaffb9
--- /dev/null
+++ b/src/app/PlayingWithActiveReports.Win.UI/SimpleReportView.Designer.cs
@@ -0,0 +1,69 @@
+namespace PlayingWithActiveReports.Win.UI
+{
+ partial class SimpleReportView
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose( bool disposing )
+ {
+ if( disposing && ( components != null ) ) {
+ components.Dispose( );
+ }
+ base.Dispose( disposing );
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent( )
+ {
+ this.uxReportViewerControl = new DataDynamics.ActiveReports.Viewer.Viewer( );
+ this.SuspendLayout( );
+ //
+ // viewer1
+ //
+ this.uxReportViewerControl.Anchor = ( (System.Windows.Forms.AnchorStyles)( ( ( ( System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom )
+ | System.Windows.Forms.AnchorStyles.Left )
+ | System.Windows.Forms.AnchorStyles.Right ) ) );
+ this.uxReportViewerControl.BackColor = System.Drawing.SystemColors.Control;
+ this.uxReportViewerControl.Document = new DataDynamics.ActiveReports.Document.Document( "ARNet Document" );
+ this.uxReportViewerControl.Location = new System.Drawing.Point( 0, 0 );
+ this.uxReportViewerControl.Name = "uxReportViewerControl";
+ this.uxReportViewerControl.ReportViewer.CurrentPage = 0;
+ this.uxReportViewerControl.ReportViewer.MultiplePageCols = 3;
+ this.uxReportViewerControl.ReportViewer.MultiplePageRows = 2;
+ this.uxReportViewerControl.ReportViewer.ViewType = DataDynamics.ActiveReports.Viewer.ViewType.Normal;
+ this.uxReportViewerControl.Size = new System.Drawing.Size( 799, 552 );
+ this.uxReportViewerControl.TabIndex = 0;
+ this.uxReportViewerControl.TableOfContents.Text = "Table Of Contents";
+ this.uxReportViewerControl.TableOfContents.Width = 200;
+ this.uxReportViewerControl.TabTitleLength = 35;
+ this.uxReportViewerControl.Toolbar.Font = new System.Drawing.Font( "Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ( (byte)( 0 ) ) );
+ //
+ // SimpleReportView
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF( 6F, 13F );
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size( 811, 564 );
+ this.Controls.Add( this.uxReportViewerControl );
+ this.Name = "SimpleReportView";
+ this.Text = "SimpleReportView";
+ this.ResumeLayout( false );
+
+ }
+
+ #endregion
+
+ private DataDynamics.ActiveReports.Viewer.Viewer uxReportViewerControl;
+ }
+} \ No newline at end of file
diff --git a/src/app/PlayingWithActiveReports.Win.UI/SimpleReportView.cs b/src/app/PlayingWithActiveReports.Win.UI/SimpleReportView.cs
new file mode 100644
index 0000000..ca0fd8a
--- /dev/null
+++ b/src/app/PlayingWithActiveReports.Win.UI/SimpleReportView.cs
@@ -0,0 +1,23 @@
+using System.Collections.Generic;
+using System.Windows.Forms;
+using PlayingWithActiveReports.Core.Dto;
+
+namespace PlayingWithActiveReports.Win.UI {
+ public partial class SimpleReportView : Form {
+ public SimpleReportView( ) {
+ InitializeComponent( );
+
+ SimpleReport report = new SimpleReport( );
+ report.DataSource = CreateDtosList( );
+ report.Run( false );
+ this.uxReportViewerControl.Document = report.Document;
+ }
+
+ private IEnumerable< DisplayReportQuestionDto > CreateDtosList( ) {
+ List< DisplayReportQuestionDto > dtos = new List< DisplayReportQuestionDto >( );
+ dtos.Add( new DisplayReportQuestionDto( "How are you?", "good" ) );
+ dtos.Add( new DisplayReportQuestionDto( "How old are you?", "23" ) );
+ return dtos;
+ }
+ }
+} \ No newline at end of file
diff --git a/src/app/PlayingWithActiveReports.Win.UI/SimpleReportView.resx b/src/app/PlayingWithActiveReports.Win.UI/SimpleReportView.resx
new file mode 100644
index 0000000..ff31a6d
--- /dev/null
+++ b/src/app/PlayingWithActiveReports.Win.UI/SimpleReportView.resx
@@ -0,0 +1,120 @@
+<?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>
+</root> \ No newline at end of file