Пример #1
0
 ///<summary>Currently only used for page numbers.</summary>
 public ReportObject(string name, AreaSectionType sectionType, Point location, Size size, FieldValueType fieldValueType, SpecialFieldType specialType, Font font, ContentAlignment contentAlignment, string stringFormat)
 {
     _name             = name;
     _sectionType      = sectionType;
     _location         = location;
     _size             = size;
     _font             = font;
     _contentAlignment = contentAlignment;
     _stringFormat     = stringFormat;
     _fieldDefKind     = FieldDefKind.SpecialField;
     _fieldValueType   = fieldValueType;
     _specialFieldType = specialType;
     //defaults:
     _foreColor        = Color.Black;
     _reportObjectType = ReportObjectType.FieldObject;
 }
Пример #2
0
 ///<summary>Overload for SpecialField ReportObject</summary>
 public ReportObject(string thisSectionName, Point thisLocation, Size thisSize
                     , FieldValueType thisValueType, SpecialFieldType thisSpecialType
                     , Font thisFont, ContentAlignment thisTextAlign, string thisFormatString)
 {
     sectionName  = thisSectionName;
     location     = thisLocation;
     size         = thisSize;
     font         = thisFont;
     textAlign    = thisTextAlign;
     formatString = thisFormatString;
     fieldKind    = FieldDefKind.SpecialField;
     valueType    = thisValueType;
     specialType  = thisSpecialType;
     //defaults:
     foreColor  = Color.Black;
     objectKind = ReportObjectKind.FieldObject;
 }
Пример #3
0
 ///<summary>Mainly used from inside QueryObject.  Creates a SummaryFieldObject with the specified name, section, location, size, summaryOperation, summarizedFieldName, font, contentAlignment and stringFormat.  SummaryOperation determines what calculation will be used when summarizing the column.  SummarizedFieldName determines the field that will be summarized at the bottom of the column.  ContentAlignment determines where the text will be drawn in the box.  StringFormat is used to determined how a ToString() method call will format the field text.</summary>
 public ReportObject(string name, AreaSectionType sectionType, Point location, Size size, SummaryOperation summaryOperation, string summarizedFieldName, Font font, ContentAlignment contentAlignment, string stringFormat)
 {
     _name                = name;
     _sectionType         = sectionType;
     _location            = location;
     _size                = size;
     _font                = font;
     _contentAlignment    = contentAlignment;
     _stringFormat        = stringFormat;
     _fieldDefKind        = FieldDefKind.SummaryField;
     _fieldValueType      = FieldValueType.Number;
     _summaryOperation    = summaryOperation;
     _summarizedFieldName = summarizedFieldName;
     //defaults:
     _foreColor        = Color.Black;
     _reportObjectType = ReportObjectType.FieldObject;
 }
Пример #4
0
 ///<summary>Overload for SummaryField ReportObject</summary>
 public ReportObject(string thisSectionName, Point thisLocation, Size thisSize
                     , SummaryOperation thisOperation, string thisSummarizedField
                     , Font thisFont, ContentAlignment thisTextAlign, string thisFormatString)
 {
     sectionName     = thisSectionName;
     location        = thisLocation;
     size            = thisSize;
     font            = thisFont;
     textAlign       = thisTextAlign;
     formatString    = thisFormatString;
     fieldKind       = FieldDefKind.SummaryField;
     valueType       = FieldValueType.Number;
     operation       = thisOperation;
     summarizedField = thisSummarizedField;
     //defaults:
     foreColor  = Color.Black;
     objectKind = ReportObjectKind.FieldObject;
 }
Пример #5
0
 ///<summary>Mainly used from inside QueryObject.  Creates a GroupSummaryObject with the specified name, section, location, size, color, summaryOperation, summarizedFieldName, font, datafield, and offsets.  SummaryOperation determines what calculation will be used when summarizing the group of column.  SummarizedFieldName determines the field that will be summarized and must be the same in each of the queries.  Datafield determines which column the summary will draw under.  The summary will be offset of its position in pixels according to the given X/Y values.</summary>
 public ReportObject(string name, AreaSectionType sectionType, Point location, Size size, Color color, SummaryOperation summaryOperation, string summarizedFieldName, Font font, ContentAlignment contentAlignment, string datafield, int offSetX, int offSetY)
 {
     _name                = name;
     _sectionType         = sectionType;
     _location            = location;
     _size                = size;
     _dataFieldName       = datafield;
     _font                = font;
     _fieldDefKind        = FieldDefKind.SummaryField;
     _fieldValueType      = FieldValueType.Number;
     _summaryOperation    = summaryOperation;
     _summarizedFieldName = summarizedFieldName;
     _offSetX             = offSetX;
     _offSetY             = offSetY;
     _foreColor           = color;
     //defaults:
     _contentAlignment = contentAlignment;
     _reportObjectType = ReportObjectType.TextObject;
 }
