Telerik Forums
Reporting Forum
1 answer
183 views
I'm working on a proof of concept project where I have implemented a IReportResolver that returns a reportResolver. What I'm curious about, is how I would go about returning custom error messages to display in the HTML5 report viewer. I have logic to catch when I want to display the error, and I'm throwing a new Exception. However it appears that regardless of what I set the exception message to the displayed error in the viewer is always 

{"message":"","exceptionMessage":"Report '0e12f0b0-5adf-11e4-894e-d4ae52a43518' cannot be resolved.","exceptionType":"Telerik.Reporting.Services.Engine.InvalidReportException" ...}.

I would like to be able to return a different exception message such as Telerik.Reporting.Services.Engine.Unauthorized or something to that effect with the message being something that I can change. Are there any ways to do this?

-Randy
Hinata
Top achievements
Rank 1
 answered on 28 Oct 2014
4 answers
784 views
Hi, I'm using Telerik Reporting,
and in one of my reports, I need
to write a paragraph of text
and have it justified. Is there a way
to do this ?

What about list of items, with bullets or numbering ?
How can I add that to my report?

Thanks.


Nasko
Telerik team
 answered on 28 Oct 2014
7 answers
201 views
Hi there,

I have a TextBox in the details section for some disclaimer text content, as you may know, I want to have the text flushed to left and right, but somehow I cannot make it in the Report Designer. Does anyone has had the same situation? or I am just going the wrong way?

Any help is appreciated!

Zhonghai
Nasko
Telerik team
 answered on 28 Oct 2014
2 answers
350 views
Greetings!

So, a Telerik Reports newbie here and I have a question about all of my charts doing this funny little thing with grouping and returning multiple pie/bar/line charts.

So lets start with the basics, I have a Pie Chart that has two columns from the stored procedure... Age Group, and PeopleServed.  The RecordSet should look something like this:

AgeGroup        PeopleServed
0-4                    3
12-14                85
15-17                55
18-20                26
Age not Know   12 

In SSRS in Visual Studio this is a really simple Pie Chart and completed in seconds.  X= AgeGroup, Y=PeopleSever, done!  One pie chart, not one for every AgeGroup repeating the same data over and over again.  However in the stand alone Report Designer I get the attached photo instead.    

I have to admit in my version of the Report Designer (Report Designer Q2 2014) that when I tried to add the data source of a stored procedure from SQL, I couldn't add it.  It simply would not let me add that data set even after I tested it and it had the same number of columns and was indeed retuning data.  I had to add a 'test' data source with two 'dummy' fields of the same name just to get the pie chart added and change the Data Source after.  So on top of that headache, when I do add the correct live data I get this mess of multiple charts.

So I assumed the issue was with the grouping somewhere, so I followed the instructions found on Telerik's website (http://www.telerik.com/help/reporting/graphhowtocreatepiechart.html) on how to set up the seriesGroup, categoryGroup and Series which can be seen in my second file attached.

So, assuming at this point that one of those groups was causing the issue I started to remove them.  All of them at one point.  I even tried to dumb the report down to just an X and a Y axis and I STILL get this grouping of the pie chart showing up 5 times no matter what settings I fix/change/alter.

So I am calling on the experts here...  why is this happening?  What did I do wrong with this and many reports to get these multiple charts to repeat?

Thanks, 

Ed






  
Mosaix
Top achievements
Rank 1
 answered on 28 Oct 2014
1 answer
174 views
I'm currently trialling Reporting, and am a little confused as to how to export a report with data from C#.

I am using the standalone report designer to save a trdx file using the ObjectDataSource and I'm trying to export to PDF, looking at the KB I have the following code block:

Order tempOrder = new Order("12345", "Mr Test");
 
            Telerik.Reporting.Report report = new Telerik.Reporting.Report();
            report.DataSource = tempOrder;
 
            System.Collections.Hashtable deviceInfo = new System.Collections.Hashtable();
            UriReportSource reportSource = new UriReportSource();
            reportSource.Uri = @"E:\Program Files (x86)\Telerik\Reporting Q2 2014\Report Designer\Examples\Order.trdx";
            Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
            Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport("PDF", reportSource, deviceInfo);
 
            string fileName = result.DocumentName + "." + result.Extension;
            string path = System.IO.Path.GetTempPath();
            string filePath = System.IO.Path.Combine(path, fileName);
 
            using (System.IO.FileStream fs = new System.IO.FileStream(filePath, System.IO.FileMode.Create))
            {
                fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
            }

