Telerik Forums
Reporting Forum
2 answers
136 views
Hello,

I'm trying to localize fields from database to display different strings depending on the value. What I have is:
- example of the localized caption:   
Me.ColorNameTextBox.Value = My.Resources.MyProjectResources.ColorName
- or with data:   
Me.ColorValueTextBox.Value = "=IIf(Fields.Color =0, ""Blue"", IIf(Fields.Color=1,""Red"", ""Black""))"
What I would like to have is for ColorValueTextBox to have the localized values depending on the Fields.Color.
How can that be accomplished?

Jasna
Top achievements
Rank 1
 answered on 19 Sep 2013
5 answers
191 views
I'm new to Telerik Reporting and I think that it looks like a great product. However I am stumped as how to achieve something that to me sounds like something trivial.
I have an array of coordinates, a class with two properties; X and Y, and want to create a graph that displays these as a smooth line. I create the graph and bind to the array but I have no clue as how to specify that it should use the properties X and Y to place the line.

Right now I have this in my series and it doesn't work at all. I've also tried just =Fields.X
X =Fields.HeadGraph.Polynom.CalculatedPoints[i].X
Y =Fields.HeadGraph.Polynom.CalculatedPoints[i].Y


I feel that must be missing something trivial and any help that can get me forward is greatly appreciated.

BR,
Mats
Stef
Telerik team
 answered on 19 Sep 2013
2 answers
795 views
Hello,

I’m using Telerik Standalone Report Designer and wonder how to add a watermark, e.g. “Draft”, on each page of a report.
In the documentation there is only shown how to do it programatically but not how to do it with the standalone designer.
Hope you will help me.

Thank you
Wolfgang
Wolfgang
Top achievements
Rank 1
 answered on 18 Sep 2013
1 answer
134 views
Hi,

I'm new to Telerik Reporting (Q2 2013 SP1) in ASP.NET. I have only been playing with it for a week or so and I have read the documentation but i can't find the answers to some basic questions.

1. The biggest question is: When building a Report Item, Visual Studio shows a Report.cs and a Report.Designer.cs. The wizard puts everything in the Designer.cs (I would have thought some of it if not all to be in the Report.cs) so what goes in Report.cs? What type of things can I put there or does that Report.cs file stay as is? (sorry if stupid question).

2. I'm interested in creating my own UI (date pickers, checkboxes etc..) and then hitting a button to trigger a report in the ReportViewer. I saw this link that i can bind a datatable to the report which I would like to do. My stumbling block is, in order to build a report, I already have to have the ObjectDatSource predefined in order to design the report so what happens to that ObjectDataSource when I bind another datatable to the report when the existing ObjectDatSource in the report is pointing to a different function? Do i remove it from the Designer after the report is created?

Thanks!
Shane
David
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 17 Sep 2013
1 answer
46 views
Hello, I want to cotinuidade to this Topic.

http://www.telerik.com/community/forums/reporting/telerik-reporting/running-report-created-in-report-designer.aspx

graciously
André
Peter
Telerik team
 answered on 17 Sep 2013
1 answer
234 views

 Hello,

 I'm formatting a chart from telerik reporting to make it look as one telerik chart we have in our silverlight application.

 To do so, I have applied a Skin, and then, programatically, I'm applying new color after the chart constructor initialize component has finished and the skin is applied.

  This is what i'm formatting:
 
            Color deepBlue = Color.FromArgb(255,34,85,146); // DeepBlue RGB 34; 85; 146 ARGB 255; 34; 85; 146
            // chart border
            chart.Appearance.Border.Color = deepBlue;

            Color metalOrange = Color.FromArgb(249, 158, 13); // MetalOrange 249; 158; 13
            // title letters
            chart.ChartTitle.TextBlock.Appearance.TextProperties.Color = metalOrange;

            Color lightBlue = Color.FromArgb(235, 255, 255); // LightBlue 235; 255; 255
            // chart background; original 226; 247; 255
            chart.Appearance.FillStyle.MainColor = lightBlue;

  The Telerik.Reporting.Chart chart var is the one I'm getting from the report after is constructed. The problem is that when rendering the report in PDF, none of this color changes are done.

  As a note, in a test i do, when debugging i check the colors of the chart getting the ones in the skin, the after a clear skin line, i see back the original ones and then, when set mines, i correctly saw debugging my color values set
