﻿<?xml version="1.0" encoding="utf-16"?>
<JiwaDocument xmlns:jiwa="http://www.jiwa.com.au/xml/schemas" Type="JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin">
  <RecID>44695b92-d416-4c73-81fe-dcae17fa3bdd</RecID>
  <Name>Export Report to Application</Name>
  <Description>Adds a buttone to the Report Viewer to export report to application.</Description>
  <IsEnabled>true</IsEnabled>
  <IsIsolatedToOwnAppDomain>false</IsIsolatedToOwnAppDomain>
  <ExecutionOrder>0</ExecutionOrder>
  <Author>Jiwa Financials</Author>
  <Version />
  <Code>using Microsoft.VisualBasic;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using JiwaFinancials.Jiwa;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Drawing;
using CrystalDecisions.Shared;
using CrystalDecisions.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine;

#region "FormPlugin"
public class FormPlugin : System.MarshalByRefObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaFormPlugin
{
	
	private JiwaFinancials.Jiwa.JiwaApplication.JiwaPrintReportUI.MainForm _PrintReportForm;

    public override object InitializeLifetimeService()
    {
        // returning null here will prevent the lease manager
        // from deleting the Object.
        return null;
    }

    public void SetupBeforeHandlers(JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm JiwaForm, JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
    {
    }

    public void Setup(JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm JiwaForm, JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
    {
		_PrintReportForm = (JiwaFinancials.Jiwa.JiwaApplication.JiwaPrintReportUI.MainForm)JiwaForm;		
		_PrintReportForm.CrystalReportViewer1.Load += crystalReportViewer_Load;
    }
	
	private void crystalReportViewer_Load(object parent, System.EventArgs e) 
    {		
        ToolStrip toolStrip = FindToolStrip();
        ToolStripButton exportButton = new ToolStripButton("Export");
        exportButton.Click += OnExportClicked;
        toolStrip.Items.Insert(0, exportButton);
    }
	
	 private ToolStrip FindToolStrip()
    {
        foreach (Control control in _PrintReportForm.CrystalReportViewer1.Controls)
        {
            ToolStrip toolStrip = control as ToolStrip;
            if (toolStrip != null)
            {
                return toolStrip;
            }
        }
        Debug.Assert(false, "Crystal Reports Viewer toolbar wasn't found");
        return null;
    }
	
	private void OnExportClicked(object sender, EventArgs args)
    {
        ExportController exporter = new ExportController(_PrintReportForm.CrystalReportViewer1, _PrintReportForm.PrintReportObject.CrystalReportObject);
        exporter.Export();
    }
}
#endregion

#region "Export Controller"
/// &lt;summary&gt;
/// Controls the export process by displaying dialogs that prompt the user
/// for export options before using those options to export the report.
/// &lt;/summary&gt;
public class ExportController
{
    private CrystalReportViewer viewer;
    private ReportDocument report;

    public ExportController(CrystalReportViewer viewer, ReportDocument report)
    {
        this.viewer = viewer;
        this.report = report;
    }

    /// &lt;summary&gt;
    /// Shows an export dialog to prompt for the export format and destination and then
    /// exports the report
    /// &lt;/summary&gt;
    public void Export()
    {
        ExportDestination destination = null;
        ExportFormat format = null;
        DialogResult result = DialogResult.None;

        using (ExportDialog exportDialog = new ExportDialog())
        {
            exportDialog.ShowDialog();
            format = exportDialog.Format;
            destination = exportDialog.Destination;
            result = exportDialog.DialogResult;
        }

        if (DialogResult.OK != result)
            return;

        if (ExportOptionsDialog.HasOptions(format))
        {
            using (ExportOptionsDialog optionsDialog = new ExportOptionsDialog(format))
            {
                optionsDialog.ShowDialog();
                if (DialogResult.OK == optionsDialog.DialogResult)
                {
                    Export(destination, format, optionsDialog.FormatOptions);
                }
            }
        }
        else
        {
            Export(destination, format, null);
        }
    }

    /// &lt;summary&gt;
    /// Exports the report to a destination given a format and format options.
    /// &lt;/summary&gt;
    /// &lt;param name="destination"&gt;&lt;/param&gt;
    /// &lt;param name="format"&gt;&lt;/param&gt;
    /// &lt;param name="options"&gt;&lt;/param&gt;
    public void Export(ExportDestination destination, ExportFormat format, ExportFormatOptions options)
    {
        if (ExportDestination.Disk == destination)
            ExportToDisk(format, options);
        else if (ExportDestination.Application == destination)
            ExportToApplication(format, options);
        else
            throw new NotImplementedException();
    }

    /// &lt;summary&gt;
    /// Shows a save dialog and then exports the report to a file.
    /// &lt;/summary&gt;
    /// &lt;param name="format"&gt;&lt;/param&gt;
    /// &lt;param name="options"&gt;&lt;/param&gt;
    private void ExportToDisk(ExportFormat format, ExportFormatOptions options)
    {
        string fileName = null;

        using (SaveFileDialog saveDialog = new SaveFileDialog())
        {
            saveDialog.Filter = format.Name + "|*" + format.Extension;
            saveDialog.Title = "Export to file";
            saveDialog.ShowDialog();
            fileName = saveDialog.FileName;
        }

        if (fileName != null &amp;&amp; fileName.Length != 0)
        {
            using (new ProgressAnimation(viewer))
            {
                ExportToDisk(format, options, fileName);
            }
        }
    }

    /// &lt;summary&gt;
    /// Exports the report to a given file.
    /// &lt;/summary&gt;
    /// &lt;param name="format"&gt;&lt;/param&gt;
    /// &lt;param name="formatOptions"&gt;&lt;/param&gt;
    /// &lt;param name="fileName"&gt;&lt;/param&gt;
    /// &lt;returns&gt;&lt;/returns&gt;
    private bool ExportToDisk(ExportFormat format, ExportFormatOptions formatOptions, string fileName)
    {
        DiskFileDestinationOptions destOptions = ExportOptions.CreateDiskFileDestinationOptions();
        destOptions.DiskFileName = fileName;

        ExportOptions exportOptions = new ExportOptions();
        exportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
        exportOptions.ExportDestinationOptions = destOptions;
        exportOptions.ExportFormatOptions = formatOptions;
        exportOptions.ExportFormatType = format.Type;

        try
        {
            report.Export(exportOptions);
            return true;
        }
        catch (Exception ex)
        {
            MessageBox.Show(viewer, ex.Message);
        }
        return false;
    }

    /// &lt;summary&gt;
    /// Exports the report to a temp file and then tries to open it in the application
    /// associated with the file type.
    /// &lt;/summary&gt;
    /// &lt;param name="format"&gt;&lt;/param&gt;
    /// &lt;param name="options"&gt;&lt;/param&gt;
    private void ExportToApplication(ExportFormat format, ExportFormatOptions options)
    {
        using (new ProgressAnimation(viewer))
        {
            string fileName = System.IO.Path.GetTempPath() + Guid.NewGuid().ToString() + format.Extension;
            if (ExportToDisk(format, options, fileName))
            {
                try
                {
                    System.Diagnostics.Process.Start(fileName);
                }
                catch
                {
                    MessageBox.Show(viewer, "The exported document could not be opened in an application");
                }
            }
        }
    }

    private class ProgressAnimation : IDisposable
    {
        CrystalReportViewer viewer;
        public ProgressAnimation(CrystalReportViewer viewer)
        {
            this.viewer = viewer;
            viewer.ShowProgressAnimation(true);
        }

        public void Dispose()
        {
            viewer.ShowProgressAnimation(false);
        }
    }
}
#endregion

#region "Export Dialog"
public partial class ExportDialog : Form
{
    public ExportDialog()
    {
        InitializeComponent();
        
        formatComboBox.DataSource = ExportFormat.GetValues();
        formatComboBox.DisplayMember = "Name";

        destComboBox.DataSource = ExportDestination.GetValues();
        destComboBox.DisplayMember = "Name";
    }

    public ExportFormat Format
    {
        get
        {
            return (ExportFormat)formatComboBox.SelectedItem;
        }
    }

    public ExportDestination Destination
    {
        get
        {
            return (ExportDestination)destComboBox.SelectedItem;
        }
    }

    private void cancelButton_Click(object sender, EventArgs e)
    {
        DialogResult = DialogResult.Cancel;
        Close();
    }

    private void okButton_Click(object sender, EventArgs e)
    {
        DialogResult = DialogResult.OK;
        Close();
    }
}

// Designer generated code
partial class ExportDialog
{
    /// &lt;summary&gt;
    /// Required designer variable.
    /// &lt;/summary&gt;
    private System.ComponentModel.IContainer components = null;

    /// &lt;summary&gt;
    /// Clean up any resources being used.
    /// &lt;/summary&gt;
    /// &lt;param name="disposing"&gt;true if managed resources should be disposed; otherwise, false.&lt;/param&gt;
    protected override void Dispose(bool disposing)
    {
        if (disposing &amp;&amp; (components != null))
        {
            components.Dispose();
        }
        base.Dispose(disposing);
    }

    #region Windows Form Designer generated code

    /// &lt;summary&gt;
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// &lt;/summary&gt;
    private void InitializeComponent()
    {
        this.formatLabel = new System.Windows.Forms.Label();
        this.formatComboBox = new System.Windows.Forms.ComboBox();
        this.destinationLabel = new System.Windows.Forms.Label();
        this.destComboBox = new System.Windows.Forms.ComboBox();
        this.cancelButton = new System.Windows.Forms.Button();
        this.okButton = new System.Windows.Forms.Button();
        this.SuspendLayout();
        // 
        // formatLabel
        // 
        this.formatLabel.AutoSize = true;
        this.formatLabel.Location = new System.Drawing.Point(13, 13);
        this.formatLabel.Name = "formatLabel";
        this.formatLabel.Size = new System.Drawing.Size(42, 13);
        this.formatLabel.TabIndex = 0;
        this.formatLabel.Text = "Format:";
        // 
        // formatComboBox
        // 
        this.formatComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                    | System.Windows.Forms.AnchorStyles.Right)));
        this.formatComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
        this.formatComboBox.FormattingEnabled = true;
        this.formatComboBox.Location = new System.Drawing.Point(12, 29);
        this.formatComboBox.Name = "formatComboBox";
        this.formatComboBox.Size = new System.Drawing.Size(384, 21);
        this.formatComboBox.TabIndex = 1;
        // 
        // destinationLabel
        // 
        this.destinationLabel.AutoSize = true;
        this.destinationLabel.Location = new System.Drawing.Point(13, 63);
        this.destinationLabel.Name = "destinationLabel";
        this.destinationLabel.Size = new System.Drawing.Size(63, 13);
        this.destinationLabel.TabIndex = 2;
        this.destinationLabel.Text = "Destination:";
        // 
        // destComboBox
        // 
        this.destComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                    | System.Windows.Forms.AnchorStyles.Right)));
        this.destComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
        this.destComboBox.FormattingEnabled = true;
        this.destComboBox.Location = new System.Drawing.Point(12, 80);
        this.destComboBox.Name = "destComboBox";
        this.destComboBox.Size = new System.Drawing.Size(384, 21);
        this.destComboBox.TabIndex = 3;
        // 
        // cancelButton
        // 
        this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
        this.cancelButton.Location = new System.Drawing.Point(321, 121);
        this.cancelButton.Name = "cancelButton";
        this.cancelButton.Size = new System.Drawing.Size(75, 23);
        this.cancelButton.TabIndex = 4;
        this.cancelButton.Text = "Cancel";
        this.cancelButton.UseVisualStyleBackColor = true;
        this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
        // 
        // okButton
        // 
        this.okButton.Location = new System.Drawing.Point(240, 121);
        this.okButton.Name = "okButton";
        this.okButton.Size = new System.Drawing.Size(75, 23);
        this.okButton.TabIndex = 5;
        this.okButton.Text = "OK";
        this.okButton.UseVisualStyleBackColor = true;
        this.okButton.Click += new System.EventHandler(this.okButton_Click);
        // 
        // ExportDialog
        // 
        this.AcceptButton = this.okButton;
        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(408, 161);
        this.ControlBox = false;
        this.Controls.Add(this.okButton);
        this.Controls.Add(this.cancelButton);
        this.Controls.Add(this.destComboBox);
        this.Controls.Add(this.destinationLabel);
        this.Controls.Add(this.formatComboBox);
        this.Controls.Add(this.formatLabel);
        this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
        this.MaximizeBox = false;
        this.MinimizeBox = false;
        this.Name = "ExportDialog";
        this.ShowInTaskbar = false;
        this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
        this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
        this.Text = "Export";
        this.ResumeLayout(false);
        this.PerformLayout();

    }

    #endregion

    private System.Windows.Forms.Label formatLabel;
    private System.Windows.Forms.ComboBox formatComboBox;
    private System.Windows.Forms.Label destinationLabel;
    private System.Windows.Forms.ComboBox destComboBox;
    private System.Windows.Forms.Button cancelButton;
    private System.Windows.Forms.Button okButton;
}
#endregion