Which seems to output a pdf using my trxd file however I can find no way to pass in both the data source (or the Report variable with data source defined) and the path to the trdx file. 
Stef
Telerik team
 answered on 28 Oct 2014
1 answer
118 views
Hi,
I am using telerik reporting on my mvc application and wanted to cache my reports per day (my data remains same for whole day and changes only next day). So I wanted to know best cache mechanism and implementation to attain cache for my reports.

This is my report code :
SomePage.aspx :

<tr>
<td style="width: 49%; vertical-align: top;">
<telerik:ReportViewer ID="somereport" runat="server" ToolbarVisible="false">
<typereportsource typename="somenamespace, AgentTrends, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"></typereportsource>
</telerik:ReportViewer>
</td>
</tr>

<div id="somedivid">

@Html.Partial("SomePage")
</div>

               
Stef
Telerik team
 answered on 27 Oct 2014
1 answer
117 views
Hello,

Is there a simple way to create a report from a WPF RadGridView, I dont want to use the export method (pdf, csv...) because I have to add somme other informations. I create my own class but when there are converters or DataTemplate, it doesn't works.

Thanks in adavance

Stef
Telerik team
 answered on 27 Oct 2014
1 answer
135 views
Hi,

I have a report (trdx) file that i've copied from the remote server. i copied it to my local PC. ( i have also restored the database to my PC). i built the report with the same version of Telerik Report Designer. Q2 2014 ver. 8.1.14.804

due to connection and location problem, i have to make a modification with the report locally in my PC, so i copy and open it.

then, the Report Designer goes "loading..", but never finish loading the report. hang, it shows "not responding" in windows task manager, so i have to force close it, again, and again. i've waited for a long time, but it never finish loading it. do i have to build it again from the start? really?

maybe it has something todo with the connectionString. i dont know.

it's happen everytime when i want to change a report that connectionString's is not actually connected at the moment.

its fine when i open a report (trdx) that have connectionString with my local DB in my PC.

so, is there anyway that i can open and modify the report (trdx) ?

Thank you for your kind attention.

-Hariadi-




Nasko
Telerik team
 answered on 24 Oct 2014
1 answer
295 views
When defining the HTML5 report viewer, one can either specify a TypeReportSource or UriReportSource as follows:

[code language="csharp"]
 .ReportSource(new TypeReportSource() { TypeName = typeof(ReportCatalog).AssemblyQualifiedName })
[/code]

When using the TypeReportSource I see all the reports defined within the assembly containing ReportCatalog.

My RESTFul report service is configured to return an instance of ReportTypeResolver as shown below:

[code language="csharp"]
    public class ReportsController : ReportsControllerBase
    {
        // GET: Reports
        //public ActionResult Index()
        //{
        //    return View();
        //}

        protected override IReportResolver CreateReportResolver()
        {
           // var reportsPath = HttpContext.Current.Server.MapPath("~/ReportDefinitions");
            //return new ReportFileResolver(reportsPath);
            //  .AddFallbackResolver(new ReportTypeResolver());

            // use this for Visual Studio reports
           return  new ReportTypeResolver();
        }


[/code]

If I was going to use the standalone report designer to create the reports and drop all report definitions in a folder named ReportDefinitions in my ASP.NET MVC project, how do I present this in the same catalog manner as if I was using the TypeReportSource?

I tried returning an instance of ReportFileResolver(reportsPath) as indicated in the commented section of the code without FallBack, setting the ReportSource of the report viewer to UriReportSource but the report viewer gives an error.



Stef
Telerik team
 answered on 24 Oct 2014
1 answer
281 views
Hi,

I have a report wherein I get data from a datasource. I have a textbox that may sometimes have a null value (see attached file).
Is there a way that the header height will automatically adjust from this textbox?

Thanks
Stef
Telerik team
 answered on 24 Oct 2014
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?