Hi,
Hope you are fine.
I am passing parameter from reportviewer to report like
TypeReportSource trs = new TypeReportSource() { TypeName = typeof(TYMReporting.Reports.ZoneReport1.ZoneReportTelerik).AssemblyQualifiedName };trs.Parameters.Add(new Telerik.Reporting.Parameter("ID","1"));@(Html.TelerikReporting().ReportViewer() // Each report viewer must have an id - it will be used by the initialization script // to find the element and initialize the report viewer. .Id("reportViewer1") // The URL of the service which will serve reports. // The URL corresponds to the name of the controller class (ReportsController). // For more information on how to configure the service please check http://www.telerik.com/help/reporting/telerik-reporting-rest-conception.html. .ServiceUrl(Url.Content("~/api/reports/")) // The URL for the report viewer template. The template can be edited - // new functionalities can be added and unneeded ones can be removed. // For more information please check http://www.telerik.com/help/reporting/html5-report-viewer-templates.html. .TemplateUrl(Url.Content("~/ReportViewer/templates/telerikReportViewerTemplate-9.1.15.731.html")) // Strongly typed ReportSource - TypeReportSource or UriReportSource. .ReportSource(trs)So kindly tell me how can i get the passed parameter on report page. i am trying to get like
public ZoneReportTelerik() { InitializeComponent(); var dal = new DataEntities(); var zoneReport = new DataSet(); var ID=this.ReportParameters["ID"].Value;}but its not getting the parameter. it always returns null. kindly guide me please.
REgards,
Faisal
We have a dynamically created report that we build using a table. One of the columns on this report is a PictureBox that we use a LoadImage(path) function for the value. This report displays correctly in the viewer. I can also export it to a PDF without a problem. However, when I try to export it to excel or when I try to write it directly to excel, I get a "parameter is not valid" error with the full stack trace shown below. I tried this locally and on a test server but I get the same error. Is there a setting on the PictureBox that I am missing? Configuration settings? Any ideas?
Exception type: ArgumentException
Exception message: Parameter is not valid.
Stack trace: at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
at Telerik.Reporting.ExcelRendering.PictureBox.GetAdjustedImage(Image originalImage, RectangleU srcRectangle, RectangleU dstRectangle)
at Telerik.Reporting.ExcelRendering.PictureBox.ProcessImage(Image originalImage, RectangleU& excelRectangle, Image& excelImage)
at Telerik.Reporting.ExcelRendering.PictureBox.RenderInternal(IWorksheet worksheet, RenderingContext context)
at Telerik.Reporting.ExcelRendering.RenderingItem.Render(IWorksheet worksheet, RenderingContext context)
at Telerik.Reporting.ExcelRendering.RenderingItemContainer.RenderInternal(IWorksheet worksheet, RenderingContext context)
at Telerik.Reporting.ExcelRendering.Table.RenderInternal(IWorksheet worksheet, RenderingContext context)
at Telerik.Reporting.ExcelRendering.RenderingItem.Render(IWorksheet worksheet, RenderingContext context)
at Telerik.Reporting.ExcelRendering.RenderingItemContainer.RenderInternal(IWorksheet worksheet, RenderingContext context)
at Telerik.Reporting.ExcelRendering.Section.RenderInternal(IWorksheet worksheet, RenderingContext context)
at Telerik.Reporting.ExcelRendering.RenderingItem.Render(IWorksheet worksheet, RenderingContext context)
at Telerik.Reporting.ExcelRendering.Group.RenderInternal(IWorksheet worksheet, RenderingContext context)
at Telerik.Reporting.ExcelRendering.RenderingItem.Render(IWorksheet worksheet, RenderingContext context)
at Telerik.Reporting.ExcelRendering.RenderingItemContainer.RenderInternal(IWorksheet worksheet, RenderingContext context)
at Telerik.Reporting.ExcelRendering.Report.RenderInternal(IWorksheet worksheet, RenderingContext context)
at Telerik.Reporting.ExcelRendering.RenderingItem.Render(IWorksheet worksheet, RenderingContext context)
at Telerik.Reporting.ExcelRendering.Report.Render(IWorkbook workbook)
at Telerik.Reporting.OpenXmlRendering.Spreadsheet.SpreadsheetReport.Telerik.Reporting.Processing.IRenderingExtension.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
at Telerik.Reporting.Processing.ReportProcessor.RenderCore(String format, IList`1 reports, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)
at Telerik.ReportViewer.WebForms.ReportExportOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, IRenderingContext renderingContext)
at Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride()
at Telerik.ReportViewer.WebForms.HandlerOperation.PerformOperation(HttpContext context, ICacheManager cacheManager)
at Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
​
I have a report I built in Visual Studio but can't seem to find any tools to edit the report.
For example, how to I insert a text box? How do I insert today's date?
Can a .cs file report be edited in the offline designer?
Thanks
Kurt
I have a report, straight table with 15 columns and 7000 rows. Running in an MVC application.
Report is slow to load and renders the browser useless after it does render.
I am looking to have a discussion on things that can be done to reduce this perfomance bottleneck.
All suggestions welcome,
Kurt
Hi guys,
I want to hide some line portions in a telerik chart, I don't know how to explain it, so I've created an example image to show you my idea
How you can see in this case I assumed that in March there isn't any data, so the line must by invisible in that month
I am running SQL 2008 R2 on Windows 7.
Telerik Report Designer, Q3 2015.
I can't seem to get a connection string to connect to my database.
Any thoughts on what I should select to connect?
Thanks
Kurt
I am new at this, created a simple graph report and it displays just fine. I have a table report (7000 rows, 15 columns) that works fine in visual studio. When I try to view the report in the application this is that I see.
Done. Total 1 pages loaded.
But I never see the report paint on the screen. Thoughts? See attachment.
Kurt
Hello guys, I'm new using Telerik Report. I'm using telerik report in windows forms application with visual basic in visual studio 2015. I've followed the "Best Practices" and created a class library I've referenced this class in my application, but I can't view my reports I got the error "The source of the report definition has not been specified", I've already tryed "Instance report source" and "Type report source"
Dim instanceReportSource As New Telerik.Reporting.InstanceReportSource()
' Assigning the Report object to the InstanceReportSource
instanceReportSource.ReportDocument = New myLibrary.myReport
' Adding the initial parameter values
instanceReportSource.Parameters.Add(New Telerik.Reporting.Parameter("OrderNumber", "SO43659"))​
and with Type report source I don't know how to do
typeReportSource.TypeName = GetType(myLibraryObject?).AssemblyQualifiedName
typeReportSource.Parameters.Add(New Telerik.Reporting.Parameter("OrderNumber", "SO43659"))​
what should I do?
thanks in advance
I have gotten the ASP.NET MVC Report Viewer working in my MVC application using the sample code provided on the website. I am viewing the sample report called SampleReport.trdx.
I have created a test report using the Visual Studio Designer and of course it is of .cs extension. ActiveUsers.cs.
In the ReportViewerView.cshtml the report source is set like so: .ReportSource(new UriReportSource() { Uri = "SampleReport.trdx" })
How to I change the reportsource to use the activeusers.cs; I have tried .ReportSource(new UriReportSource() { Uri = "ActiveUsers.cs" }) and it says the name cannot be resolved.
Regards,
Kurt