#region "Export Options Dialog"
/// &lt;summary&gt;
/// Display an export options dialog for a particular export format.
/// &lt;/summary&gt;
public partial class ExportOptionsDialog : Form
{
    private delegate ExportFormatOptionsControl CreateControlDelegate();
    private static Dictionary&lt;ExportFormat, CreateControlDelegate&gt; optionUIs = new Dictionary&lt;ExportFormat,CreateControlDelegate&gt;
    {
        {ExportFormat.PDF, delegate() {return new  ExportFormatOptionsControlPDF();}}
        //
        // Add new option dialog UIs (ExportFormatOptionsControl subclasses) here
        //
    };

    /// &lt;summary&gt;
    /// Used to determine whether an export format has an export options UI
    /// &lt;/summary&gt;
    /// &lt;param name="format"&gt;&lt;/param&gt;
    /// &lt;returns&gt;true if a UI exists for the given export format&lt;/returns&gt;
    public static bool HasOptions(ExportFormat format)
    {
        return optionUIs.ContainsKey(format);
    }

    private TableLayoutPanel layoutPanel;
    private Button cancelButton;
    private Button okButton;
    private ExportFormatOptionsControl optionsControl;
    private ExportFormat format;
    
    public ExportOptionsDialog(ExportFormat format)
    {
        this.format = format;
        if (!HasOptions(format))
            throw new ArgumentException("Format type does not have an options dialog UI: " + format);  
        InitializeComponent();
        InitializeDynamicControls();
    }

