Click here to Skip to main content
13,704,990 members
Click here to Skip to main content
Articles » Multimedia » GDI+ » General » Downloads

Stats

29K views
1.3K downloads
39 bookmarked
Posted 29 Dec 2012
Licenced CPOL

WPF-Less GDI+.NET Report Component: Star Report

, 25 Jan 2013
StarReport: WPF-less GDI+.NET report component.
UniverseReportDemo
UniverseReport_WithoutPrinter_Project
UniverseReport
mac_button.png
mac_checkbox.png
mac_radiobutton.png
Plex_button.png
Plex_checkbox.png
Plex_radiobutton.png
Properties
Resources
Report1.bmp
StarReport.png
Thumbs.db
UniverseReport.csproj.user
UniverseReport.suo
UpgradeLog.XML
xp1_button.png
xp1_checkbox.png
xp1_radiobutton.png
UniverseReportDemo.suo
UniverseReportDemo
bin
Debug
Properties
mac_button.png
mac_checkbox.png
mac_radiobutton.png
Plex_button.png
Plex_checkbox.png
Plex_radiobutton.png
Report1.bmp
StarReport.png
Thumbs.db
UniverseReport.csproj.user
UniverseReport.suo
UpgradeLog.XML
xp1_button.png
xp1_checkbox.png
xp1_radiobutton.png
UniverseReportDemo.suo
UniverseReport.dll
using System.Collections;
using System.Runtime.Serialization;
using System.ComponentModel.Design.Serialization;
using System;
using System.ComponentModel;

using System.Drawing;
using System.Text;

namespace UniverseReport
{
    /// <summary>
    /// Summary description for ReportRectangle.
    /// </summary>
    /// 
    [TypeConverter(typeof(LineInfoTypeConverter))]
    [Serializable()]
    public class ReportRectangle
    {

        #region My Declarations
        private RectangleF rect = new RectangleF(0, 0, 1, 1);
        private Color color = Color.Black;
        private int thickness = 1;
        private string name = "Rectangle";
        
        #endregion

        #region Constructors
        public ReportRectangle()
        {

        }
        public ReportRectangle(float x, float y, float width, float height)
        {
            rect.X = x;
            rect.Y = y;
            rect.Width = width;
            rect.Height = height;
        }

        public ReportRectangle(float x, float y, float width, float height, Color color)
        {
            rect.X = x;
            rect.Y = y;
            rect.Width = width;
            rect.Height = height;
            this.Color = color;
        }

        public ReportRectangle(float x, float y, float width, float height, Color color, int thickness)
        {
            rect.X = x;
            rect.Y = y;
            rect.Width = width;
            rect.Height = height;
            this.color = color;
            this.thickness = thickness;
        } 
        #endregion

        #region Properties
        [DefaultValue("Rectangle")]
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        [Browsable(false)]
        public RectangleF RectangleF
        {
            get { return rect; }
            set { rect = value; }
        }

        [DefaultValue(0)]
        public float X
        {
            get { return rect.X; }
            set { rect.X = value; }
        }

        [DefaultValue(0)]
        public float Y
        {
            get { return rect.Y; }
            set { rect.Y = value; }
        }

        [DefaultValue(1)]
        public float Width
        {
            get { return rect.Width; }
            set { rect.Width = value; }
        }

        [DefaultValue(1)]
        public float Height
        {
            get { return rect.Height; }
            set { rect.Height = value; }
        }



        [DefaultValue(typeof(Color), "Black")]
        public Color Color
        {
            get { return color; }
            set { color = value; }
        }

        [DefaultValue(1)]
        public int Thickness
        {
            get { return thickness; }
            set { thickness = value; }
        } 
        #endregion


    }
}

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

FatCatProgrammer
Software Developer (Senior) Finance Industry
United States United States
Currently pursuing 'Programming Nirvana' (The ineffable ultimate in which one has attained disinterested wisdom and compassion as it relates to programming)

Respected Technologies
1. Confusor (https://confuser.codeplex.com/)
2. Power Threading (http://www.wintellect.com/Resources/visit-the-power-threading-library)
3. EDI Parsers (http://www.rdpcrystal.com)


Acknowledgements:

Microsoft Certified Technologist for WPF and .Net 3.5 (MCTS)
Microsoft Certified Technologist for WCF and .Net 3.5 (MCTS)
Microsoft Certified Application Developer for .Net (MCAD)
Microsoft Certified Systems Engineer (MCSE)
Microsoft Certified Professional (MCP)

Sun Certified Developer for Java 2 Platform (SCD)
Sun Certified Programmer for Java 2 Platform (SCP)
Sun Certified Web Component Developer (SCWCD)

CompTIA A+ Certified Professional

Registered Business School Teacher for Computer Programming and Computer Applications (2004)
(University of the State of New York Education Department)

Graduated from University At Stony Brook

You may also be interested in...

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web01-2016 | 2.8.180920.1 | Last Updated 25 Jan 2013
Article Copyright 2012 by FatCatProgrammer
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid