Telerik Forums
Reporting Forum
1 answer
110 views
If I give my report a DataTable with no rows as a DataSource, the web ReportViewer simply displays nothing at all.  I would expect to see at least the report header, date, etc, maybe even labels, but with no detail rows.  Barring this, I would like a message that no data was found, but I can find no properties on the Report or on the ReportView to handle this.  Do I have to do it myself, and create a 'sister report', that looks the same, but has a message, and divert to that one if my DataTable is empty?
Steve
Telerik team
 answered on 26 Aug 2009
1 answer
93 views

I have a requirement to create reports which string together full details of items (accommodation in this case). Here is an example of the content: http://www.housingcare.org/downloads/facilities/generated-brochures/15763-oak-lodge-sutton-england.pdf
i.e. So a report would contain maybe 10 of these, so somethign similar to this http://demos.telerik.com/reporting/product-catalog/demo.aspx.
The one important factor is that the amount of content per item will vary considerably, making the height of each item variable.

Now the crucial point here is layout, and how many items fit per page. All items must neatly fit onto a page (i.e an item cannot overlap onto the next page, if it does a page break is needed). Sometimes a page can fit 3 items per page, sometimes only 1, it depends on the content (which is variable).

Can telerik reporting handle this kind of complexity and automatically create reports which do this not only for display but MOST IMPORTANTLY for printing (the client is obsessed with printing!!!!).

I have already done this bespokely but the client is obsessed with printing and I can no way of programming this kind of complexity in given the variable nature of the heights of each iterm.

Thanks

Steve
Telerik team
 answered on 26 Aug 2009
1 answer
148 views
Hi,

I am developing reports using version 2009 Q2 sp1 through the use of the web report viewer.
I would like to have all my reports that are exported to PDF to have the setting of "FontEmbedding" set to "None".
I know this can be done via the configuration as explained here: http://www.telerik.com/help/reporting/configuring-telerik-reporting.html
My problem is that I can't add this code to the web.config. It is a team decision not to add such code to the configuration files. 
The WinForms version of the ReportViewer has a export event that could probably be used. What about the web ReportViewer?
Is there a work around for this?

Naphtali

 
Steve
Telerik team
 answered on 26 Aug 2009
1 answer
47 views
Is it not possible to set the value of the EmptySeriesMessage?  This code:

chart1.PlotArea.EmptySeriesMessage =

"No data to display.";

 


results in the error:

Property or indexer 'Telerik.Reporting.Charting.ChartPlotArea.EmptySeriesMessage' cannot be assigned to -- it is read only.

Any way to do this?
Thanks.
Dan
Dan
Top achievements
Rank 2
 answered on 25 Aug 2009
1 answer
155 views
Hello,
I've inserted a pie chart inside my report and it does a sum of some percentage....with other reporting tool I was able to set at 0-cost the legend to match the seriesitem portion of the pie... here I'm not able to.. here's the code I use:

 private void chart1_NeedDataSource(object sender, EventArgs e) 
        { 
            Telerik.Reporting.Processing.Chart procChart = (Telerik.Reporting.Processing.Chart)sender; 
 
            List<AccountPositionDetail> accountPositionDetailList = GetAccountPositionDetailFromDataSet(this.DataSource as DataSet); 
            ChartSeries cs = new ChartSeries(); 
            cs.Type = ChartSeriesType.Pie; 
            var groupedAccountPosition = accountPositionDetailList.GroupBy(o1 => o1.ClassMifid); 
 
            chart1.Legend.Clear(); 
            foreach (IGrouping<int, AccountPositionDetail> igp in groupedAccountPosition) 
            { 
                ChartSeriesItem csi = new ChartSeriesItem(igp.Sum(o1 => o1.PercOnCTV)); 
 
               cs.Items.Add(csi); 
 
            } 
            chart1.Series.Add(cs); 
 
 
        } 

I've got only a legend Item called "Series XX"... in other chart type (BAR for example) I add different Series and it show...here not...any suggestion?

I've also found this enumerator, but I don't know where to set it : ChartSeriesLegendDisplayMode.ItemLabels;

Thanks
Schlurk
Top achievements
Rank 2
 answered on 25 Aug 2009
13 answers
1.0K+ views
I am passing a connection string from my web application to my report class library using this technique:

In the Report.cs file I created a second constructor that accepts a string variable as the connection string.  I left the default constructor alone so the report would continue to work during designtime with the default connection string.  This passed-in connection string is working perfectly for the main report, but I am having difficulty getting the sub report to use the connection string that I am passing in.