    public ExportFormatOptions FormatOptions
    {
        get
        {
            if (optionsControl != null)
                return optionsControl.CreateExportFormatOptions();
            return null;
        }
    }

    private void InitializeDynamicControls()
    {
        //
        // optionsControl
        //
        this.optionsControl = optionUIs[format]();

        //
        // cancelButton
        //
        this.cancelButton = new Button();
        this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
        this.cancelButton.Name = "cancelButton";
        this.cancelButton.Size = new System.Drawing.Size(75, 23);
        this.cancelButton.Text = "Cancel";
        this.cancelButton.UseVisualStyleBackColor = true;
        this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
        CancelButton = cancelButton;
        
        // 
        // okButton
        //
        this.okButton = new Button();
        this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
        this.okButton.Name = "okButton";
        this.okButton.Text = "OK";
        this.okButton.UseVisualStyleBackColor = true;
        this.okButton.Click += new System.EventHandler(this.okButton_Click);
        AcceptButton = okButton;

        // 
        // layoutPanel
        //
        layoutPanel = new TableLayoutPanel();
        layoutPanel.Controls.Add(optionsControl, 0, 0);
        layoutPanel.SetColumnSpan(optionsControl, 3);
        layoutPanel.Controls.Add(okButton, 1, 1);
        layoutPanel.Controls.Add(cancelButton, 2, 1);
        layoutPanel.AutoSize = true;

        SuspendLayout();
        Controls.Add(layoutPanel);
        ResumeLayout(false);
        PerformLayout();
    }

    private void okButton_Click(object sender, EventArgs e)
    {
        DialogResult = System.Windows.Forms.DialogResult.OK;
        Close();
    }

    private void cancelButton_Click(object sender, EventArgs e)
    {
        DialogResult = System.Windows.Forms.DialogResult.Cancel;
        Close();
    }
}

partial class ExportOptionsDialog
{
    /// &lt;summary&gt;
    /// Required designer variable.
    /// &lt;/summary&gt;
    private System.ComponentModel.IContainer components = null;

    /// &lt;summary&gt;
    /// Clean up any resources being used.
    /// &lt;/summary&gt;
    /// &lt;param name="disposing"&gt;true if managed resources should be disposed; otherwise, false.&lt;/param&gt;
    protected override void Dispose(bool disposing)
    {
        if (disposing &amp;&amp; (components != null))
        {
            components.Dispose();
        }
        base.Dispose(disposing);
    }

    #region Windows Form Designer generated code

    /// &lt;summary&gt;
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// &lt;/summary&gt;
    private void InitializeComponent()
    {
        this.SuspendLayout();
        // 
        // ExportOptionsDialog
        // 
        this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
        this.AutoSize = true;
        this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
        this.ClientSize = new System.Drawing.Size(292, 80);
        this.ControlBox = false;
        this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
        this.MaximizeBox = false;
        this.MinimizeBox = false;
        this.Name = "ExportOptionsDialog";
        this.ShowIcon = false;
        this.ShowInTaskbar = false;
        this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
        this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
        this.Text = "Export Options";
        this.ResumeLayout(false);

    }

    #endregion

}
#endregion

#region "ExportFormatOptionsControl"
/// &lt;summary&gt;
/// Base class for export option dialog contents.
/// &lt;/summary&gt;
public class ExportFormatOptionsControl : UserControl
{
    public /*abstract*/ virtual ExportFormatOptions CreateExportFormatOptions()
    {
        throw new System.NotImplementedException("Subclasses must implement CreateExportFormatOptions()");
    }
}
#endregion

#region "ExportFormatOptionsControlPDF"
public partial class ExportFormatOptionsControlPDF : ExportFormatOptionsControl
{
    public ExportFormatOptionsControlPDF()
    {
        InitializeComponent();
    }

    public override CrystalDecisions.Shared.ExportFormatOptions CreateExportFormatOptions()
    {
        PdfFormatOptions options = new PdfFormatOptions();
        options.UsePageRange = radioButtonRange.Checked;
        if (radioButtonRange.Checked)
        {
            options.FirstPageNumber = Convert.ToInt32(fromValue.Value);
            options.LastPageNumber = Convert.ToInt32(fromValue.Value);
        }
        options.CreateBookmarksFromGroupTree = checkBoxBookmarks.Checked;
        return options;
    }

    private void fromValue_Validated(object sender, EventArgs e)
    {
        if (toValue.Value &lt; fromValue.Value)
            toValue.Value = fromValue.Value;
    }

    private void toValue_Validated(object sender, EventArgs e)
    {
        if (toValue.Value &lt; fromValue.Value)
            fromValue.Value = toValue.Value;
    }
}

partial class ExportFormatOptionsControlPDF
{
    /// &lt;summary&gt; 
    /// Required designer variable.
    /// &lt;/summary&gt;
    private System.ComponentModel.IContainer components = null;

    /// &lt;summary&gt; 
    /// Clean up any resources being used.
    /// &lt;/summary&gt;
    /// &lt;param name="disposing"&gt;true if managed resources should be disposed; otherwise, false.&lt;/param&gt;
    protected override void Dispose(bool disposing)
    {
        if (disposing &amp;&amp; (components != null))
        {
            components.Dispose();
        }
        base.Dispose(disposing);
    }

    #region Component Designer generated code

    /// &lt;summary&gt; 
    /// Required method for Designer support - do not modify 
    /// the contents of this method with the code editor.
    /// &lt;/summary&gt;
    private void InitializeComponent()
    {
        this.pageRangeGroup = new System.Windows.Forms.GroupBox();
        this.label2 = new System.Windows.Forms.Label();
        this.toValue = new System.Windows.Forms.NumericUpDown();
        this.fromValue = new System.Windows.Forms.NumericUpDown();
        this.label1 = new System.Windows.Forms.Label();
        this.radioButtonRange = new System.Windows.Forms.RadioButton();
        this.radioButtonAll = new System.Windows.Forms.RadioButton();
        this.checkBoxBookmarks = new System.Windows.Forms.CheckBox();
        this.pageRangeGroup.SuspendLayout();
        ((System.ComponentModel.ISupportInitialize)(this.toValue)).BeginInit();
        ((System.ComponentModel.ISupportInitialize)(this.fromValue)).BeginInit();
        this.SuspendLayout();
        // 
        // pageRangeGroup
        // 
        this.pageRangeGroup.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.pageRangeGroup.Controls.Add(this.label2);
        this.pageRangeGroup.Controls.Add(this.toValue);
        this.pageRangeGroup.Controls.Add(this.fromValue);
        this.pageRangeGroup.Controls.Add(this.label1);
        this.pageRangeGroup.Controls.Add(this.radioButtonRange);
        this.pageRangeGroup.Controls.Add(this.radioButtonAll);
        this.pageRangeGroup.Location = new System.Drawing.Point(4, 4);
        this.pageRangeGroup.Name = "pageRangeGroup";
        this.pageRangeGroup.Size = new System.Drawing.Size(271, 99);
        this.pageRangeGroup.TabIndex = 0;
        this.pageRangeGroup.TabStop = false;
        this.pageRangeGroup.Text = "Page range";
        // 
        // label2
        // 
        this.label2.AutoSize = true;
        this.label2.Location = new System.Drawing.Point(146, 68);
        this.label2.Name = "label2";
        this.label2.Size = new System.Drawing.Size(23, 13);
        this.label2.TabIndex = 5;
        this.label2.Text = "To:";
        // 
        // toValue
        // 
        this.toValue.Location = new System.Drawing.Point(175, 66);
        this.toValue.Maximum = new decimal(new int[] {
        -727379968,
        232,
        0,
        0});
        this.toValue.Minimum = new decimal(new int[] {
        1,
        0,
        0,
        0});
        this.toValue.Name = "toValue";
        this.toValue.Size = new System.Drawing.Size(84, 20);
        this.toValue.TabIndex = 4;
        this.toValue.Value = new decimal(new int[] {
        1,
        0,
        0,
        0});
        this.toValue.Validated += new System.EventHandler(this.toValue_Validated);
        // 
        // fromValue
        // 
        this.fromValue.Location = new System.Drawing.Point(46, 66);
        this.fromValue.Maximum = new decimal(new int[] {
        -727379968,
        232,
        0,
        0});
        this.fromValue.Minimum = new decimal(new int[] {
        1,
        0,
        0,
        0});
        this.fromValue.Name = "fromValue";
        this.fromValue.Size = new System.Drawing.Size(84, 20);
        this.fromValue.TabIndex = 3;
        this.fromValue.Value = new decimal(new int[] {
        1,
        0,
        0,
        0});
        this.fromValue.Validated += new System.EventHandler(this.fromValue_Validated);
        // 
        // label1
        // 
        this.label1.AutoSize = true;
        this.label1.Location = new System.Drawing.Point(7, 68);
        this.label1.Name = "label1";
        this.label1.Size = new System.Drawing.Size(33, 13);
        this.label1.TabIndex = 2;
        this.label1.Text = "From:";
        // 
        // radioButtonRange
        // 
        this.radioButtonRange.AutoSize = true;
        this.radioButtonRange.Location = new System.Drawing.Point(7, 44);
        this.radioButtonRange.Name = "radioButtonRange";
        this.radioButtonRange.Size = new System.Drawing.Size(83, 17);
        this.radioButtonRange.TabIndex = 1;
        this.radioButtonRange.TabStop = true;
        this.radioButtonRange.Text = "Page range:";
        this.radioButtonRange.UseVisualStyleBackColor = true;
        // 
        // radioButtonAll
        // 
        this.radioButtonAll.AutoSize = true;
        this.radioButtonAll.Checked = true;
        this.radioButtonAll.Location = new System.Drawing.Point(7, 20);
        this.radioButtonAll.Name = "radioButtonAll";
        this.radioButtonAll.Size = new System.Drawing.Size(36, 17);
        this.radioButtonAll.TabIndex = 0;
        this.radioButtonAll.TabStop = true;
        this.radioButtonAll.Text = "All";
        this.radioButtonAll.UseVisualStyleBackColor = true;
        // 
        // checkBoxBookmarks
        // 
        this.checkBoxBookmarks.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
        this.checkBoxBookmarks.AutoSize = true;
        this.checkBoxBookmarks.Location = new System.Drawing.Point(11, 110);
        this.checkBoxBookmarks.Name = "checkBoxBookmarks";
        this.checkBoxBookmarks.Size = new System.Drawing.Size(186, 17);
        this.checkBoxBookmarks.TabIndex = 1;
        this.checkBoxBookmarks.Text = "Create bookmarks from group tree";
        this.checkBoxBookmarks.UseVisualStyleBackColor = true;
        // 
        // ExportFormatOptionsControlPDF
        // 
        this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
        this.Controls.Add(this.checkBoxBookmarks);
        this.Controls.Add(this.pageRangeGroup);
        this.Name = "ExportFormatOptionsControlPDF";
        this.Size = new System.Drawing.Size(278, 137);
        this.pageRangeGroup.ResumeLayout(false);
        this.pageRangeGroup.PerformLayout();
        ((System.ComponentModel.ISupportInitialize)(this.toValue)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(this.fromValue)).EndInit();
        this.ResumeLayout(false);
        this.PerformLayout();

    }

