Telerik Forums
Reporting Forum
1 answer
109 views
I have created 2 simple classes to represent an order and orderlines. I am now trying to create a report to display this data.

The data is presented via a viewmodel method
[DataObjectMethod(DataObjectMethodType.Select)]
        public ReportOrderDetail GetReportOrderDetail()
{.....

This returns the Order POCO with a property OrderLines.

In order to display this data, do I need to create a subreport against the orderlines?

If so, how do I connect this subreport to the OrderLines of the parent report?
Peter
Telerik team
 answered on 20 Mar 2013
1 answer
627 views
We have a license for telerik reporting.

I want to give some internal staff access to the stand alone designer.  Is there a separate install for this component or should it be installed via the complete Telerik Reporting install?  These other machines do not have Visual Studio installed.

Peter
Peter
Telerik team
 answered on 20 Mar 2013
0 answers
61 views
Hi

I am trying to make the reports centered when I print a generated report in XLS and in PDF.
I can make the report center aligned in PDF but if I do this adjustment I am getting page break in XLS.
Is there a way to make the report center aligned and not get a page break in XLS?

Thank you!
Charles
Top achievements
Rank 1
 asked on 20 Mar 2013
1 answer
100 views
Hello

I would like to ask if there is a way to render the reports inside a reportbook in parallel threads to improve the performance and at the end combine it to one single file (PDF).

Currently users can choose to "bind" more reports together and say they want 100 reports and each has to be printed in 8 copies that is already 800 separate reports to render and each of them takes about 0.5 seconds (excl. the time to fetch data from db) and we would like to improve on that.

Thanks in advance!
Elian
Telerik team
 answered on 19 Mar 2013
1 answer
90 views
Hello,

Im having an issue with a report, I have a sub report inserted, when I do preview, I have correctly 1 page with my sub report data correctly display in the good place of the report, but when I do print preview , my sub report data go to another page, like the data move out of the A4 pages , I checked my sub report settings and it is also set to A4 page and the size of sub report is smaller than the A4 width dimension.

I checked already the 2 pages :

http://www.telerik.com/help/reporting/designing-reports-design-considerations-report-layout.html
http://www.telerik.com/help/reporting/report-viewers-interactive-print-view.html

But I didn't find a solution of my pb.

Screnshot:

Main report

Subreport

Main Report Preview


Main Report Print Preview

Any Help or suggestion will be really apreciated

Regards.







Hadib Ahmabi
Top achievements
Rank 1
 answered on 19 Mar 2013
3 answers
248 views

Right now I have a working report with the data source set to a user object. However I would like to show this report multiple times inside one report with the datasource set to a dynamic collection of user objects.  What would be the best solution for this?

Thanks
Chris

Hrisi
Telerik team
 answered on 19 Mar 2013
3 answers
170 views

We need to set the group header and group footer as per the attached image.

We are having a 4 list objects (Q1 Sales Region,Q2 Sales Region...) inside the group section, there we are able to filter the records based on the group header information (EmployeeName) but not able to set the height of the group header section.If we specify the height as per the attached image and tried to generate report in PDF, the data is exported but with extra blank pages.

We tried with "tables,panels,Group header along with detail section" but nothing has worked out. Kindly please provide the solution as early as possible.

Regards
Sankar

Stef
Telerik team
 answered on 19 Mar 2013
5 answers
527 views
Hey,

We have upgraded the telerik reporting to Q1 2013 and since this update a table with dynamic columns has the wrong data. 

These columns are added programmaticly and when debuggen the columns are added to the tblOccupancy. When the view is rendered the table has the correct headers but all columns contain the value of the first column and not the value it should show. Before the upgrade this worked.

The attached image shows the result. The value marked in yellow should be a1, a2, ...

for (DateTime date = startDate.AddDays(-1); date <= endDate ; date = date.AddDays(1))
            {
                TableGroup tableGroupColumn = new TableGroup();
                tblOccupancy.ColumnGroups.Add(tableGroupColumn);
 
                tblOccupancy.Body.Columns.Add(new TableBodyColumn(Unit.Inch(0.01)));
 
                Telerik.Reporting.TextBox textBoxGroup = new Telerik.Reporting.TextBox();
                if (i == 1)
                {
                    textBoxGroup.Value = "Medewerker";
                    textBoxGroup.Size = new SizeU(Unit.Inch(2), Unit.Inch(0.3));
                }
                else
                {
                    textBoxGroup.Value = date.ToString("ddd dd-MM");
                    textBoxGroup.Size = new SizeU(Unit.Inch(0.7), Unit.Inch(0.3));                   
                }
 
                textBoxGroup.Style.BackgroundColor = Color.FromArgb(220, 231, 245);
                textBoxGroup.Style.Font.Bold = true;
                textBoxGroup.Style.VerticalAlign = VerticalAlign.Middle;
                textBoxGroup.Style.BorderColor.Default = Color.FromArgb(27, 149, 203);
                textBoxGroup.Style.BorderStyle.Default = BorderType.Solid;
                tableGroupColumn.ReportItem = textBoxGroup;
 
                Telerik.Reporting.TextBox textBoxTable = new Telerik.Reporting.TextBox();               
                if (i == 1)
                {
                    textBoxTable.Value = "=Fields.EmployeeName";
                }
                else
                {
                    textBoxTable.ItemDataBinding += new EventHandler(textBoxTable_ItemDataBinding);
                    if (date.DayOfWeek == DayOfWeek.Saturday || date.DayOfWeek == DayOfWeek.Sunday)
                    {
                        textBoxTable.Style.BackgroundColor = Color.FromArgb(255, 194, 194, 194);
                    }
                    textBoxTable.Name = i - 1 + "";
                    textBoxTable.Value = "a" + i;// "=Anton.Server.Reports.ReportGenerator.GetValueFromDictionaryById(Fields.ValueForDay," + (i - 1) + ")";
                }
 
                textBoxTable.Style.BorderColor.Default = Color.FromArgb(27, 149, 203);
                textBoxTable.Style.BorderStyle.Default = BorderType.Solid;
                textBoxTable.Style.BorderWidth.Default = new Unit(0.5, UnitType.Point);
                textBoxTable.Style.VerticalAlign = VerticalAlign.Middle;
                textBoxTable.Size = new SizeU(Unit.Inch(0.01), Unit.Inch(0.2));
                 
                tblOccupancy.Body.SetCellContent(0, i - 1, textBoxTable);
                tblOccupancy.Items.AddRange(new ReportItemBase[] { textBoxTable, textBoxGroup });
 
                i++;
            }

Sodi we
Elian
Telerik team
 answered on 19 Mar 2013
6 answers
521 views
We have a very strange issue. When a chart (contained in one of our reports) is passed more data (so there's more slices in the chart), it suddenly tries to write the image to the temp directory. The error we receive is this : 

An error has occurred while processing Chart 'chart2': Access to the path 'C:\Users\TEMP\AppData\Local\Temp\178d1d3be0014f17ad8416a62ce4b1ea' is denied.

If I go and give "Everyone" access to that folder it works successfully and I can see the image being saved in that directory. 

My hunch is that as we pass more data the image size increases and when it exceeds a certain size (e.g 100k) it stores it in the users temp folder. The other confusing thing to note is that I am also setting a file directory in web.config. I can see the reports getting saved to here. Why aren't the charts ? 

<Telerik.Reporting>
  <Cache provider="File">
    <Providers>
      <Provider name="File">
        <Parameters>
          <Parameter name="BasePath" value="C:\MyDataCache" />
        </Parameters>
      </Provider>
    </Providers>
  </Cache>
</Telerik.Reporting>
Chavdar
Telerik team
 answered on 19 Mar 2013
1 answer
243 views
Hello,
I have a problem in my report layout.
I have a subreport with a table, which receives a listing of items.

The problem is that when the list does not fit on the first page, the list of items in the table breaks across to the second page, leaving a blank space on the front page.
When the list is too big for the second page too, so al the table acts correctly filling out the first page and the next.

I read some posts and I think there is no solution, right?
If you can help me I appreciate it.

Sorry for my Google Inglês.

att Lucas
IvanY
Telerik team
 answered on 19 Mar 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?