protected void Page_Load(object sender, EventArgs e) { using (ReportHeader header = new ReportHeader()) { this.Placeholder1.Controls.Add(header); } }
private void AddReportBody(Panel container) { this.reportBody = new Panel(); this.reportBody.ID = "report"; this.header = new ReportHeader(); this.header.Path = ConfigurationHelper.GetReportParameter( "HeaderPath"); this.reportBody.Controls.Add(this.header); this.reportTitleLiteral = new Literal(); this.reportBody.Controls.Add(this.reportTitleLiteral); this.topSectionLiteral = new Literal(); this.reportBody.Controls.Add(this.topSectionLiteral); this.bodyContentsLiteral = new Literal(); this.reportBody.Controls.Add(this.bodyContentsLiteral); this.gridPlaceHolder = new PlaceHolder(); this.reportBody.Controls.Add(this.gridPlaceHolder); this.bottomSectionLiteral = new Literal(); this.reportBody.Controls.Add(this.bottomSectionLiteral); container.Controls.Add(this.reportBody); }
private void AddReportBody(Panel reportContainer) { reportBody = new Panel(); reportBody.ID = "report"; header = new ReportHeader(); header.Path = MixERP.Net.Common.Helpers.ConfigurationHelper.GetSectionKey("MixERPReportParameters", "HeaderPath"); reportBody.Controls.Add(header); reportTitleLiteral = new Literal(); reportBody.Controls.Add(reportTitleLiteral); topSectionLiteral = new Literal(); reportBody.Controls.Add(topSectionLiteral); gridPlaceHolder = new PlaceHolder(); reportBody.Controls.Add(gridPlaceHolder); bodyContentsLiteral = new Literal(); reportBody.Controls.Add(bodyContentsLiteral); bottomSectionLiteral = new Literal(); reportBody.Controls.Add(bottomSectionLiteral); reportContainer.Controls.Add(reportBody); }
private void AddReportBody(Panel container) { this.reportBody = new Panel(); this.reportBody.ID = "report"; if (!this.NoHeader) { this.header = new ReportHeader(); this.header.ResourceAssembly = this.ResourceAssembly; this.header.Path = ConfigurationHelper.GetReportParameter("HeaderPath"); this.reportBody.Controls.Add(this.header); } this.reportTitleLiteral = new Literal(); this.reportBody.Controls.Add(this.reportTitleLiteral); this.topSectionLiteral = new Literal(); this.reportBody.Controls.Add(this.topSectionLiteral); this.bodyContentsLiteral = new Literal(); this.reportBody.Controls.Add(this.bodyContentsLiteral); this.gridPlaceHolder = new PlaceHolder(); this.reportBody.Controls.Add(this.gridPlaceHolder); this.bottomSectionLiteral = new Literal(); this.reportBody.Controls.Add(this.bottomSectionLiteral); container.Controls.Add(this.reportBody); }
private void Dispose(bool disposing) { if (!disposing) { return; } if (this.bodyContentsLiteral != null) { this.bodyContentsLiteral.Dispose(); this.bodyContentsLiteral = null; } if (this.bottomSectionLiteral != null) { this.bottomSectionLiteral.Dispose(); this.bottomSectionLiteral = null; } if (this.closeImageButton != null) { this.closeImageButton.Dispose(); this.closeImageButton = null; } if (this.commandPanel != null) { this.commandPanel.Dispose(); this.commandPanel = null; } if (this.dataTableCollection != null && dataTableCollection.Count > 0) { for (int i = 0; i < dataTableCollection.Count; i++) { if (dataTableCollection[i] != null) { dataTableCollection[i].Dispose(); dataTableCollection[i] = null; } } dataTableCollection = null; } if (this.emailImageButton != null) { this.emailImageButton.Dispose(); this.emailImageButton = null; } if (this.filterAnchor != null) { this.filterAnchor.Dispose(); this.filterAnchor = null; } if (this.goBottomAnchor != null) { this.goBottomAnchor.Dispose(); this.goBottomAnchor = null; } if (this.goTopAnchor != null) { this.goTopAnchor.Dispose(); this.goTopAnchor = null; } if (this.gridPlaceHolder != null) { this.gridPlaceHolder.Dispose(); this.gridPlaceHolder = null; } if (this.header != null) { this.header.Dispose(); this.header = null; } if (this.printAnchor != null) { this.printAnchor.Dispose(); this.printAnchor = null; } if (this.reportBody != null) { this.reportBody.Dispose(); this.reportBody = null; } if (this.reportContainer != null) { this.reportContainer.Dispose(); this.reportContainer = null; } if (this.reportHidden != null) { this.reportHidden.Dispose(); this.reportHidden = null; } if (this.reportTitleHidden != null) { this.reportTitleHidden.Dispose(); this.reportTitleHidden = null; } if (this.reportTitleLiteral != null) { this.reportTitleLiteral.Dispose(); this.reportTitleLiteral = null; } if (this.topSectionLiteral != null) { this.topSectionLiteral.Dispose(); this.topSectionLiteral = null; } this.disposed = true; }
private void Dispose(bool disposing) { if (!disposing) { return; } if (this.bodyContentsLiteral != null) { this.bodyContentsLiteral.Dispose(); this.bodyContentsLiteral = null; } if (this.bottomSectionLiteral != null) { this.bottomSectionLiteral.Dispose(); this.bottomSectionLiteral = null; } if (this.closeImageButton != null) { this.closeImageButton.Dispose(); this.closeImageButton = null; } if (this.commandPanel != null) { this.commandPanel.Dispose(); this.commandPanel = null; } if (this.dataTableCollection != null && dataTableCollection.Count > 0) { for (int i = 0; i < dataTableCollection.Count; i++) { if (dataTableCollection[i] != null) { dataTableCollection[i].Dispose(); dataTableCollection[i] = null; } } dataTableCollection = null; } if (this.emailImageButton != null) { this.emailImageButton.Dispose(); this.emailImageButton = null; } if (this.filterImageButton != null) { this.filterImageButton.Dispose(); this.filterImageButton = null; } if (this.goBottomImageButton != null) { this.goBottomImageButton.Dispose(); this.goBottomImageButton = null; } if (this.goTopImageButton != null) { this.goTopImageButton.Dispose(); this.goTopImageButton = null; } if (this.gridPlaceHolder != null) { this.gridPlaceHolder.Dispose(); this.gridPlaceHolder = null; } if (this.header != null) { this.header.Dispose(); this.header = null; } if (this.printImageButton != null) { this.printImageButton.Dispose(); this.printImageButton = null; } if (this.reportBody != null) { this.reportBody.Dispose(); this.reportBody = null; } if (this.reportContainer != null) { this.reportContainer.Dispose(); this.reportContainer = null; } if (this.reportHidden != null) { this.reportHidden.Dispose(); this.reportHidden = null; } if (this.reportTitleHidden != null) { this.reportTitleHidden.Dispose(); this.reportTitleHidden = null; } if (this.reportTitleLiteral != null) { this.reportTitleLiteral.Dispose(); this.reportTitleLiteral = null; } if (this.topSectionLiteral != null) { this.topSectionLiteral.Dispose(); this.topSectionLiteral = null; } this.disposed = true; }