    #endregion

    private System.Windows.Forms.GroupBox pageRangeGroup;
    private System.Windows.Forms.RadioButton radioButtonAll;
    private System.Windows.Forms.Label label2;
    private System.Windows.Forms.NumericUpDown toValue;
    private System.Windows.Forms.NumericUpDown fromValue;
    private System.Windows.Forms.Label label1;
    private System.Windows.Forms.RadioButton radioButtonRange;
    private System.Windows.Forms.CheckBox checkBoxBookmarks;
}
#endregion

#region "Export Destination"
/// &lt;summary&gt;
/// Enumerates the possible destinations for exported reports and provides
/// display names for them.
/// &lt;/summary&gt;
public class ExportDestination
{
    private static List&lt;ExportDestination&gt; destinationList = new List&lt;ExportDestination&gt;();

    public static readonly ExportDestination Disk = makeInstance("Disk file");
    public static readonly ExportDestination Application = makeInstance("Application");
    //
    // Add destinations here
    //

    public static IEnumerable&lt;ExportDestination&gt; GetValues()
    {
        return destinationList.AsReadOnly();
    }

    private static ExportDestination makeInstance(string name)
    {
        ExportDestination destination = new ExportDestination(name);
        destinationList.Add(destination);
        return destination;
    }

    private ExportDestination(string name)
    {
        Name = name;
    }

    public string Name { get; private set; }
}
#endregion

#region "Export Format"
/// &lt;summary&gt;
/// Enumerates the possible output formats for exported reports and provides associated
/// data, such as the file extension and a display name
/// &lt;/summary&gt;
public class ExportFormat
{
    private static List&lt;ExportFormat&gt; formatsList = new List&lt;ExportFormat&gt;();
    
    public static readonly ExportFormat RPT = makeInstance("Crystal Reports (RPT)", ".rpt", ExportFormatType.CrystalReport);
    public static readonly ExportFormat HTM = makeInstance("html 3.2", ".htm", ExportFormatType.HTML32);
    public static readonly ExportFormat HTML = makeInstance("html 4.0", ".html", ExportFormatType.HTML40);
    public static readonly ExportFormat XLS = makeInstance("Micosoft Excel (97-2003)", ".xls", ExportFormatType.Excel);
    public static readonly ExportFormat XLS1 = makeInstance("Micosoft Excel (97-2003) Data-Only", ".xls", ExportFormatType.ExcelRecord);
    public static readonly ExportFormat XLS2 = makeInstance("Micosoft Excel Workbook Data-Only", ".xls", ExportFormatType.ExcelWorkbook);
    public static readonly ExportFormat DOC = makeInstance("Microsoft Word (97-2003)", ".doc", ExportFormatType.WordForWindows);
    public static readonly ExportFormat DOC1 = makeInstance("Microsoft Word - Editable", ".doc", ExportFormatType.EditableRTF);
    public static readonly ExportFormat PDF = makeInstance("PDF", ".pdf", ExportFormatType.PortableDocFormat);
    public static readonly ExportFormat RTF = makeInstance("Rich Text Format", ".rtf", ExportFormatType.RichText);
    public static readonly ExportFormat CSV = makeInstance("Separated Values (CSV)", ".csv", ExportFormatType.CharacterSeparatedValues);
    public static readonly ExportFormat TXT = makeInstance("Text", ".txt", ExportFormatType.TabSeperatedText);
    public static readonly ExportFormat XML = makeInstance("XML - (ADO.NET)", ".xml", ExportFormatType.Xml);

    public static IEnumerable&lt;ExportFormat&gt; GetValues()
    {
        return formatsList.AsReadOnly();
    }

    private static ExportFormat makeInstance(string name, string ext, ExportFormatType type)
    {
        ExportFormat format = new ExportFormat(name, ext, type);
        formatsList.Add(format);
        return format;
    }

    private ExportFormat(string name, string ext, ExportFormatType type)
    {
        Name = name;
        Extension = ext;
        Type = type;
    }

    
    public string Name { get; private set; }
    public ExportFormatType Type { get; private set; }
    public string Extension { get; private set; }
}
#endregion

#region "BusinessLogicPlugin"
public class BusinessLogicPlugin : System.MarshalByRefObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaBusinessLogicPlugin
{

    public override object InitializeLifetimeService()
    {
        // returning null here will prevent the lease manager
        // from deleting the Object.
        return null;
    }

    public void Setup(JiwaFinancials.Jiwa.JiwaApplication.IJiwaBusinessLogic JiwaBusinessLogic, JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
    {
    }
}
#endregion

#region "ApplicationManagerPlugin"
public class ApplicationManagerPlugin : System.MarshalByRefObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaApplicationManagerPlugin
{

    public override object InitializeLifetimeService()
    {
        // returning null here will prevent the lease manager
        // from deleting the Object.
        return null;
    }

    public void Setup(JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
    {
    }
}
#endregion

#region "CustomFieldPlugin"
public class CustomFieldPlugin : System.MarshalByRefObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaCustomFieldPlugin
{
    public override object InitializeLifetimeService()
    {
        // returning null here will prevent the lease manager
        // from deleting the Object.
        return null;
    }

    public void FormatCell(JiwaFinancials.Jiwa.JiwaApplication.IJiwaBusinessLogic BusinessLogicHost, JiwaFinancials.Jiwa.JiwaApplication.Controls.JiwaGrid GridObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm FormObject, int Col, int Row, JiwaFinancials.Jiwa.JiwaApplication.IJiwaCustomFieldValues HostObject, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomField CustomField, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomFieldValue CustomFieldValue)
    {
    }

    public void ReadData(JiwaFinancials.Jiwa.JiwaApplication.IJiwaBusinessLogic BusinessLogicHost, JiwaFinancials.Jiwa.JiwaApplication.Controls.JiwaGrid GridObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm FormObject, int Row, JiwaFinancials.Jiwa.JiwaApplication.IJiwaCustomFieldValues HostObject, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomField CustomField, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomFieldValue CustomFieldValue)
    {
    }