Пример #6
0
		///<summary>Overload for SpecialField ReportObject</summary>
		public ReportObject(string name,string sectionName,Point location,Size size,FieldValueType fieldValueType,SpecialFieldType specialType,Font font,ContentAlignment contentAlignment,string stringFormat) {
			_name=name;
			_sectionName=sectionName;
			_location=location;
			_size=size;
			_font=font;
			_contentAlignment=contentAlignment;
			_stringFormat=stringFormat;
			_fieldDefKind=FieldDefKind.SpecialField;
			_fieldValueType=fieldValueType;
			_specialFieldType=specialType;
			//defaults:
			_foreColor=Color.Black;
			_reportObjectKind=ReportObjectKind.FieldObject;
		}
Пример #7
0
		///<summary>Overload for GroupSummary ReportObject</summary>
		public ReportObject(string name,string sectionName,Point location,Size size,Color color,string summarizedFieldName,string datafield,Font font,SummaryOperation summaryOperation,int offSetX,int offSetY) {
			_name=name;
			_sectionName=sectionName;
			_location=location;
			_size=size;
			_dataFieldName=datafield;
			_font=font;
			_fieldDefKind=FieldDefKind.SummaryField;
			_fieldValueType=FieldValueType.Number;
			_summaryOperation=summaryOperation;
			_summarizedFieldName=summarizedFieldName;
			_offSetX=offSetX;
			_offSetY=offSetY;
			_foreColor=color;
			//defaults:
			_contentAlignment=ContentAlignment.MiddleRight;
			_reportObjectKind=ReportObjectKind.TextObject;
		}
Пример #8
0
		///<summary>Overload for SummaryField ReportObject</summary>
		public ReportObject(string name,string sectionName,Point location,Size size,SummaryOperation summaryOperation,string summarizedFieldName,Font font,ContentAlignment contentAlignment,string stringFormat) {
			_name=name;
			_sectionName=sectionName;
			_location=location;
			_size=size;
			_font=font;
			_contentAlignment=contentAlignment;
			_stringFormat=stringFormat;
			_fieldDefKind=FieldDefKind.SummaryField;
			_fieldValueType=FieldValueType.Number;
			_summaryOperation=summaryOperation;
			_summarizedFieldName=summarizedFieldName;
			//defaults:
			_foreColor=Color.Black;
			_reportObjectKind=ReportObjectKind.FieldObject;
		}
Пример #9
0
        ///<summary>Overload for SpecialField ReportObject</summary>
        public ReportObject(string thisSectionName,Point thisLocation,Size thisSize
			,FieldValueType thisValueType,SpecialFieldType thisSpecialType
			,Font thisFont,ContentAlignment thisTextAlign,string thisFormatString)
        {
            sectionName=thisSectionName;
            location=thisLocation;
            size=thisSize;
            font=thisFont;
            textAlign=thisTextAlign;
            formatString=thisFormatString;
            fieldKind=FieldDefKind.SpecialField;
            valueType=thisValueType;
            specialType=thisSpecialType;
            //defaults:
            foreColor=Color.Black;
            objectKind=ReportObjectKind.FieldObject;
        }
Пример #10
0
        ///<summary>Overload for SummaryField ReportObject</summary>
        public ReportObject(string thisSectionName,Point thisLocation,Size thisSize
			,SummaryOperation thisOperation,string thisSummarizedField
			,Font thisFont,ContentAlignment thisTextAlign,string thisFormatString)
        {
            sectionName=thisSectionName;
            location=thisLocation;
            size=thisSize;
            font=thisFont;
            textAlign=thisTextAlign;
            formatString=thisFormatString;
            fieldKind=FieldDefKind.SummaryField;
            valueType=FieldValueType.Number;
            operation=thisOperation;
            summarizedField=thisSummarizedField;
            //defaults:
            foreColor=Color.Black;
            objectKind=ReportObjectKind.FieldObject;
        }