Telerik Forums
Reporting Forum
4 answers
456 views

Hi,

I've been playing around with Telerik Report for just a couple days (basically reading the documentation and watching some videos) and have some questions. They are probable really basic questions, but since I didn't find so far an answer for them in the documentation nor by searching in the forum, I post them here.

I am trying to set a telerik report without having any DataBase conexion, so I thought on using a List (e.g. List<MyClass>) as DataSource.

How should I do this?

Until now, I added the DataSource programmatically, but then how do I connect the properties of the list elements (of type MyClass) with table/list/... cells?

Should I better define somehow the list as a project dataSource? how can I do this?

Does my approach make sense?

As I said at the beginning, I know these are probably beginner's questions, but I'm blocked!

Thanks!

Marta


Steve
Telerik team
 answered on 02 Mar 2010
2 answers
158 views
Hi again,

One of the issues we are interested in is a end-user report designer. I just red in the post Known limitations of Telerik Reporting that "End-user report designer is available at the moment", but I didn't found any positive reference to it in the documentation neither in other posts. Am I missreading? Otherwise, where can I find information about it?

Thanks,
Marta

Ps. By searching in the forum, I early realised that many people ask for this question in the past, hence I would have liked to skip old messages and just read the recent ones, but I couldn't identify the post date in the search results. Maybe it would be a good idea to add this details to them?
Peter
Telerik team
 answered on 02 Mar 2010
17 answers
1.0K+ views
I have a report that returns over 30,000 rows. The SQL query takes about 5 seconds to run but the report never ends up finishing.

I get a System.OutofMemory exception after almost 5 minutes of the report running. The report is using the WebForms viewer. There is not a lot of formatting on this report.

My question is is there a way to use paging (e.g. get records 100 - 200 at a time) to populate the report "on demand"?  Is there a way to get around this limitation? What is the limitation on number of records for Telerik reports?
Iurii
Top achievements
Rank 1
 answered on 01 Mar 2010
2 answers
176 views
Hi,

I know there's alot of post about setting the height of the reportviewer in a page. But i'm still having a problem.

First thing all my report are showing in a radwindow with a radtoolbar on top of it.
I've set all the parent of my reportviewer with height 100%. But there's still an overflow at bottom of the window that is the exact same height of the toolbar container.

Here is my code

<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
        <div id="TitleSection">  
            <fortress:PopupWindowToolbar ID="PopupWindowToolbar1" runat="server"></fortress:PopupWindowToolbar> 
        </div> 
        <div id="PageSection">  
            <div id="ContentSection">  
                <div id="ContentSectionContainer">  
                    <asp:ContentPlaceHolder ID="ContentPlaceHolderPopup" runat="server" > 
                    </asp:ContentPlaceHolder> 
                </div> 
            </div> 
        </div> 
    </form> 
</body> 
and my css :
html, body, form  
{  
    height:100%;  
}  
html  
{  
overflow:hidden;  
}  
 
#TitleSection  
{  
    positionstatic;  
    top:0px;  
    width:100%;  
    text-alignleft;  
    vertical-alignmiddle;  
    background#b6cef1 url(Header/GradiantEntete.png) repeat-x scroll bottombottom left;  
}  
 
#ContentSection  
{     
    position:relative;  
    top:0px;  
    left:0px;  
    width:100%;  
    height:100%;  
}  
 
.FortressReportViewer  
{  
    position:absolute;  
    top:0px;  
    left:0px;  
    rightright:0px;  
    bottombottom:0px;  
    height:100% !important;  
    width:100% !important;  
      
}  
 

FortressReportViewer is the class i applied directly on my reportviewer.
I've also tried switching doctype but it doesn't change any thing saddly. My reportviewer is still going below my radwindow borders.

Thx for your help,
Guillaume
Marius
Top achievements
Rank 1
 answered on 01 Mar 2010
2 answers
107 views
Hi

I'm using item.DataObject to get at the data in a report:
the data comes from SQL Server
and the column is named OptiClear

Code as follows:
==============
Private Sub detail_ItemDataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles detail.ItemDataBound
Dim item As Processing.ReportItemBase = DirectCast(sender, Processing.ReportItemBase)
Me.Total_OptiClear += DirectCast(item.DataObject("OptiClear"), Decimal)
===============

If the case of OptiClear is changed to Opticlear
ie A small c

The report previews fine in my windows project
but falls over in the Web Report Viewer

NOT A MAJOR PROBLEM
but it means that you have to make absolutely sure that the case of your item
is the same as the source column....

Any comments appreciated....

Regards

Martin Hoey






Martin
Top achievements
Rank 1
 answered on 01 Mar 2010
1 answer
293 views
Hi

I have created my own WCF service which uses the ReportProcessor to render an Xps to be used in the WPF DocumentViewer control. It worked fine when using the ReportProcessor directly from the App. But at soon as I move it to a service it fails.

