public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent) { var el_tablegroup = parent.RS_AddElement("TableGroup"); var el_grouping = el_tablegroup.RS_AddElement("Grouping"); el_grouping.SetAttributeValue("Name", this.Name); var el_ges = el_grouping.RS_AddElement("GroupExpressions"); foreach (var expr in this.GroupingExpressions) { var el_ge = el_ges.RS_AddElement("GroupExpression"); el_ge.Value = expr; } if (this.SortingExpressions != null) { var el_Sorting = el_tablegroup.RS_AddElement("Sorting"); var el_sb = el_Sorting.RS_AddElement("SortBy"); var el_sbe = el_sb.RS_AddElement("SortExpresson"); el_sbe.Value = this.SortingExpressions; } this.Header.write(el_tablegroup); return(el_tablegroup); }
public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent) { var el_tablecolumn = parent.RS_AddElement("TableColumn"); el_tablecolumn.RS_SetElementValue("Width", this.Width.ToString() + "in"); return(el_tablecolumn); }
public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent) { var el_field = parent.RS_AddElement("Field"); el_field.SetAttributeValue("Name", this.Name); el_field.RS_SetElementValue("DataField", this.DataField); return(el_field); }
public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent, string name) { var el = parent.RS_AddElement(name); el.RS_SetElementValue("Height", this.Height.ToString() + "in"); el.RS_SetElementValueCOND("PrintOnFirstPage", PrintOnFirstPage); el.RS_SetElementValueCOND("PrintOnLastPage", PrintOnLastPage); this.ReportItems.write(el); this.Style.write(el); return(el); }
public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent) { var el_datasource = parent.RS_AddElement("DataSource"); el_datasource.SetAttributeValue("Name", this.DatasetName); var connectionproperties = el_datasource.RS_AddElement("ConnectionProperties"); connectionproperties.RS_AddElement("DataProvider"); connectionproperties.RS_AddElement("ConnectString"); return(el_datasource); }
public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent) { var el_field = parent.RS_AddElement("EmbeddedImage"); el_field.SetAttributeValue("Name", this.Name); el_field.RS_SetElementValueCOND("MIMEType", this.MIMEType, i => Image.MIMETypeToString(i)); el_field.RS_SetElementValue("ImageData", this.ImageData); return(el_field); }
public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent) { var el_body = parent.RS_AddElement("Body"); el_body.RS_SetElementValue("Height", this.Height.ToString() + "in"); el_body.RS_SetElementValue("ColumnSpacing", this.ColumnSpacing.ToString() + "in"); this.ReportItems.write(el_body); return(el_body); }
public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent) { var el_header = parent.RS_AddElement("Details"); var el_tablerows = el_header.RS_AddElement("TableRows"); foreach (var t in this.TableRows.Items()) { t.write(el_tablerows); } return(el_header); }
public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent) { var el_node = parent.RS_AddElement("BorderWidth"); el_node.RS_SetElementValueCOND("Default", this.Default, "pt"); el_node.RS_SetElementValueCOND("Left", this.Left, "pt"); el_node.RS_SetElementValueCOND("Right", this.Right, "pt"); el_node.RS_SetElementValueCOND("Top", this.Top, "pt"); el_node.RS_SetElementValueCOND("Bottom", this.Bottom, "pt"); return(el_node); }
//validvalues //multivalue //usedinquery public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent) { var el_parameter = parent.RS_AddElement("ReportParameter"); el_parameter.SetAttributeValue("Name", this.Name); el_parameter.RS_SetElementValue("DataType", this.DataType.ToString()); el_parameter.RS_SetElementValueCONDBOOL("Nullable", this.Nullable); el_parameter.RS_SetElementValueCOND("DefaultValue", this.DefaultValue); el_parameter.RS_SetElementValueCONDBOOL("AllowBlank", this.AllowBlank); el_parameter.RS_SetElementValueCONDBOOL("Hidden", this.Hidden); return(el_parameter); }
public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent) { var el_header = parent.RS_AddElement("Header"); el_header.RS_SetElementValue("RepeatOnNewPage", this.RepeatOnNewPage.ToString().ToLower()); var el_tablerows = el_header.RS_AddElement("TableRows"); foreach (var t in this.TableRows.Items()) { t.write(el_tablerows); } return(el_header); }
public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent, string s) { var el_image = parent.RS_AddElement(s); el_image.RS_SetElementValue("Source", this.Source.ToString()); el_image.RS_SetElementValue("Value", this.Value); el_image.RS_SetElementValueCOND("MIMEType", this.MIMEType, i => MIMETypeToString(i)); if (this.Sizing.HasValue) { el_image.SetAttributeValue("Sizing", this.Sizing.ToString()); } return(el_image); }
public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent) { var el_field = parent.RS_AddElement("Filter"); el_field.RS_SetElementValue("FilterExpression", this.FilterExpression); el_field.RS_SetElementValue("Operator", this.Operator); var el_ex = el_field.RS_AddElement("FilterValues"); foreach (var fv in this.FilterValues) { el_ex.RS_AddElement("FilterValue"); el_ex.Value = fv; } return(el_field); }
public void write(System.Xml.Linq.XElement parent) { var el_tablecell = parent.RS_AddElement("TableCell"); var el_reportitems = el_tablecell.RS_AddElement("ReportItems"); foreach (var cell in this.ReportItems.Items()) { if (cell is TextBox) { var celltb = (TextBox)cell; celltb.write(el_reportitems); } } }
public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent, string name) { var el = parent.RS_AddElement(name); el.SetAttributeValue("Name", this.Name); el.RS_SetAttributeValueCONDBOOL("Visibility", this.Visibility); el.RS_SetElementValue("Height", this.Height.ToString() + "in"); if (this.Width.HasValue) { el.RS_SetElementValue("Width", this.Width.ToString() + "in"); } if (this.Style != null) { this.Style.write(el); } return(el); }
public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent) { var el_reportitems = parent.RS_AddElement("ReportItems"); foreach (var cell in this._reportitems.Items()) { if (cell is TextBox) { var celltb = (TextBox)cell; celltb.write(el_reportitems); } if (cell is Table) { var celltb = (Table)cell; celltb.write(el_reportitems); } } return(el_reportitems); }
public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent) { var el_table = parent.RS_AddElement("Table"); el_table.SetAttributeValue("Name", this.Name); el_table.RS_SetElementValue("Top", this.Top.ToString() + "in"); this.Style.write(el_table); this.Header.write(el_table); this.Details.write(el_table); el_table.RS_SetElementValue("DataSetName", this.DatasetName); var el_tablecolumns = el_table.RS_AddElement("TableColumns"); foreach (var x in this.TableColumns.Items()) { x.write(el_tablecolumns); } if (this.TableGroups.Count > 0) { var el_tablegrops = el_table.RS_AddElement("TableGroups"); foreach (var tg in this.TableGroups.Items()) { tg.write(el_tablegrops); } } if (this.Filters.Count > 0) { var el_filters = el_table.RS_AddElement("Filters"); foreach (var filter in this.Filters.Items()) { filter.write(el_filters); } } return(el_table); }
public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent) { var el_dataset = parent.RS_AddElement("DataSet"); el_dataset.SetAttributeValue("Name", this.Name); var query = el_dataset.RS_AddElement("Query"); query.RS_SetElementValue("CommandText", this.CommandText); query.RS_SetElementValue("DataSourceName", this.DataSourceName); var el_fields = el_dataset.RS_AddElement("Fields"); foreach (var field in this.Fields.Items()) { field.write(el_fields); } return(el_dataset); }
public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent) { var el_tablerow = parent.RS_AddElement("TableRow"); var el_tablecells = el_tablerow.RS_AddElement("TableCells"); foreach (var cell in this.TableCells.Items()) { if (cell is TableCell) { var celltb = (TableCell)cell; celltb.write(el_tablecells); } } if (this.Height.HasValue) { el_tablerow.RS_SetElementValue("Height", this.Height.ToString() + "in"); } return(el_tablerow); }
public System.Xml.Linq.XElement write(System.Xml.Linq.XElement parent) { var el_style = parent.RS_AddElement("Style"); this.BorderColor.write(el_style); this.BorderStyle.write(el_style); this.BorderWidth.write(el_style); el_style.RS_SetElementValueCOND("FontFamily", this.FontFamily); el_style.RS_SetElementValueCOND("FontSize", this.FontSize, "pt"); el_style.RS_SetElementValueCOND("FontWeight", this.FontWeight); el_style.RS_SetElementValueCOND("Format", this.Format); el_style.RS_SetElementValueCOND("Color", this.Color); el_style.RS_SetElementValueCOND("PaddingLeft", this.PaddingLeft, "pt"); el_style.RS_SetElementValueCOND("PaddingRight", this.PaddingRight, "pt"); el_style.RS_SetElementValueCOND("PaddingTop", this.PaddingTop, "pt"); el_style.RS_SetElementValueCOND("PaddingBottom", this.PaddingBottom, "pt"); el_style.RS_SetElementValueCOND("TextDecoration", this.TextDecoration); el_style.RS_SetElementValueCOND("TextAlign", this.TextAlign); el_style.RS_SetElementValueCOND("TextAlign", this.VerticalAlign); el_style.RS_SetElementValueCOND("BackgroundColor", this.BackgroundColor); if (this.BackgroundImage != null) { this.BackgroundImage.write(el_style, "BackgroundImage"); } return(el_style); }