Telerik Forums
Reporting Forum
2 answers
148 views
Hello,

I use Silverlight reports. I would like to change property Visible of report parameters "on fly" from Silverlight Report Viewer. For example in the method RenderBegin. Because on design time I do not know what parameters of report have I to display and what to hide.

In the MainPage.xaml.cs I am having:

private void reportViewer1_RenderBegin(object sender, Telerik.ReportViewer.Silverlight.RenderBeginEventArgs args)
{
    args.ParameterValues["StartDate"] = DateTime.Now.AddDays(x);

     // I would like someting like that
    args.ParameterValues["StartDate"].Visible = false;
}

How can I set property "Visible" of report parameters programmatically?

Thank you,
Andrew
Thomas
Top achievements
Rank 1
 answered on 27 Jun 2013
1 answer
562 views
Hello

My report table header includes two rows. Something like this:
row 1:  Column Name 1 |  Column Name 2 |  Column Name 3 |
row 2:                1          |          2                |               3           |
with data rows following that header.

When I set ColumnHeadersPrintOnEveryPage field of Telerik.Reporting.Table object to true, only the first row (row 1) is printed on every page. Can I include row 2 into table header to print both rows on every page?
Timur
Top achievements
Rank 1
 answered on 27 Jun 2013
1 answer
125 views

I have some reports embedded in an ASP.NET Razor View.

Everything works perfectly on my dev box, but as soon as I deploy to live I get the following error:

Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper'.;

I’ve checked the versioning in the web.config, and it is using the web.config, and I have reinstalled the telerik reporting on the server, but to no avail.

The controller is:

public ActionResult Dashboard(int id)
        {
            var instanceReportSource = new Telerik.Reporting.InstanceReportSource();
            instanceReportSource.Parameters.Add(new Telerik.Reporting.Parameter() { Name = "BidId", Value = id });
            instanceReportSource.ReportDocument = new BidSummary();
            return View(instanceReportSource);
        }

And the view is

<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Telerik.Reporting.InstanceReportSource>" %>
<%@ Import Namespace="BidGovernance.Reports" %>
<%@ Register assembly="Telerik.ReportViewer.WebForms, Version=7.0.13.521, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.ReportViewer.WebForms" tagprefix="telerik" %>
<%@ Register assembly="Telerik.Reporting, Version=7.0.13.521, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.Reporting" tagprefix="telerik" %>
<!DOCTYPE html>
<html>
<head runat="server">
    <meta name="viewport" content="width=device-width" />
    <title>Dashboard</title>
</head>
<body>
    <div>
        <form id="form1" runat="server">
        <telerik:ReportViewer ID="ReportViewer1" runat="server"  Width="100%" Height="800px"></telerik:ReportViewer>
    <div>
        <script runat="server">
             public override void VerifyRenderingInServerForm(Control control)
              {
             // to avoid the server form (<form runat="server"> requirement
              }
             protected override void OnLoad(EventArgs e)
              {
             base.OnLoad(e);
             //Telerik.Reporting.ObjectDataSource data = new Telerik.Reporting.ObjectDataSource();
             //data.DataSource = Model;
             //Telerik.Reporting.Report report = new Telerik.Reporting.Report();
             //report.DataSource = data;
             //     var instanceReportSource = new Telerik.Reporting.InstanceReportSource();
            //     instanceReportSource.ReportDocument = report;
             //     instanceReportSource.ReportDocument = new DSTest();
                  ReportViewer1.ReportSource = Model;
              }
       </script>
         
    </div>
            </form>
    </div>
</body>
</html>

Please help.

Eddie
Squall
Top achievements
Rank 1
 answered on 26 Jun 2013
4 answers
188 views
Hello Friends,

This is my first post...apologies if posting at the wrong place.

We have a .Net Silverlight application and a Telerik Report (used Telerik Q2 2012 to develop the report).

The SQL SP returns the results and report displays results in 2 pages as data cannot be fitted into one single page.(lets say 60 rows in total)

Now we want to show like say 20 rows in page 1 and rest 40 rows in page2.
How to achieve this...could someone please advise? 

Thanks in advance.
ShivaatT
Top achievements
Rank 1
 answered on 24 Jun 2013
1 answer
117 views
In our reports we are using some custom fonts. To have correct outlook of exported PDF we are embedding these fonts into PDF.
However some of our clients needs the functionality to edit these documents later without installed font on machine and with embedded fonts they are loosing signs of these fonts.
I know that some engines provide functionalities to convert font to outlines when exporitng to PDF. The question is, if Telerik Reporting can do that? If yes, can You provide any simple example?

Thanks in advance
Stef
Telerik team
 answered on 24 Jun 2013
1 answer
111 views

i have created a reportserver. This allows to display several independant reports in the browser.
The initial reportparameters are filled in with values from the url
but those parameters can be changed.
when i export the second render result (with different parameter values) to pdf in the code behind, it always saves the document with the initial report parameters.
when i use the export function from the reportviewer, it is correct

Dim succesful As Boolean = False

try

 Dim reportProcessor As New Processing.ReportProcessor()

 Dim instanceReportSource As New InstanceReportSource()

 instanceReportSource = ReportSelection(true)

 Dim result As Processing.RenderingResult = reportProcessor.RenderReport("PDF", instanceReportSource, deviceInfo)

 Dim fileName As String '= result.DocumentName + "." + result.Extension

 Dim directoryPath As String = servername.MapPath("../docs/")

 

 Dim contextDirectory As New DirectoryInfo(directoryPath)

 If contextDirectory.Exists Then

 Else

 contextDirectory.Create()
end If

 Using fs As New System.IO.FileStream(directoryPath & fileName, System.IO.FileMode.Create)

 fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length)

 fs.Close()

 

end Using


any suggestions?

 

 

 

Stef
Telerik team
 answered on 24 Jun 2013
2 answers
94 views

Hello,

We are introducing the Chinese languages (Traditional and simplified) in our product. Everything went fine until we came to sorting. Chinese strings are not sorting as they are supposed to. This(these) language(s) has its(their) own 2 special sorting orders, as you probably know are: By phonetics(pronunciation) or by number of strokes.

We are using the Q3-2012 version of Telerik. Does this version support this types of sorting?

PS: I saw a similar question posted by a developer on july 2009, asking if the sorting for other language (example for Taiwan- traditional) is supported. The answer came from an admin called Steve:

Hi …,
Sorting of data in Telerik Reporting is done through the standard sorting mechanism in .NET.
Greetings,
Steve
the Telerik team

 

By .NET-mechanism he meant sorting via Unicode values I presume?

Is this still a fact even with Version Q3?

 

Regards

Elie

 

Stefan
Top achievements
Rank 1
 answered on 24 Jun 2013
1 answer
180 views
I'm using the Graph object in Q1 2013 (instead of the obsolete Chart).

I have a stacked bar chart with three values (slight, moderate, severe) and I'm using a custom color palette to control the colors. The colors match up like so:
  • Slight = Green
  • Moderate = Yellow
  • Severe = Red

However, if I exclude a value, say Slight, I get the following:
  • Moderate = Green
  • Severe = Yellow

But what I want is:
  • Moderate = Yellow
  • Severe = Red

How can I achieve that?

Ideas:
  1. I realize I can use DataPointConditionalFormatting to color the bars, BUT that doesn't change the legend markers. Can I change the legend colors programmatically?
  2. Can I modify the Color Palette programmatically? If so, could I remove a color in the collection to control the default bar and legend colors?

Thanks for any help!

Ken

UPDATE:

To get around the non-matching legend colors issue I did the following:
  1. Used conditional formatting to color the bars.
  2. Hid the default legend.
  3. Added my own static legend on the report below the chart.

That's not a bad solution, but I would still like an answer to my questions above.

Stef
Telerik team
 answered on 21 Jun 2013
6 answers
204 views
Hello there,

I am new to this Telerik reporting thing and I am taking over someone who was a developer at my company.

I was trying to install an old version of Telerik but the installer could not allow me, so i ended up installing the last version Q2 2013.

However, my solution (asp.net solution was build in VS 2010 using frame work .net 3.5) and now when I go trhough the telerik upgrade wizard, it would not allow to update my references until I switch my .net solution to .net frame work 4.0. What should I do ? If i try that I get lots of warnings, should I ignore those warnings ?

Thank you
Otto Neff
Top achievements
Rank 2
 answered on 21 Jun 2013
1 answer
106 views

Hi,

I am using parametrised Stored procedure to fetch data for report. In the report I have  added a parameter 
for this Stored procedure. But parameter value does not assigned properly,
It always send null values as a Parameter to the SP. 
Am I missing something to solve this problem?
(using Q2 2013 Version of Reporting)

Thanks in advance.
Ivan Hristov
Telerik team
 answered on 21 Jun 2013
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?