Telerik Forums
Reporting Forum
1 answer
116 views
We have an existing report solution in one of our legacy applications that uses HTML documents as templates.  The reports are generated based on these templates.

It has been decided that we are to switch this application to telerik reporting as we have with some of our other software.  Rather than having to re-design the report in the telerik designer, it would be helpful if we could convert the HTML directly to a telerik design.  Then, we would only have to create the report datasource and tools.

Is this possible?
Stef
Telerik team
 answered on 03 Jul 2013
2 answers
100 views
Hi
My situation is like this:
I've a chart on a report. On this chart I display an amount of categories, each of them has thee property that can be bound. Each category has a categoryname like "operating time" or something like that. My problem is now, I can't display these categorynames on the chart. I know it's possible to set the DataLabelsColumn, but that's not my goal. (I also tried to set the plotArea.xaxis... doesn't work)
For better understanding of my problem:

      
The numbers 1, 2, 3 should display the name of the associated category.

Someone knows how to do that?


Regards Michael
Roman
Top achievements
Rank 1
 answered on 03 Jul 2013
5 answers
658 views
Update
Using:
Copy code
Hashtable deviceInfo = new Hashtable();
deviceInfo["FontEmbedding"] = "Subset";
deviceInfo["ViewerDirection"] = "R2L";

I have checked in Acrobat reader >> Properties, and the "Arial Unicode MS" Font is embedded/subset.
However, Hebrew chars still do not show up at all.

Additionally, I tried embedding a specific freeware Hebrew font (called 'Alef').
In the report it all shows fine, but in the PDF the end result is the same as before, where English chars display fine, but Hebrew chars simply do 
not show up at all.

any ideas?

Thanx

Stef
Telerik team
 answered on 03 Jul 2013
10 answers
444 views
Hi, I am new to the Telerik Reporting. I am trying to display the data item on the legend but could not do so. I need some help. I have attached a screen shot on what I want to do. Appreciate some help.
Unknown
Top achievements
Rank 1
 answered on 02 Jul 2013
7 answers
781 views
I want to hide the group footer when the sum of a particular expression is zero -- not just a single field; it's the product of one field with the sum of three others, and I want to sum this product for all group records and check if it is zero. Can I do this with conditional formatting? I have tried various expressions but whenever it is anything except a single field, the footer section shows as a red box in preview.

This is what I really want:
=Sum(Fields.field1 * (Fields.field2 + Fields.field3 + Fields.field4))
=
0

Tim
Top achievements
Rank 1
 answered on 02 Jul 2013
1 answer
166 views
I have created a telerik report useing textboxes and a subreport.  When I export it to a docx all the controls are exported to the docx.  I would like the text only to come over when exported.  Following is the code i use to export:

Telerik.Reporting.Processing.ReportProcessor TelContractrp = new Telerik.Reporting.Processing.ReportProcessor();
            System.Collections.Hashtable deviceInfo = new System.Collections.Hashtable();
            Telerik.Reporting.InstanceReportSource TelContractirs = new Telerik.Reporting.InstanceReportSource();
            TelContractirs.ReportDocument = currRpt;
            Telerik.Reporting.Processing.RenderingResult result = TelContractrp.RenderReport("DOCX", TelContractirs, deviceInfo);
            string dContract = DateTime.Now.ToString().Replace("/", "");
            dContract = dContract.Substring(0, 12);
            dContract = dContract.Replace(":", "");
            string fileName2 = result.DocumentName + "_" + dContract + "." + result.Extension;
            string filePath2 = System.IO.Path.Combine(saveLocation, fileName2);
            FileStream fs = new FileStream(filePath2, FileMode.Create);
            fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
            fs.Close();
            System.Diagnostics.Process p = new System.Diagnostics.Process();
            p.StartInfo.UseShellExecute = true;
            p.StartInfo.FileName = filePath2;
            p.Start();
Squall
Top achievements
Rank 1
 answered on 02 Jul 2013
1 answer
98 views
I am working a on Silverlight solution using the ReportViewer and a subclass of Telerik.Reporting.Service.ReportService for the reporting service.

The report to be produce is about the same, every time, but I needed a way to provide some "parameters" from the client to the service in order to customize the report before generation.

I used the "ReportViewer.Report" property on the client side and a custom IReportResolver on the server side to transfert my information on the service side. This way, my custom IReportResolver could parse the information, instantiate and customize the report before generation.

Example:
Silverlight:
<tkr:ReportViewer  ReportServerUri="../ReportingService.svc" Report="param1=X;param2=Y;etc" />


Service:
public class MyReportingService : ReportService, IReportResolver
{
 
    public MyReportingService ()
    {
      this.ReportResolver = this;
    }
 
    ReportSource IReportResolver.Resolve( string report )
    {
      var myReport = new MyReport();
      // Here I customize the "myReport" instance based on the
      // value of the "report" parameter
      return new InstanceReportSource() { ReportDocument = myReport };
    }
}

Everything work as expected when displayed in the ReportViewer, but when the user click the "save as" button, the "ReportViewer.Report" property value is NOT the one provided to the IReportResolver. The fully qualified name of the Report class is used instead.

Do you have any suggestions to workaround this issue ?
Peter
Telerik team
 answered on 01 Jul 2013
2 answers
130 views
How to create the report in the controller without the aspx?
I made the following code below but I am not getting html print screen

public ActionResult test() {          
           var instanceReportSource            = new Telerik.Reporting.InstanceReportSource();
           instanceReportSource.ReportDocument = new myReport();
             
           ReportViewer report = new ReportViewer();
           report.ID           = "Teste";
           report.Width        = 100;
           report.ReportSource = instanceReportSource;
 
return ??
}
Diego
Top achievements
Rank 1
 answered on 01 Jul 2013
1 answer
287 views
Hi. 

I bind against a ObjectDataSource that expose boolean properties that shall decide which of three versions of a particular table I display.

The detail section of the report is pretty large and this "polymorphic" table is a small part of it.

I bind the table Datasource against the "ReportItem.DataObject" property and its Visible attribute against the associated boolean.

However, these tables differ in size, and I would like to avoid the whitespace.

I could stack them on top of eachother (z order) in a panel that has "CanShrink" set to true, but this makes it hard to edit the report in the designer.

Is there any solution where:
  • I work with them in the designer, 
  • only the ones that evaluates to Visible=true will be displayed
  • no white space left after the ones that evaluates to Visible=false.
Peter
Telerik team
 answered on 01 Jul 2013
3 answers
422 views
For each row in a detail section, I need the field value from the same field in the previous row to calculate the difference. Is this possible and if yes, how?

:o)
Jon Ivar
Gaurav
Top achievements
Rank 1
 answered on 01 Jul 2013
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?