    public void ButtonClicked(JiwaFinancials.Jiwa.JiwaApplication.IJiwaBusinessLogic BusinessLogicHost, JiwaFinancials.Jiwa.JiwaApplication.Controls.JiwaGrid GridObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm FormObject, int Col, int Row, JiwaFinancials.Jiwa.JiwaApplication.IJiwaCustomFieldValues HostObject, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomField CustomField, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomFieldValue CustomFieldValue)
    {
    }
}
#endregion

#region "LineCustomFieldPlugin"
public class LineCustomFieldPlugin : System.MarshalByRefObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaLineCustomFieldPlugin
{
    public override object InitializeLifetimeService()
    {
        // returning null here will prevent the lease manager
        // from deleting the Object.
        return null;
    }

    public void FormatCell(JiwaFinancials.Jiwa.JiwaApplication.IJiwaBusinessLogic BusinessLogicHost, JiwaFinancials.Jiwa.JiwaApplication.Controls.JiwaGrid GridObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm FormObject, int Col, int Row, JiwaFinancials.Jiwa.JiwaApplication.IJiwaLineCustomFieldValues HostItem, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomField CustomField, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomFieldValue CustomFieldValue)
    {
    }

    public void ReadData(JiwaFinancials.Jiwa.JiwaApplication.IJiwaBusinessLogic BusinessLogicHost, JiwaFinancials.Jiwa.JiwaApplication.Controls.JiwaGrid GridObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm FormObject, int Row, JiwaFinancials.Jiwa.JiwaApplication.IJiwaLineCustomFieldValues HostItem, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomField CustomField, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomFieldValue CustomFieldValue)
    {
    }

    public void ButtonClicked(JiwaFinancials.Jiwa.JiwaApplication.IJiwaBusinessLogic BusinessLogicHost, JiwaFinancials.Jiwa.JiwaApplication.Controls.JiwaGrid GridObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm FormObject, int Col, int Row, JiwaFinancials.Jiwa.JiwaApplication.IJiwaLineCustomFieldValues HostItem, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomField CustomField, JiwaFinancials.Jiwa.JiwaApplication.CustomFields.CustomFieldValue CustomFieldValue)
    {
    }
}
#endregion

#region "SystemSettingPlugin"
public class SystemSettingPlugin : System.MarshalByRefObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaSystemSettingPlugin
{
    public override object InitializeLifetimeService()
    {
        // returning null here will prevent the lease manager
        // from deleting the Object.
        return null;
    }

    public void FormatCell(JiwaFinancials.Jiwa.JiwaApplication.IJiwaBusinessLogic BusinessLogicHost, JiwaFinancials.Jiwa.JiwaApplication.Controls.JiwaGrid GridObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm FormObject, int Col, int Row, JiwaFinancials.Jiwa.JiwaApplication.SystemSettings.Setting SystemSetting)
    {
    }

    public void ReadData(JiwaFinancials.Jiwa.JiwaApplication.IJiwaBusinessLogic BusinessLogicHost, JiwaFinancials.Jiwa.JiwaApplication.Controls.JiwaGrid GridObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm FormObject, int Row, JiwaFinancials.Jiwa.JiwaApplication.SystemSettings.Setting SystemSetting)
    {
    }

    public void ButtonClicked(JiwaFinancials.Jiwa.JiwaApplication.IJiwaBusinessLogic BusinessLogicHost, JiwaFinancials.Jiwa.JiwaApplication.Controls.JiwaGrid GridObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaForm FormObject, int Col, int Row, JiwaFinancials.Jiwa.JiwaApplication.SystemSettings.Setting SystemSetting)
    {
    }
}
#endregion

#region "ScheduledExecutionPlugin"
public class ScheduledExecutionPlugin : System.MarshalByRefObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaScheduledExecutionPlugin
{
    public void Execute(JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin, JiwaFinancials.Jiwa.JiwaApplication.Schedule.Schedule Schedule)
    {
    }


