public void LoadSchema(string schema) { ReportReader reader = new ReportReader(); reader.LoadSchema(schema); Load(reader); }
internal void Load(ReportReader reader) { Clear(); this.DocumentName = reader.GetName(); this.PageHeight = reader.GetHeight(); this.PageWidth = reader.GetWidth(); this.ShowSummary = reader.ShowSummary(); this.ShowFooter = reader.ShowFooter(); this.ShowHeader = reader.ShowHeader(); this.PaperHeight = reader.GetPaperHeight(); this.PaperWidth = reader.GetPaperWidth(); this._cpi = reader.GetCpi(); _groups.Load(reader.GetGroups()); _bands.Load(reader.GetBands()); foreach (Band band in _bands) { if (band.GroupId > 0) { band.Group = Groups[band.GroupId - 1]; } } foreach (BaseWidget widget in reader.GetWidgets()) { widget.Owner = this; _bands[widget.Row].Add(widget); } }
public void LoadFile(string fileName) { ReportReader reader = new ReportReader(); reader.LoadFile(fileName); Load(reader); }
public Group(XmlNode node) { this.Id = Convert.ToInt32(ReportReader.GetValue(node, "id")); this.ColumnName = ReportReader.GetValue(node, "key"); this.ShowFooter = Convert.ToBoolean(ReportReader.GetValue(node, "showfooter")); this.ShowHeader = Convert.ToBoolean(ReportReader.GetValue(node, "showheader")); this.DataType = (TypeEnum)Enum.Parse(typeof(TypeEnum), ReportReader.GetValue(node, "datatype")); InitValue(); }
public static BaseWidget Create(System.Xml.XmlNode node) { switch (ReportReader.GetValue(node, "_type")) { case "0": return(new TextWidget(node)); case "1": return(new ValueWidget(node)); case "2": return(new HorizontalLineWidget(node)); case "3": return(new FunctionWidget(node)); default: return(null); } }
public Band(XmlNode node) { m_bandType = (BandEnum)Enum.Parse(typeof(BandEnum), ReportReader.GetValue(node, "type")); this.GroupId = Convert.ToInt32(ReportReader.GetValue(node, "groupid")); this.Row = Convert.ToInt32(ReportReader.GetValue(node, "row")); }