I have created unit test that proves that the ReportProcessor works fine.

I get the following exception:
Test method Dako.ReportingService.UnitTest.DakoReportServiceTest.TestRenderXpsWithServiceHost threw exception:  System.ServiceModel.FaultException: FixedDocument must contain at least one FixedPage..

And when I look at the Debug trace I see another error:
----------------------------------------------------------------------------------------------------------------------------------
...

*** Measure Report (Vertical) STARTED ***
*** Measure Report (Vertical) DONE in 00:00:00.0008545 ***

*** Measure Report (Vertical) STARTED ***
*** Measure Report (Vertical) DONE in 00:00:00.0010941 ***

*** Measure Report (Vertical) DONE in 00:00:00.0055121 ***

*** ProcessReport #0 DONE in 00:00:00.3215597 ***

*** RenderReport #0 STARTED ***

*** RENDER PAGES STARTED ***
*** RENDER PAGES DONE in 00:00:00.0028726 ***

An error has occured while rendering the report: System.InvalidOperationException: The calling thread must be STA, because many UI components require this.
   at System.Windows.Input.InputManager..ctor()
   at System.Windows.Input.InputManager.GetCurrentInputManagerImpl()
   at System.Windows.Input.InputManager.get_Current()
   at System.Windows.Input.KeyboardNavigation..ctor()
   at System.Windows.FrameworkElement.FrameworkServices..ctor()
   at System.Windows.FrameworkElement.EnsureFrameworkServices()
   at System.Windows.FrameworkElement..ctor()
   at System.Windows.Controls.Panel..ctor()
   at System.Windows.Controls.Canvas..ctor()
   at Telerik.Reporting.XamlRendering.CompositionXamlBase.NewPhysicalPage()
   at Telerik.Reporting.XamlRendering.CompositionXps.NewPhysicalPage()
   at Telerik.Reporting.ImageRendering.CompositionBase.NextUsableArea()
   at Telerik.Reporting.ImageRendering.CompositionBase.NextHorizontalPage()
   at Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(CompositionBase composition, RenderingElement renderingReport, Int32 startPage, Int32 endPage, Boolean render)
   at Telerik.Reporting.ImageRendering.ImageRendererBase.ProcessPages(Report report, CompositionBase composition, Int32 startPage, Int32 endPage, Boolean render)
   at Telerik.Reporting.ImageRendering.ImageRendererBase.RenderReport(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback)
*** RenderReport #0 DONE in 00:00:00.0068132 ***

*** ReportProcessor.Render DONE in 00:00:00.3291403 ***

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

I have another test that also calls the service which passes.

What am I doint wrong?

Best regards,
Michael
Michael Bendtsen
Top achievements
Rank 1
 answered on 01 Mar 2010
1 answer
237 views
When I export my report to Excel, how can I get the columns to 'Autofit'?
Peter
Telerik team
 answered on 26 Feb 2010
2 answers
335 views
In my report, I want to change the value of a textbox based on the value of the row data. I can't really use an expression because I may need to do a additional data lookup (depending on the data). Instead, I use the detail_ItemDataBound method to process the row data and change the text. At the same time (using the same method) I also change the visibility of another text box.

When I run the report, the visibility works fine, but the text is only changed on the row after the one being processed (the text for row n is displayed on row n+1). 

Is detail_ItemdataBound the right place to do this processing? Would detail_ItemDataBinding be better?

When do I use each one?

TIA.
Dave Hayward
Top achievements
Rank 1
 answered on 26 Feb 2010
4 answers
228 views
I have a master report that uses a single group. Within each group, I display a subreport with data for the group. When the report is displayed using the ReportViewer control on my web page, the first sub-report is empty, and the second sub-report contains the data for first group etc.

I step through the code in the debugger to be sure the correct data is being supplied for the group data, and it appears to be correct.

Are there any known problems with using grouping and sub-reports? Are there any other mistakes on my part that could cause this behaviour?

It's happeneing on two separate master/sub-report pairs, and it's very repeatable.

TIA.
Dave Hayward
Top achievements
Rank 1
 answered on 26 Feb 2010
0 answers
42 views
It is our pleasure to announce the immediate availability of the Q1 2010 BETA of Telerik Reporting. The downloads are now available in your account (or free trials) - look for the "Q1 2010 Beta Available" link under the Telerik Reporting section.

What's new:
  • Declarative data source engine with full design time support through wizards
  • Optimized and improved data manipulation performance (up to 300%)
  • Data source parameters
  • Calculated fields through expressions
  • Support for stored procedures and methods as report data sources
  • User defined aggregate functions
  • Visual Studio 2010 RC Support

Check the release notes.

We will expect your feedback through the the Beta Forum.
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 26 Feb 2010
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?