Telerik Forums
Reporting Forum
1 answer
85 views
I've been trying to resolve this issue for over a week now and there's a huge demo of my customer's new site this week and I just cannot solve this issue.  It seems like such a minor thing yet it's causing a huge headache.  I finally tracked down what was causing it but I cannot seem to get around it.

I have a report that has a table inside of it with a 2nd data source.  It displays the data perfectly except for the fact that the text is right up alongside the table cells. If I try to add padding to the table cells it causes some serious display problems.  I've attached two screen shots.  One is the HTML Preview of my report Without padding and one With padding.

This display issue only occurs in HTML not in Print Preview and it exports just fine.  They preview the report through the Telerik WebForm Report Viewer however so I need it to show up appropriately in HTML.

Milen | Product Manager @DX
Telerik team
 answered on 11 Apr 2013
3 answers
167 views
Hello,

I want to generate reports from a Silverlight application. As I saw from the demo, I need to have a ReportViewer in a user control, set the Report Service URI, and set the name of the report. How can I pass the data context of the report from Silverlight to the reporting service?
Peter
Telerik team
 answered on 11 Apr 2013
3 answers
132 views
Hi Telerik Team.
I am new on Telerik reporting and I have looked for any information about what I want to do but any success.
I am trying to do a report which the source is an object I create from my model, which model has a navigation property which is a collection.
For example I create an Object ClassRoom(name, grade, code, amount students, etc) and I have a collection of student belong to that ClassRoom (which is a navigation property in my model), I also have a navigation property in my Entity Studen which is subjtects (Math, English, Spanish, etc), when I create my Object ClassRoom (my datasource) I CANT access to the collections when I am doing my report.
Please if someone can tell me what can I do? I would like to show in my report for example:

ClassRoom 1
Grade First
Code CLAS001
Amount Student 30

Details
Peter   12 years old   Math-9   English-8  Spanish-6
Tom     12 years old   Math-9   English-8  Spanish-6
Pep     12 years old   Math-9   English-8  Spanish-6
Rick     12 years old   Math-9   English-8  Spanish-6

In other things my Object is this was: ClassRoom has Students and Students has Subjects (there are navigation properties collections)
Thanks in advance!
Peter
Telerik team
 answered on 11 Apr 2013
1 answer
295 views
Hi,
       I am am trying to export a report programmatically to then attach to an email. The report runs correctly and is save as expected, I just cannot get the parameter values to pass through to the report, I have followed the advice in the following two articles:

The report being used is used elsewhere in the website in a ReportViewer control wheer it's parameters are set prgramatically and it works correctly.

This is the code I am using is below:
public static string ExportToPdf(string documentName,int periodId, int pupilId)
   {
       ReportProcessor reportProcessor =  new ReportProcessor();
       Hashtable deviceInfo = new Hashtable();
 
       InstanceReportSource instanceReportSource = new InstanceReportSource ();
 
       instanceReportSource.ReportDocument= new ARView2();
       instanceReportSource.ReportDocument.DocumentName = documentName;
 
       instanceReportSource.Parameters.Add(new Telerik.Reporting.Parameter("PeriodID", periodId));
       instanceReportSource.Parameters.Add(new Telerik.Reporting.Parameter("PupilID", pupilId));
 
       RenderingResult result = reportProcessor.RenderReport("PDF", instanceReportSource, deviceInfo);
 
       string fileName = result.DocumentName + "." + result.Extension;
       string filePath = Path.Combine(Path.GetTempPath(), fileName);
 
       using (FileStream fs = new FileStream(filePath, FileMode.Create))
       {
           fs.Write(result.DocumentBytes,0,result.DocumentBytes.Length);
       }
 
       return filePath;
   }

Do you have any ideas as to why my reports is not receiving the parameters as passed to it. This code is setting the parameters via code but using a ReportViewer to see the result, this works as expected.
if (e.Item.Level == 0) return;
 
           string[] parms = e.Item.Value.Split(':');
 
           int periodId = Convert.ToInt32(parms[0]);
           int pupilId = Convert.ToInt32(parms[1]);
 
           var rpt = new ARView2
               {
                   DocumentName = string.Format("{0} {1} {2}",cbPermittedPupils.Text.Trim().Replace(",",""),
                                                       pbARList.SelectedItem.Text.Trim(),
                                                       ((RadPanelItem)pbARList.SelectedItem.Parent).Text)
               };
 
           rvAR.ReportSource = new InstanceReportSource { ReportDocument = rpt };
           rvAR.ReportSource.Parameters.Add(new Parameter("PeriodID", periodId));
           rvAR.ReportSource.Parameters.Add(new Parameter("PupilID", pupilId));
           rvAR.RefreshReport();


 I am using Q3 2012 (6.2.12.1017) in an ASP.NET 4 website.

Thanks

Chris


Chris
Top achievements
Rank 2
 answered on 11 Apr 2013
3 answers
617 views
I have a report that has anywhere from 1 to 6 pages depending upon the amount of data. At the very last page, at the very bottom of that last page, I need to do some summary data.

I tried the footer, but that showed up at the bottom of every page. I tried group footer, but that just showed up at the end ot the group--which sometimes was at the top or middle of the page. Any thoughts of how I could accomplish this?
Squall
Top achievements
Rank 1
 answered on 11 Apr 2013
9 answers
1.5K+ views

How can I pass the datasource to a subreport from a page?

Ex: "ReportViewer1.Report.SubReport.DataSource = ds"

[]'s

Henrique

Arun
Top achievements
Rank 1
 answered on 10 Apr 2013
2 answers
212 views
Hi

I have a report of a some complex nature, in which a bunch of subreports and/or sections are included inside the detail section.  The problem is that the report starts showing detail section data on the second page.  Quite obviously the solution for this problem would be to set the KeepTogether property to false on the detail section (I have them already on each sub report object) but I cannot be done in such section.

How could I achieve the detail section dividing so data gets display on the first page?

Any suggestions would be appreciated!

Neftali Figueroa
nfigueroa
Top achievements
Rank 1
 answered on 10 Apr 2013
1 answer
70 views
Hi,
I have several textboxes in the report. They are all set CanGrow according to the amount of text inside them.But there is a problem in it.
When the text is long, the text  will overstep boundary of the textbox. But the textbox actually has grown, like the following picture.

Any known issues or pointers to what the problem may be?

Regards
Milen | Product Manager @DX
Telerik team
 answered on 10 Apr 2013
1 answer
53 views
Bug: When using the telerik Report Viewer in web forms and viewing that page in Internet Explorer the area where it shows the textbox for the Current page of #Total pages.  When on the first page it will wrap the "of XX" to the next line until you either highlight the text or go to the next page.  It's a minor cosmetic bug that was really driving my QA folks nuts.

Workaround fix: To fix this bug I added the following style

.PageNumberText
{
    white-space:nowrap !important;
}

You need to use !important to make sure it overrides any of Telerik's built in styles.

Hopefully, this minor issue is corrected in the future.
Stef
Telerik team
 answered on 10 Apr 2013
3 answers
129 views
my client has a suite of programs which support a semi-annual trade show
the show has an ordering component
the customers can order product before the show, then can order more at the show
there are reports for both customers and the booth personnel (sellers), which show activity both ordered online before the show and what was ordered at the show
if the customer attends the show and orders that order replaces the online (at each booth they visit)
since the requirement is to show all online activity as well as all show floor purchases the total at the bottom cannot be a sum of both, because of the overlap
anyway, the reports basically look like this

Show Activity
first store,booth,department, etc
next store,booth,department, etc
total show activity

Pre-show orders
first store,booth,department, etc
next store,booth,department, etc
total pre-show activity

any ideas on how to show sum show activity + all pre-show that has not been supplanted?
Stef
Telerik team
 answered on 10 Apr 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?