    public void OnServiceStart(JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
    {
    }


    public void OnServiceStopping(JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
    {
    }
}
#endregion</Code>
  <ExceptionPolicy>Report</ExceptionPolicy>
  <Language>CSharp</Language>
  <PluginFormCollection>
    <PluginForm>
      <RecID>6ab1f470-8dd0-4ce8-8fc1-970ee624e2e5</RecID>
      <Description>Report Viewer</Description>
      <ClassName>JiwaFinancials.Jiwa.JiwaApplication.JiwaPrintReportUI.MainForm</ClassName>
    </PluginForm>
  </PluginFormCollection>
  <ReferenceCollection>
    <Reference>
      <RecID>92d195df-b6de-48b2-9c51-016f4be6139e</RecID>
      <AssemblyFullName>JiwaApplication, Version=7.0.157.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaApplication.dll</AssemblyName>
      <AssemblyLocation>C:\VSTS\Jiwa 7\Jiwa\Built Files\JiwaApplication.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>1f413e38-1ea3-499a-b5f2-b56a1177ada5</RecID>
      <AssemblyFullName>mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</AssemblyFullName>
      <AssemblyName>mscorlib.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>99d6225d-d047-4f43-851f-597d9ef3ceda</RecID>
      <AssemblyFullName>System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</AssemblyFullName>
      <AssemblyName>System.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>bfa358d2-f0b8-4a1f-b315-4f2e306987e7</RecID>
      <AssemblyFullName>System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</AssemblyFullName>
      <AssemblyName>System.Data.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>cc2b171a-31cd-4f0b-9215-81efbe7a75c0</RecID>
      <AssemblyFullName>JiwaODBC, Version=7.0.157.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaODBC.dll</AssemblyName>
      <AssemblyLocation>C:\VSTS\Jiwa 7\Jiwa\Built Files\JiwaODBC.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>18480282-4fed-4013-b832-70616ef21ad7</RecID>
      <AssemblyFullName>System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</AssemblyFullName>
      <AssemblyName>System.Xml.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>9dd7196b-45cf-4a0d-8222-1b3ce9233a8c</RecID>
      <AssemblyFullName>System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</AssemblyFullName>
      <AssemblyName>System.Runtime.Serialization.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>1e0db45a-1bd6-4698-b184-6a2d74fa6ae6</RecID>
      <AssemblyFullName>System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</AssemblyFullName>
      <AssemblyName>System.Drawing.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>8efe59c5-044e-4086-a3fd-ebc6149b957f</RecID>
      <AssemblyFullName>Microsoft.SqlServer.Smo, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91</AssemblyFullName>
      <AssemblyName>Microsoft.SqlServer.Smo.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SqlServer.Smo\12.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.Smo.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>703821b9-ccf2-489a-a01e-f60d0cdfa352</RecID>
      <AssemblyFullName>Microsoft.SqlServer.ConnectionInfo, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91</AssemblyFullName>
      <AssemblyName>Microsoft.SqlServer.ConnectionInfo.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\assembly\GAC_MSIL\Microsoft.SqlServer.ConnectionInfo\12.0.0.0__89845dcd8080cc91\Microsoft.SqlServer.ConnectionInfo.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>6a96f5ae-1dad-4f37-abbe-d4247927f1e5</RecID>
      <AssemblyFullName>System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</AssemblyFullName>
      <AssemblyName>System.Windows.Forms.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>ec55b7f1-50ad-49d8-969f-8ee01566520e</RecID>
      <AssemblyFullName>Infragistics4.Win.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Infragistics4.Win.v13.1\v4.0_13.1.20131.2060__7dd5c3163f2cd0cb\Infragistics4.Win.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>4b893486-8283-493c-ac0d-14b01d9396a1</RecID>
      <AssemblyFullName>Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</AssemblyFullName>
      <AssemblyName>Microsoft.VisualBasic.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>425c2760-402e-4c87-8411-98ece296a414</RecID>
      <AssemblyFullName>Infragistics4.Win.Misc.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.Misc.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Infragistics4.Win.Misc.v13.1\v4.0_13.1.20131.2060__7dd5c3163f2cd0cb\Infragistics4.Win.Misc.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>baf8d9b6-7493-48cb-bcf4-661b4b2a66fd</RecID>
      <AssemblyFullName>Infragistics4.Win.UltraWinEditors.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.UltraWinEditors.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Infragistics4.Win.UltraWinEditors.v13.1\v4.0_13.1.20131.2060__7dd5c3163f2cd0cb\Infragistics4.Win.UltraWinEditors.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>3a8f46df-517f-487a-b025-52a8cb91f64b</RecID>
      <AssemblyFullName>Infragistics4.Win.UltraWinExplorerBar.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.UltraWinExplorerBar.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Infragistics4.Win.UltraWinExplorerBar.v13.1\v4.0_13.1.20131.2060__7dd5c3163f2cd0cb\Infragistics4.Win.UltraWinExplorerBar.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>64f134a0-a156-4a8d-9ab7-292bb4eb546d</RecID>
      <AssemblyFullName>Infragistics4.Win.UltraWinTree.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.UltraWinTree.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Infragistics4.Win.UltraWinTree.v13.1\v4.0_13.1.20131.2060__7dd5c3163f2cd0cb\Infragistics4.Win.UltraWinTree.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>4e126e9a-2e21-4ef5-8e3f-809f2ce08ce6</RecID>
      <AssemblyFullName>FarPoint.Win.Spread, Version=8.35.20151.0, Culture=neutral, PublicKeyToken=327c3516b1b18457</AssemblyFullName>
      <AssemblyName>FarPoint.Win.Spread.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\assembly\GAC_MSIL\FarPoint.Win.Spread\8.35.20151.0__327c3516b1b18457\FarPoint.Win.Spread.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>34c53dde-46f4-485b-aaed-c965473aa7c4</RecID>
      <AssemblyFullName>Infragistics4.Win.UltraWinTabControl.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.UltraWinTabControl.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Infragistics4.Win.UltraWinTabControl.v13.1\v4.0_13.1.20131.2060__7dd5c3163f2cd0cb\Infragistics4.Win.UltraWinTabControl.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>d3bdd8fb-1d39-48d2-9ac7-8b0a60b65d70</RecID>
      <AssemblyFullName>Infragistics4.Win.UltraWinToolbars.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.UltraWinToolbars.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Infragistics4.Win.UltraWinToolbars.v13.1\v4.0_13.1.20131.2060__7dd5c3163f2cd0cb\Infragistics4.Win.UltraWinToolbars.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>34055753-f321-4735-a7b5-c959a992e673</RecID>
      <AssemblyFullName>Infragistics4.Win.UltraWinStatusBar.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.UltraWinStatusBar.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Infragistics4.Win.UltraWinStatusBar.v13.1\v4.0_13.1.20131.2060__7dd5c3163f2cd0cb\Infragistics4.Win.UltraWinStatusBar.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>aa083f10-c0d9-4bb7-9254-bf48050a6bfb</RecID>
      <AssemblyFullName>Infragistics4.Win.UltraWinListView.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.UltraWinListView.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Infragistics4.Win.UltraWinListView.v13.1\v4.0_13.1.20131.2060__7dd5c3163f2cd0cb\Infragistics4.Win.UltraWinListView.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>736b8bae-1908-4a62-b7e9-f01795e86324</RecID>
      <AssemblyFullName>ActiproSoftware.SyntaxEditor.WinForms, Version=12.1.304.0, Culture=neutral, PublicKeyToken=c27e062d3c1a4763</AssemblyFullName>
      <AssemblyName>ActiproSoftware.SyntaxEditor.WinForms.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\assembly\GAC_MSIL\ActiproSoftware.SyntaxEditor.WinForms\12.1.304.0__c27e062d3c1a4763\ActiproSoftware.SyntaxEditor.WinForms.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>c968dc92-f298-4a50-92cf-96db02431068</RecID>
      <AssemblyFullName>ZetaHtmlEditControl, Version=1.1.0.3, Culture=neutral, PublicKeyToken=2e2e5ba5da72b6c0</AssemblyFullName>
      <AssemblyName>ZetaHtmlEditControl.dll</AssemblyName>
      <AssemblyLocation>C:\VSTS\Jiwa 7\Jiwa\Built Files\ZetaHtmlEditControl.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>652d5472-bf54-469c-9efd-ad59a7482479</RecID>
      <AssemblyFullName>ActiproSoftware.SyntaxEditor.Addons.DotNet.WinForms, Version=12.1.304.0, Culture=neutral, PublicKeyToken=c27e062d3c1a4763</AssemblyFullName>
      <AssemblyName>ActiproSoftware.SyntaxEditor.Addons.DotNet.WinForms.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\assembly\GAC_MSIL\ActiproSoftware.SyntaxEditor.Addons.DotNet.WinForms\12.1.304.0__c27e062d3c1a4763\ActiproSoftware.SyntaxEditor.Addons.DotNet.WinForms.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>2a29349c-c345-42ef-83e2-55beee1ce5b1</RecID>
      <AssemblyFullName>JiwaEncryption, Version=7.0.157.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaEncryption.dll</AssemblyName>
      <AssemblyLocation>C:\VSTS\Jiwa 7\Jiwa\Built Files\JiwaEncryption.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>d455a392-7b61-41ec-a2c6-d995e71c579b</RecID>
      <AssemblyFullName>System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</AssemblyFullName>
      <AssemblyName>System.Security.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Security\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Security.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>14f08222-984e-4e00-9f8b-b05977653d57</RecID>
      <AssemblyFullName>Microsoft.SqlServer.Dac, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</AssemblyFullName>
      <AssemblyName>Microsoft.SqlServer.Dac.dll</AssemblyName>
      <AssemblyLocation>C:\VSTS\Jiwa 7\Jiwa\Built Files\Microsoft.SqlServer.Dac.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>6ccf17ac-8737-40cd-8e44-3b824f86e7ff</RecID>
      <AssemblyFullName>CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304</AssemblyFullName>
      <AssemblyName>CrystalDecisions.CrystalReports.Engine.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine\13.0.2000.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>9ead86bd-729e-41cf-ac22-ce65c67e6388</RecID>
      <AssemblyFullName>CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304</AssemblyFullName>
      <AssemblyName>CrystalDecisions.Shared.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Shared\13.0.2000.0__692fbea5521e1304\CrystalDecisions.Shared.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>3e52e0aa-fb98-4a9a-a6a2-271855c5df6c</RecID>
      <AssemblyFullName>CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304</AssemblyFullName>
      <AssemblyName>CrystalDecisions.ReportAppServer.ClientDoc.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.ReportAppServer.ClientDoc\13.0.2000.0__692fbea5521e1304\CrystalDecisions.ReportAppServer.ClientDoc.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>352ebab7-f4e8-4bd7-91c9-deb74bb54bcf</RecID>
      <AssemblyFullName>CrystalDecisions.ReportAppServer.Controllers, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304</AssemblyFullName>
      <AssemblyName>CrystalDecisions.ReportAppServer.Controllers.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.ReportAppServer.Controllers\13.0.2000.0__692fbea5521e1304\CrystalDecisions.ReportAppServer.Controllers.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>f29c1185-3f51-4d99-97f1-d3eb0b6dd4a7</RecID>
      <AssemblyFullName>System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</AssemblyFullName>
      <AssemblyName>System.Core.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>e44984f5-72df-4faf-af4c-cb7edf87f604</RecID>
      <AssemblyFullName>Infragistics4.Win.AppStylistSupport.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.AppStylistSupport.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Infragistics4.Win.AppStylistSupport.v13.1\v4.0_13.1.20131.2060__7dd5c3163f2cd0cb\Infragistics4.Win.AppStylistSupport.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>11e741d9-39b0-4dc0-88bf-7974e7cd29cb</RecID>
      <AssemblyFullName>JiwaLib, Version=7.0.157.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaLib.dll</AssemblyName>
      <AssemblyLocation>C:\VSTS\Jiwa 7\Jiwa\Built Files\JiwaLib.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>225b5530-bf73-4084-8386-9faf1a2a662a</RecID>
      <AssemblyFullName>CrystalDecisions.Windows.Forms, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304</AssemblyFullName>
      <AssemblyName>CrystalDecisions.Windows.Forms.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Windows.Forms\13.0.2000.0__692fbea5521e1304\CrystalDecisions.Windows.Forms.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>afc0fdda-3f66-47e3-8454-c5b64c88519d</RecID>
      <AssemblyFullName>Infragistics4.Win.UltraWinSchedule.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.UltraWinSchedule.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Infragistics4.Win.UltraWinSchedule.v13.1\v4.0_13.1.20131.2060__7dd5c3163f2cd0cb\Infragistics4.Win.UltraWinSchedule.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>943f91c3-7624-46f2-8e2d-2c2866cffe77</RecID>
      <AssemblyFullName>Infragistics4.Win.UltraWinGrid.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.UltraWinGrid.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Infragistics4.Win.UltraWinGrid.v13.1\v4.0_13.1.20131.2060__7dd5c3163f2cd0cb\Infragistics4.Win.UltraWinGrid.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>8e8730eb-2601-41ab-ac7d-aebe9fa6035d</RecID>
      <AssemblyFullName>Infragistics4.Shared.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Shared.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Infragistics4.Shared.v13.1\v4.0_13.1.20131.2060__7dd5c3163f2cd0cb\Infragistics4.Shared.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>c37c5182-a3b0-4e35-b804-2757b176368d</RecID>
      <AssemblyFullName>Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</AssemblyFullName>
      <AssemblyName>Microsoft.Office.Interop.Outlook.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Office.Interop.Outlook\15.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Outlook.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>0331dc97-906e-4817-a4a4-da7fe6910a94</RecID>
      <AssemblyFullName>ActiproSoftware.Shared.WinForms, Version=12.1.304.0, Culture=neutral, PublicKeyToken=c27e062d3c1a4763</AssemblyFullName>
      <AssemblyName>ActiproSoftware.Shared.WinForms.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\assembly\GAC_MSIL\ActiproSoftware.Shared.WinForms\12.1.304.0__c27e062d3c1a4763\ActiproSoftware.Shared.WinForms.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>1cba8ec9-a2cf-4c2c-9b68-57d79564f6b2</RecID>
      <AssemblyFullName>FarPoint.Win, Version=8.35.20151.0, Culture=neutral, PublicKeyToken=327c3516b1b18457</AssemblyFullName>
      <AssemblyName>FarPoint.Win.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\assembly\GAC_MSIL\FarPoint.Win\8.35.20151.0__327c3516b1b18457\FarPoint.Win.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>4f9560af-a607-44f4-a604-9c06bb2bead8</RecID>
      <AssemblyFullName>CrystalDecisions.ReportAppServer.ReportDefModel, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304</AssemblyFullName>
      <AssemblyName>CrystalDecisions.ReportAppServer.ReportDefModel.dll</AssemblyName>
      <AssemblyLocation>C:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.ReportAppServer.ReportDefModel\13.0.2000.0__692fbea5521e1304\CrystalDecisions.ReportAppServer.ReportDefModel.dll</AssemblyLocation>
    </Reference>
  </ReferenceCollection>
</JiwaDocument>