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

Stats

30.1K 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;
using System.Text;
using System.Drawing;

using System.Runtime.Serialization;
using System.ComponentModel.Design.Serialization;
using System.Reflection;
using System.ComponentModel;


namespace UniverseReport
{

	public enum Alignment{Near,Center,Far};
	public enum LineAlignment{Near,Center,Far};
	public enum FormatFlags
	{
		DirectionLeftToRight,DirectionVertical,DisplayFormatControl,FitBlackBox,
		LineLimit,MeasureTrailingSpaces,NoClip,NoFontFallback,NoWrap
	}

	public enum Trimming{Character,EllipsisCharacter,EllipsisPath,EllipsisWord,None,Word}

	[TypeConverter(typeof(CellFormatConverter))]
	[Serializable()]
	public class CellFormat
	{
        private Alignment alignment=Alignment.Near;
		private LineAlignment lineAlignment=LineAlignment.Center;
		private StringFormatFlags formatFlags=StringFormatFlags.NoWrap;
		private Trimming trimming =Trimming.None;

		public CellFormat()
		{
			
		}

		public CellFormat(Alignment alignment)
		{
			this.alignment=alignment;
		}

		public CellFormat(Alignment alignment,LineAlignment lineAlignment)
		{
			this.alignment=alignment;
			this.lineAlignment=lineAlignment;
		}


		[DefaultValue(Trimming.None)]
		public Trimming Trimming
		{
			get{ return trimming;}
			set{ trimming=value;}

		}

		[DefaultValue(StringFormatFlags.NoWrap)]
		public StringFormatFlags FormatFlags
		{
			get{ return formatFlags;}
			set{ formatFlags=value;}

		}

		[DefaultValue(Alignment.Near)]
		public Alignment Alignment
		{
			get { return alignment;}
			set{ alignment=value;}
		}

		[DefaultValue(LineAlignment.Center)]
		public LineAlignment LineAlignment
		{
			get { return lineAlignment;}
			set{ lineAlignment=value;}
		}

	}
}

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
Web03 | 2.8.181207.3 | Last Updated 25 Jan 2013
Article Copyright 2012 by FatCatProgrammer
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid