Telerik Forums
Reporting Forum
1 answer
176 views

I have three levels of classes to create a large number or reports.

 A. Base Class - Contains page header and footer information (company name, pages, etc)

 B. "Group Class" - Here I want to put Column headings text boxes and detail lines text boxes.

 C. "Data Class" - Here I want to put the code to pull the data and assign values to the column header text boxes and detail line text boxes in Class B above.

 

Question:  Lets say the header and detail box for column1 in my report is going to be Employee Number on my new report (of class C).  How, in class C code, can I assign literal constants to the header text box and a data table column to the first detail box?

 

I am trying to create a Class B where I have maybe 8-10 columns that I can always use the same layout while changing the data on the report in each instance of Class C.  I hope I made this clear enough, ugh.

 

 

 

 

Stef
Telerik team
 answered on 05 Jun 2015
5 answers
716 views
I have a report that has two subreports aligned side by side. I need to make both subreports have the same height, preferentially, that they occupy the complete detail, until pagefooter's start, so, even if there aren't enough items in the subreport, the lines must reach the footer.
The subreports have different tops, so I can't set the exact same height for both.
 
To guarantee that the subreport header is shown on every page, I've inserted a subreport inside the subreport. Furthermore, I've added a panel in the detail of the subreport that has the column's header and I've inserted the nested subreport inside this panel. The panel also contains a shape component of vertical line type, because, as I have said, I wanted to make the margins of the subreport and its columns to grow on every page until they reach the footer.
 
Attached there are two prints of the desired layout.

Is there a simple way of doing that?
Would you, please, send me a sample code of how this could be done?
 
Best regards.
Stef
Telerik team
 answered on 05 Jun 2015
1 answer
77 views

Hi,

 I'm trying to use the HTML5 Report View Widget with the Report Server in Eclipse.  

 Below is my configuration of the widget. When the page is run, it gets the client id, but fails on trying to get the parameters. I get the error: Unable to get report parameters:
Report 'ReportTemplate.trdx' cannot be resolved.

How should I specify the report source so that I can access it outside of the telerikreportserver application?

 I think my problem boils down to I need to use a report template from ReportServer for the report parameter in reportSource.  I have a template successfully loaded into the ReportServer that I can view, I just want to access it with the javascript in my Report Viewer widget.  Could it simply be a problem with the file path I'm using or are there more steps involved? 

serviceUrl: "http://localhost/telerikreportserver/api/reports/",

templateUrl: 'telerikReportViewerTemplate-9.0.15.324.html',
reportSource: {
}

Stef
Telerik team
 answered on 04 Jun 2015
3 answers
291 views

Hi,

 I'm trying to use the HTML5 Report View Widget outside of the Report Server Application.

Below is my configuration of the widget. When the page is run, it gets the client id, but fails on trying to get the parameters. I get the error: Unable to get report parameters:
Report 'ReportTemplate.trdx' cannot be resolved.

How should I specify the report source so that I can access it outside of the telerikreportserver application?

Thanks!

templateUrl: 'telerikReportViewerTemplate-9.0.15.324.html',
reportSource: {
   report: "ReportTemplate.trdx",
}

Stef
Telerik team
 answered on 04 Jun 2015
1 answer
84 views

Hi,

I using 8.2.14.1204 to create reports that displays data in pie charts. If there are lots of thin wedges, the labels over lap. see attached.

Is there anything I can set to prevent this?

 TIA 

 Matt

Stef
Telerik team
 answered on 04 Jun 2015
2 answers
157 views

Hi guys, 

I know this has been asked in different ways before but what I'm looking to do is dynamically assign a reports datasource at runtime. Within this report will be a subreport, generated for every record of the datasource.

So my example would be by having a absence report for employees. The parent report will be bound to a list of employee object, in which there will a list of absences of type absences. This list is what I want to bind to a sub report. (see code below)

I've been going through a couple of other similar question on here and trying to figure out the best way.  

What I have is a sub report with the bindings 

Property Path                        Expression

DataSource                            =ReportItem.Absences

I found the documentation a little unclear in what is the datasource is and what is the properties being displayed. So any and all help is greatly appreciated.

 

public Class Employee{
public string EmployeeName {get; set;}
public string EmployeeNumber {get; set;}
public List<Absence> Absences {get; set;}
}
 
public Class Absence{
public DateTime AbsenceDateFrom{get;set;}
public DateTime AbsenceDateTo{get;set;}
public string AbsenceReason{get;set;}
}

Will
Top achievements
Rank 1
 answered on 04 Jun 2015
4 answers
128 views

The documentation for reporting helps you to configure reports for MVC 4. Will someone give me instructions for setting up my MVC 5 project. I tried following the instruction for MVC 4 but am getting reference errors for assemblies that are not defined.

 

Thanks in advance.

Stef
Telerik team
 answered on 04 Jun 2015
4 answers
217 views

I have multiple reports which I have built that I accidentally removed the headers.  I would drag the table onto the report body, and fill in the detail section with fields.  I would then add a group above, add another group above, etc.  Finally, there was an open row at the top which was not needed so I deleted it.  I now realize that this was the header.

 I want my headers to repeat on each page of a report that spans more then one page.  But the 'RowHeadersPrintOnEveryPage' isn't functioning.  I think this may be because I had removed the table header row on accident.

Does anyone know how to fix this?  Can I set a property to make a certain row the header?  Do I have to completely re-build?

Any help is greatly appreciated.

Phil
Top achievements
Rank 1
 answered on 03 Jun 2015
9 answers
466 views
I'm using Telerik Reporting 7.0.13.220.

When I create an HtmlTextBox on a report and set the CanGrow property to true, it will output the following HTML/CSS in the web viewer:

.s6 {font-family:Segoe UI;font-size:11px;color:Black;word-wrap:normal;white-space:nowrap;padding-left:0px;padding-right:1px;padding-top:0px;padding-bottom:-2px}

<div title="" class="commsHtmlBox s6" style="position:absolute;overflow:hidden;left:634px;top:69px;width:363px;height:77px;">
  <div class="html-root" style="margin-top:0px;">
    <p class="s1">content</p>
  </div>
</div>

When the white-space attribute is set to "nowrap" longer lines in the HtmlTextBox are cut off and do not display properly.  When I remove the white-space attribute using Chrome's developer tools, the content displays correctly.  Since this CSS is coming from an .axd request and is generated from the web viewer's iframe, I cannot override this value.  Is there a workaround for this?

Stef
Telerik team
 answered on 02 Jun 2015
4 answers
351 views

Hello ,

While creating a report we are using Font style to create a smiley but it's not working for the first data. it's working for other data.

we are  using

  public static void SetGradeConfiguration(ref Telerik.Reporting.Processing.TextBox textBox,Organization organization)
        {
            textBox.Style.Font.Name = "Lean Symbol";

------------

to apply a font style. please reply ASAP. and please check attached image

Nasko
Telerik team
 answered on 02 Jun 2015
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?