I have tried updating the connection string of the sub report during these two events (from with the Report.cs file):

NeedDataSource and ItemDataBinding -- neither of these two events seem to allow me to override the default connection string associated with the sub-report.  How can this be accomplished?
Svetoslav
Telerik team
 answered on 25 Aug 2009
3 answers
140 views
Hi all,

i am rigth now testing the telerik wpf suite incl. reporting.

I have to code an application which consists a lot of wpf-forms (mixed with grid and stackpanel layouts). Each for should be able to be printed (also the components like checkboxes etc.).
My firsts attempt were using the build in printvisual(...) function of the PrintDialog. It looks fine but:

  • only on screen visible items are printed (i use the scrollviewer) but everything has to be printed out
  • there are no automatically pagebreaks done
  • i don't wanna to implement extra reports for each wpf-window, because they are nearly the same

In order to solve this i want to use your telerik reports. I took a look in the examples but nothing found.

Do you have an idea how to easily solve this, without double implementing the contents in the window and report?
Better would be a simple example :-)

Thanks for your service

Markus
Nikolay
Telerik team
 answered on 24 Aug 2009
0 answers
85 views
Let me explain:

Consider this dataset returned:

                  Column1         ParentID       SUMFIELD
                        A                         1                10
                        B                         1                10
                        C                         1                10

                        X                          2                15
                        Y                          2                15

I group by ParentID  and wantto display records as follows:

ParentID      
1
2
-------------------
SUMFIELD(10 + 15)        // here is pageFooter of the record

since all SUMFILED fields are same for the records of the same parent id, i just wantto get only one of from each group and add it with other ones from other groups in the page footer. So how can i do that? When i say  SUM(Fields.SUMFIELD) at the page footer it adds 10 + 10 + 10 + 15 + 15.

Thanks in advance...
Kem Arda
Top achievements
Rank 1
 asked on 24 Aug 2009
1 answer
138 views
I using Win. XP (T. Chinese Ver.) & VS 2005 and VB programming.
I put Telerik ReportViewer Control (Reg. Version) from ToolBox to a blank Form (first use Telerik Reporting).
An erorr message is displayed:

Cannot Create 'ReportViewer'. Error Message :
'System.NullReferenceException: : Object reference not set to an instance of an object.
 at Telerik.ReportViewer.WinForms.WinViewer.UpdateScrollSize()
 at Telerik.ReportViewer.WinForms.WinViewer.OnSizeChanged(EventArgs eventArgs)
 at System.Windows.Forms.Control.UpdateBouns(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
 at System.Windows.Forms.Control.UpdateBouns(Int32 x, Int32 y, Int32 width, Int32 height)
 at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
 at System.Windows.Forms.Control.ScaleControl(SizeF factor, BoundsSpecified specified)
 at System.Windows.Forms.ScrollableControl.ScaleControl(SizeF factor, BoundsSpecified specified)
 at System.Windows.Forms.Control.ScaleControl(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
 at System.Windows.Forms.ContainerControl.Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
 at System.Windows.Forms.ContainerControl.PerformA...'

I try to download  trial version of Telerik Reporting (2009 Q2) for testing.
The result is same.

If I create ReportViewer By Code :  
    Dim rv1 As New Telerik.ReportViewer.WinForms.ReportViewer()
(Error message) =>  NullReferenceException was unhandled : Object reference not set to an instance of an object.

Please help !!
Thank you very much !!


Steve
Telerik team
 answered on 24 Aug 2009
1 answer
114 views
Hi!

I'm trying to convert a Crystal report to Telerik report but I'm having trouble figuring out what I should place in what sections of the new report, and could use some advice.

The report I'm trying to create is containing a purchase order.
In the header of the report are some customer information.
Under the customer information are order rows. If there are more rows that can fit on one paper, I want to customer information to show on the next page as well.

The people using the application wants to print all purchase orders that exists in the system.

So my questions are:
1) Shall I create one report containing all the purchase orders or shall I create a report per purchase order?
2) Since Telerik reporting only handle one data source, shall I flatten the data so each order row in my dataset contains the customer information?
3) What sections do I place what in ?

I'm thankfully for any advice you can give me cause right now I'm going in circles.

Regards,
Per
Hrisi
Telerik team
 answered on 21 Aug 2009
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?