or
ReportViewer.prototype.get_Height = function() { var reportTable = document.getElementById(this.reportTableId); var lastRow = reportTable.rows[reportTable.rows.length - 1]; var oldDisplay = lastRow.style.display; lastRow.style.display = "none"; var viewer = document.getElementById(this.clientID); var clientHeight = viewer.clientHeight; lastRow.style.display = oldDisplay; return clientHeight; }Public Function ExportToPDF(ByVal reportToExport As Telerik.Reporting.Report) As Telerik.Reporting.Report Dim reportProcessor As New Telerik.Reporting.Processing.ReportProcessor() Dim result As RenderingResult = reportProcessor.RenderReport("PDF", reportToExport, Nothing) Dim fileName As String = result.DocumentName + ".pdf" HttpContext.Current.Response.Clear() HttpContext.Current.Response.ContentType = result.MimeType HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.Private) HttpContext.Current.Response.Expires = -1 HttpContext.Current.Response.Buffer = True 'Uncommenting the following line will prompt user to Open Save or Cancel. Otherwise report opens in new window HttpContext.Current.Response.AddHeader("Content-Disposition", String.Format("{0};FileName=""{1}""", "attachment", fileName)) HttpContext.Current.Response.BinaryWrite(result.DocumentBytes) HttpContext.Current.Response.End() End FunctionHttpContext.Current.Response.Redirect("../WorkOrders/OpenWorkOrdersSummary.aspx", True)If ChkPrint.Checked = True Then Dim tF As New TelerikFunctions Dim rv = New FacilitiesReportsLibrary.WorkOrder rv.setWorkOrderID = Session("WorkOrderID") tF.ExportToPDF(rv) Else Response.Redirect("../WorkOrders/OpenWorkOrdersSummary.aspx") End If<telerik:ReportViewer ID="ReportViewer1" Width="721px" Height="1100px" runat="server" Report="NAVPass.Reports.AMRForm, NAVPass.Reports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" ProgressText="Generating AMR document..." Skin="Original"> </telerik:ReportViewer> // Detail section ICollection<Inspection> inspectList = insRepo.GetInspectionsForAMR(ReportParameters["AMRID"].Value.ToString()); tableInspections.DataSource = inspectList; ICollection<Equipment> equipList = equipRepo.GetEquipmentForAMR(ReportParameters["AMRID"].Value.ToString()); tableEquipment.DataSource = equipList; // // cbRequired // this.cbRequired.CheckAlign = System.Drawing.ContentAlignment.MiddleCenter; this.cbRequired.CheckedImage = ((object)(resources.GetObject("cbRequired.CheckedImage"))); this.cbRequired.IndeterminateImage = ((object)(resources.GetObject("cbRequired.IndeterminateImage"))); this.cbRequired.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0.30000001192092896, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch)); this.cbRequired.Name = "cbRequired"; this.cbRequired.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(0.59999996423721313, Telerik.Reporting.Drawing.UnitType.Inch), new Telerik.Reporting.Drawing.Unit(0.24999998509883881, Telerik.Reporting.Drawing.UnitType.Inch)); this.cbRequired.Style.BorderStyle.Top = Telerik.Reporting.Drawing.BorderType.Solid; this.cbRequired.Style.Padding.Left = new Telerik.Reporting.Drawing.Unit(0, Telerik.Reporting.Drawing.UnitType.Inch); this.cbRequired.Style.TextAlign = Telerik.Reporting.Drawing.HorizontalAlign.Center; this.cbRequired.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle; this.cbRequired.StyleName = ""; this.cbRequired.Text = " "; this.cbRequired.UncheckedImage = ((object)(resources.GetObject("cbRequired.UncheckedImage"))); this.cbRequired.Value = "=Fields.Required"; <!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
"
chart1.ChartTitle.Visible =
true; // works
chart1.ChartTitle.TextBlock.Text =
"Test setting the value"; // works
chart1.PlotArea.YAxis.Clear();
chart1.PlotArea.YAxis.AutoScale =
false;
chart1.PlotArea.YAxis.AddRange(1, 10000, 10000 / 10);
for (int ii = 0; ii < chart1.PlotArea.YAxis.Items.Count; ii++)
{
chart1.PlotArea.YAxis.SetItemLabel(ii,
LabelConverterhelper.ConvertToTimeString((double)chart1.PlotArea.YAxis.Items[ii].Value)); // Does Nothing
// Does not work either
//chart1.PlotArea.YAxis[ii].TextBlock.Text = ChartLabelConverter.ConvertToTimeString((double)chart1.PlotArea.YAxis.Items[ii].Value);
}