Telerik Forums
Reporting Forum
2 answers
161 views

I want to do conditional formatting on a particular column called "HubArrival" which is DateTime format. I want it to have a pink background if the difference between HubArrival and BookedArrival is greater than 45 minutes, and I have set up conditional formatting to do this. Here is the code from the resulting designer file:

 

formattingRule2.Filters.Add(new Telerik.Reporting.Filter("AddMinutes(Fields.BookedArrival, 45)", Telerik.Reporting.FilterOperator.LessThan, "Fields.HubArrival"));

 

On running the report, an error occurs stating that DateTime cannot be compared with text - but both fields are of type DateTime.

Graham
Top achievements
Rank 2
Iron
Iron
 answered on 04 May 2017
5 answers
1.0K+ views

Hello,

i am using Telerik R1 2017 and created many reports. by default the background color of the report viewer is white. i want to change the background color of the report viewer so that the report stands out. 

i tried below mentioned style

    <style>
        #reportViewer { 
            position:absolute;
            left: 5px;
            right: 5px;
            top: 5px;
            bottom: 5px;
            font-family: 'segoe ui', 'ms sans serif';
            overflow:hidden;
            z-index:-1;
            background-color:ivory;
        }
    </style>

this does sets background color but now the main report is not visible at all. i can only see the color i have selected as background color.

 

Kind Regards,

Savan K. Parmar

Stef
Telerik team
 answered on 04 May 2017
3 answers
232 views

I'm not sure where else to put this.  My users (usually using IE 10/11) have random issues when trying to view a report.  Sometimes they come up fine and sometimes they don't.  I've seen some similar issues related to the report cache but I can't figure it out.  One thing I did notice is that the site is HTTPS but the reportviewer request URL is http.

Here are the exception details:

Message: Object reference not set to an instance of an object.
Source: Telerik.Reporting
Stack Trace:    at Telerik.Reporting.Html5Rendering.Writers.Html.ImageWriter.SaveImageInStreamCore(IImageContainer imageContainer)
   at Telerik.Reporting.Html5Rendering.Writers.Html.ImageWriter.WritePredefinedImage(IImageContainer imageContainer)
   at Telerik.Reporting.Html5Rendering.Writers.Html.Checkbox.WriteImage(CheckBox checkBox, PictureContainerPageInfo picPageInfo)
   at Telerik.Reporting.Html5Rendering.Writers.Html.Checkbox.Begin(LayoutElement element, ElementPageInfo pageInfo)
   at Telerik.Reporting.Html5Rendering.Writers.Report.WriteStartElement(LayoutElement element, ElementPageInfo pageInfo)
   at Telerik.Reporting.BaseRendering.PageHandler.Telerik.Reporting.Paging.IPageHandler.StartElement(LayoutElement element, ElementPageInfo info)
   at Telerik.Reporting.Paging.PageStartElement.AddToPage(IPageHandler handler)
   at Telerik.Reporting.Paging.PageElementLayer.AddToPage(IPageHandler handler)
   at Telerik.Reporting.Paging.PageElementManager.AddToPage(IPageHandler handler)
   at Telerik.Reporting.Paging.PageCompositionBase.AddElementsToPage()
   at Telerik.Reporting.Paging.PageCompositionBase.SendPhysicalPages()
   at Telerik.Reporting.Paging.PageCompositionBase.OutputPage()
   at Telerik.Reporting.Paging.PageCompositionBase.CreatePages()
   at Telerik.Reporting.Paging.PagerBase.Telerik.Reporting.Paging.IPager.CreatePages(IPageHandler handler, LayoutElement root)
   at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(LayoutElement root, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback, PageSettings pageSettings)
   at Telerik.Reporting.BaseRendering.RenderingExtensionBase.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
   at Telerik.Reporting.Processing.ReportProcessor.RenderCore(ExtensionInfo extensionInfo, IList`1 processingReports, 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.ReportPageOperation.RenderReport(String format, IList`1 processingReports, Hashtable deviceInfo, IRenderingContext renderingContext)
   at Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride()
   at Telerik.ReportViewer.WebForms.ReportPageOperation.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)
