Click here to Skip to main content
13,199,852 members (65,519 online)
Click here to Skip to main content

Stats

93.9K views
2.4K downloads
82 bookmarked
Posted 11 Jan 2009

XML/XSLT Word Report Generator

, 11 Jan 2009
The tool is based on XML/XSLT, and allows a user to create a Word report from scratch, namely: construct SQL query, construct a WordML template, generate a document.
/*
 * This file is a part of the Razor Framework.
 * 
 * Copyright (C) 2004 Mark (Code6) Belles 
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 * 
 * */

using System;
using System.Windows.Forms;

namespace WordReportGenerator
{
	/// <summary>
	/// Summary description for PathCreationEngineEventArgs.
	/// </summary>
	public class PathCreationEngineEventArgs : System.EventArgs 
	{
		private object _userData;
		private string _path;
		private DialogResult _result;
		private System.Exception _systemException;
				
		public PathCreationEngineEventArgs(string path)
		{			
			_path = path;
		}

		public PathCreationEngineEventArgs(string path, DialogResult result)
		{
			_path = path;
			_result = result;
		}

		public object UserData
		{
			get
			{
				return _userData;
			}
			set
			{
				_userData = value;
			}
		}

		public string Path
		{
			get
			{
				return _path;
			}
			set
			{
				_path = value;
			}
		}

		public DialogResult Result
		{
			get
			{
				return _result;
			}
			set
			{
				_result = value;
			}
		}

		public System.Exception Exception
		{
			get
			{
				return _systemException;
			}
			set
			{
				_systemException = value;
			}
		}
	}

	public delegate void PathCreationEngineEventHandler(object sender, PathCreationEngineEventArgs e);
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Sam Safonov
Software Developer
Russian Federation Russian Federation
I have Master degree in Particle Physics. During my last several years I work as software developer.

Primary Interests
- c#, c++, php, java.
- scientific programming

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171020.1 | Last Updated 11 Jan 2009
Article Copyright 2009 by Sam Safonov
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid