Telerik Forums
Reporting Forum
1 answer
84 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
235 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
167 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
504 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
496 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
232 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
1 answer
151 views
Hi,

I am using the telerik report standalone version 7.0.13.220 

I have created a crosstab report with parameters and a filter on a unique number. My intent is to make the crosstab a subreport and filter by the unique identifier so the information will be displayed by particular identifer. However when i enter in my unique number into the textfield, it displays the entire cross table. Can you please assist me?
Hrisi
Telerik team
 answered on 18 Mar 2013
1 answer
87 views
I have the following ReportViewer at the bottom of one of my pages.  I wish for it to display in French for French users.
<div style="text-align: center; min-height: 300px; margin-top:5px;">
    <telerik:ReportViewer ID="ReportViewer" runat="server" Width="100%" Height="850"  />
</div>
      
Here's code-behind
If currentReport IsNot Nothing Then
 
    Dim instanceReportSource As New Telerik.Reporting.InstanceReportSource()
    instanceReportSource.ReportDocument = currentReport
 
    ReportViewer.ReportSource = instanceReportSource
 
End If

Here's my Report Code-Behind
public partial class RiskDashboard : Telerik.Reporting.Report
   {
public RiskDashboard()
       {
           // Required for telerik Reporting designer support
           //
 
           System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-CA");
           System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-CA");
           InitializeComponent();
 
           }
 
       }

Any ideas what i'm missing?



Hadib Ahmabi
Top achievements
Rank 1
 answered on 18 Mar 2013
5 answers
486 views
Environment Visual Studio 2012, Windows 7 Report Designer latest

I've created a couple of reports in Visual Studio in a project called CdssReportsNew and a folder called Reports
In report designer Open report... and navigate to the bin Debug directory
Select the the CdssReportsNew.dll and open 
Reporting Import Wizard appears but no reports to import

Test by creating new Report called Report1 in Visual Studio. Report1 shows up in the import wizard (although i think not immediately)

change the namespace for my reports from CdssReportsNew.Reports to CdssReports and move them to the root of the project directory

Still not able to find them in the Import wizard.

Any other suggestions?

Thanks,
Don Rule
http://translationalsoftware.com

One thing occurs to me and wondering if it is important. In the reports that I am having trouble with I have a number of references to a business object that look like this

            this.objectDataSource7.DataMember = "CaseInfos";
            this.objectDataSource7.DataSource = typeof(CdssReports.Models.PatientReportContext);
            this.objectDataSource7.Name = "objectDataSource7";

Would the designer ignore these reports if it didn't understand CdssReports.Models.PatientReportContext?



Don
Top achievements
Rank 1
 answered on 18 Mar 2013
2 answers
102 views
I have noticed that when I do a major change in telerik and click the undo button, it does not bring back the initial item i changed. It is changing any formatting issues but not the major changes.

For instance, I created a crosstab and added a column. The column did not fit the way I wanted to so I attempted to delete and in doing so deleted an entire section. I pressed the undo button to bring back the section, i just deleted and no luck.
Elian
Telerik team
 answered on 18 Mar 2013
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?