if I clear the skin, then i see debugging the original values for the colors of the chart. 

Thanks,
Squall
Top achievements
Rank 1
 answered on 17 Sep 2013
1 answer
152 views
Hello Guys,
   Take a look at the screenshot. In the top picture, I applied a filter Top N=5, which returns the result set you see in screen.
   When I remove this filter, the Top N=5 is different.

   I found that if I remove the sorting, the Top N=5 matches the one that is displayed in the top image.  This means that the Filtering is applied over an unorder collection of results.

   Is this a known issue? or do you know what I might be doing wrong?

Thanks!!
Stef
Telerik team
 answered on 16 Sep 2013
1 answer
152 views
Hi. I placed an image using Picturebox in Report. I want to set Tooltip for the Image. By default, tooltip showing as "Image" but i want to set my own tooltip. Please help me out, how to set it. I am using Telerik version 2011. 
Thanks in advance.
KS
Top achievements
Rank 1
 answered on 13 Sep 2013
1 answer
153 views
Hi,
Included is example file. column width is smaller then the recommended size, as shown with borderlines. In preview showing one column, also in print showing 1 only, whereas setting are columncount =4 on normal A4 paper, with margins of 254 mm has a face remaining of 15 cm. interested in hearing how I can resolve things.

Regards,
Nasko
Telerik team
 answered on 13 Sep 2013
2 answers
277 views
Greetings,

I am trying to get a working sample through an asp.net webforms project.  I have worked through the quickstart tutorials and have a working sample report (Report1.cs) that shows data in the Preview and Html Preview window as expected.  However when I attempt to load the report through an asp.net webform web page I can't seem to get any results to appear.  So far I've added the ReportViewer control to the page:

<telerik:ReportViewer id="ReportViewer1" runat="server" ></telerik:ReportViewer>

I've added the web.config settings:

<system.web>
 ...
  <httpHandlers>
    <add path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=7.1.13.802, Culture=neutral, PublicKeyToken=a9d7983dfcc261be"/>
  </httpHandlers>
</system.web>
<system.webServer>
  <handlers>
    <add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=7.1.13.802, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode"/>
  </handlers>
  <validation validateIntegratedModeConfiguration="false"/>
</system.webServer>

I've added the code to the page load method:

protected void Page_Load(object sender, EventArgs e)
        {
 
            if (!IsPostBack)
            {
                InstanceReportSource reportSource = new InstanceReportSource();
                reportSource.ReportDocument = new Report1();
 
                 
                reportSource.Parameters.Add(new Telerik.Reporting.Parameter("@batchType", "Open"));
                reportSource.Parameters.Add(new Telerik.Reporting.Parameter("@fromDate", DateTime.Parse("9/1/2013")));
                reportSource.Parameters.Add(new Telerik.Reporting.Parameter("@toDate", DateTime.Parse("9/10/2013")));
                reportSource.Parameters.Add(new Telerik.Reporting.Parameter("@entityId", 0));
                reportSource.Parameters.Add(new Telerik.Reporting.Parameter("@entityType", ""));
                reportSource.Parameters.Add(new Telerik.Reporting.Parameter("@userId", 1));
 
                ReportViewer1.ReportSource = reportSource;
                //ReportViewer1.RefreshReport();
            }
        }

The site compiles and runs, however when the page executes, I'm getting what appears to be a blank or empty ReportViewer control.  I see no difference If I comment out the parameter list in the codebehind, or if I delete all code from the codebehind.  I've tried calling DataBind() and RefreshReport() but no changes.  What am I missing?

Thanks,
Rick
Stef
Telerik team
 answered on 12 Sep 2013
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?