Telerik Forums
Reporting Forum
1 answer
102 views
Dear Telerik Team ,

     I am creating a table dynamical from code behind not in design time where  the number of columns are dynamic and  i  have a requirement where i need  to display summary at end of each column how do i achieve this without using the design wizard.
Thank you.

Regards, 
 Kiran

  
Steve
Telerik team
 answered on 10 Dec 2012
1 answer
142 views
Is it possible to change report size according to paper settings in runtime? Docking and anchoring didn't make any effect.
Steve
Telerik team
 answered on 07 Dec 2012
1 answer
121 views
Hi,
I got a requirement here.
I have 3 parameters , one of them is  a multivalue parameter.
Based on the number of values in multivalued parameter , i need to create Panel in the report



how can i access the parameters in the designer which is passed by the report viewer ?





Thanks
Peter
Telerik team
 answered on 07 Dec 2012
1 answer
104 views
Hello,

I'm using a dynamic table to display a schedule on a report. The table is laid out with a header row and a single data row for the scheduled items. As soon as the text in one of the data row's cells is larger than can be displayed the complete row won't be rendered any more. The report contains only the header row and no second page.

Is there a property on the TextBox element that enables PageBreaks inside the Box itself or am I missing something else?

Kind regards
Markus

Here's the code I use to define the table, it's called from the report's constructor:

private void BuildTable(ScheduleInfo context) {
    //create empty table
    var scheduleTable = new Table {
        Location = new PointU(Unit.Cm(0), Unit.Cm(0)),
        Name = "ScheduleTable",
        RowHeadersPrintOnEveryPage = true,
        KeepTogether = false
    };
 
    //insert table in detail section
    Details.Items.AddRange(new ReportItemBase[] { scheduleTable });
 
    var rowGroup = new TableGroup();
 
    //add header row
    scheduleTable.Body.Rows.Add(new TableBodyRow(Unit.Cm(0.8)));
 
    //set page layout
    if (context.Columns.Count<5) {
        ToPortrait();
    }
    else {
        ToLandscape();
    }
 
    var columnWidth = Width/context.Columns.Count;
    var minWidth = Unit.Mm(30);
    if (columnWidth < minWidth) columnWidth = minWidth;
 
    var rowHeight = Unit.Mm(6);
    var i = 0;
 
    foreach (var column in context.Columns) {
        scheduleTable.Body.Columns.Add(new TableBodyColumn(columnWidth));
 
        var headerText = new TextBox {
            Value = column.Header,
            Size = new SizeU(columnWidth, rowHeight)
        };
 
        headerText.Style.Font.Bold = true;
 
        var cellInfo = column.Appointments != null
            ? string.Join("\n\n", column.Appointments.Select(x => x.ToString()))
            : null;
 
        var cellText = new TextBox {
            Value = cellInfo,
            Size = new SizeU(columnWidth, rowHeight),
            KeepTogether = false
        };
 
        scheduleTable.Body.SetCellContent(0, i, cellText);
 
        var colGroup = new TableGroup {ReportItem = headerText};
        colGroup.GroupKeepTogether = false;
        scheduleTable.ColumnGroups.Add(colGroup);
 
        scheduleTable.Items.AddRange(new ReportItemBase[] { headerText, cellText });
 
        i++;
    }
 
    rowGroup.Groupings.AddRange(new [] {new Grouping("")});
    rowGroup.Name = "DetailGroup";
    rowGroup.GroupKeepTogether = false;
    scheduleTable.RowGroups.Add(rowGroup);
 
    Details.Items.Add(scheduleTable);
}

Markus Wolff
Top achievements
Rank 1
 answered on 07 Dec 2012
10 answers
232 views
Hi ,

 As Export options(combo and export link) is disabled , we cannot export the report.

On the button click,  we are showing reports in report viewer.

kindly tell me the solution for this.


Thanks for the help



Eduardo
Top achievements
Rank 1
 answered on 06 Dec 2012
1 answer
182 views
I have just upgraded a reporting project that is several years old and I see that there have been some breaking changes in the reporting structure.  

I several sub reports inside of a report.  The datasource to each one is determined dynamically inside of the Ctor of the report itself.
How would I accomplish this within the new model?   Any help would be greatly appreciated. 


public ClaimsReport()
        {
            InitializeComponent();

            BindToSubReport(1, subReport_Sacramento);
            BindToSubReport(2, subReport_Modesto);
            BindToSubReport(3, subReport_Fresno);
        }

    public  void BindToSubReport(int officeID, SubReport subReport)
        {
            using (eEntities context = new eEntities ()) {

                List<StrapReportClaimOutput> outputList = context.StrapReportClaimOutputs
                                                 .Where(x => x.OfficeID.Equals(officeID))
                                                 .OrderByDescending(o => o.TotalDocketing)
                                                 .ToList();

               subReport.ReportSource.DataSource = outputList;
            }
        }
Steve
Telerik team
 answered on 06 Dec 2012
3 answers
129 views
Hi Telerik team ,

I've an .aspx webpage where i attach a report A to the reportviewer.
Report A contains a action(navigate to report) to Report B.

How can I check in my webpage if Drillthrough has been fired?

Regards

Steve
Telerik team
 answered on 06 Dec 2012
1 answer
71 views
Hey, 

I have 1 report where the layout is incorrect after a resfresh (By clicking the refresh button in the report). All other reports work fine.
See screenshots for more info.

Sodi we
Steve
Telerik team
 answered on 06 Dec 2012
3 answers
152 views
I am binding my chart data source to a List<ComplexType> from an ObjectDataSource project data source.  It is creating a separate report page for each member of the List data source

What configuration change do I need to make to get all of the List members to be displayed on a single report? 
Peter
Telerik team
 answered on 06 Dec 2012
1 answer
473 views
When trying to install I was getting this error message:
------------
Telerik Reporting Q3 2012 Setup

Error writing to file:
Telerik.ReportViewer.Wpf.Design.dll. Verify that you have access to that directory.
Retry/Cancel
------------

after hitting Retry:
------------
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2350.
OK
------------

On a whim I installed .NET 4.0 and tried again.  That worked.

I'm not sure why the error message was so cryptic.  I tried deleting and recopying the file twice.  I logged in as a different user.  Then I checked on .NET.

But I figured I'd post in case anyone runs into that problem.

Steve
Telerik team
 answered on 06 Dec 2012
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?