Target Site: System.String SaveImageInStreamCore(Telerik.Reporting.Processing.Imaging.IImageContainer)
Request Details:
URL: http://*url hidden*/Telerik.ReportViewer.axd?instanceID=1d087466ed0a454683886958922f347e&optype=Report&PageIndex=0&RenderID=41047800a01c4dbe9a8772d18de201ce&RenderingFormat=HTML5Interactive

Stef
Telerik team
 answered on 04 May 2017
4 answers
195 views

I created a Rose Radar Graph to mimic a Polar Graph, I have the angular axis labeled at each 90 degree interval with a max of 360 degrees. Is there a way to add 180 to that value? also, the Graph Axis lines aren't showing as I want them too, i've attached a screenshot as well. 

 

Where the 0 is on the top, I want to display 180, 90 -> 270, etc. The axis lines I want to be a cross versus the x like configuration they are in now. 

Ivan Hristov
Telerik team
 answered on 04 May 2017
1 answer
97 views

Hi,

 

I'm having problem with a graph in a report. The lables get mixed together. See attached image.

 

Best regards,

Thomas Hellström

Stef
Telerik team
 answered on 02 May 2017
3 answers
634 views

When I generate my pie charts, sometimes all of the labels get stacked on top of one another and it shrinks the pie chart down to a tiny size to make room for all of them.

Is there any way to get the chart to move some to the left and some to the right so it doesn't do this?  See the attached image, compare the size of each pie chart and notice how one of them has 6 labels stacked in one spot

 

Thanks

Stef
Telerik team
 answered on 02 May 2017
3 answers
187 views

I'm having trouble with re-running reports and the export button.  In this scenario, hitting the export button will export all previously opened version of the report, so you end up with multiple exports.  Here's the setup:

Lets say you create a telerik report and you have some kind of a parameter building UI.  You run the report and it opens up below your parameter building section.  Then you decide you want to add one more thing, you add the new parameter and run your report again.  The report correctly loads with the new parameter.

In both runs the report executes on the same element.  On run, it clears the data from the element with the following line of code: myReportData.removeData();.  After which it recreates the report. 

However, when you click "export to pdf", you get a pdf from both versions of the report.  It's as if the binding to that button still exists and the report is cached.  If it is a binding how can I remove it? If the file is caches somewhere, how can I delete that cache?

Stef
Telerik team
 answered on 02 May 2017
1 answer
135 views

We are creating report for our Web application and We have following Issues:

Date Format issue  as default it always give (4/27/2017) - (MM/dd/yyyy) we need to Customize the Date format as (dd/MMM/yyyy).

I need to add Date validations in the report viewer is it possible, if So Share me the Sample code for it. 

Regards,

 

Durai

 

 

Stef
Telerik team
 answered on 02 May 2017
1 answer
1.6K+ views

Hello,

currently i perform some tests with the reporting features but i have some questions about the licensing the exact differences etc.

I have a Windows Service as Server and as client a WPF Application. The communication works over two Web-Services (one for each side). This architecture is well tested and works very fine for our purposes.

Lets go to the questions:

  1. i want to have the reports on all clients. The delivery of the reports should perform from my own Windows Service. Is it possible to implement a simple Webservice to render and manage the reports on the server side? Is the documented REST/WCF Reporting-Service the right one to choose? Or do we have to buy the report server as well?
  2. I want to use the Standalone Report designer for creating and administrating the reports. Is it possible to connect the ReportDesigner to the above mentioned Webservice?

Thanks,

Michael

Stef
Telerik team
 answered on 28 Apr 2017
1 answer
288 views

Hello Telerik Suupport Team,

Good Morning!

For one of our project purpose , team is using telerik reporting tool , but report is developed in Telerik 10.1.16.215 version. But unfortunately we are not able to download this version of dll from Telerik report  control panel.

Please look into the attached image for more detail.

Please provide some guidelines to solve this issue.

 

Thanks

 

 

 

Stef
Telerik team
 answered on 28 Apr 2017
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?