Telerik Forums
Reporting Forum
1 answer
117 views
I'm finally tasked with removing all the references to Telerik.ReportViewer.WebForms.ReportViewer.ProgressText, in our markup, that you flagged as obsolete, so long ago.

My problem is that I've not figured out how to use the suggested replacement, Resources.ProcessingReportMessage, from markup. If I set myReportViewer.Resources.ProcessingReportMessage = "My message" in the code-behind, it works fine. But we'd been setting ProgressText in markup, and I'd really prefer to set ProcessingReportMessage in markup, as well. I've just not been able to make it work.

And I've not been able to find an example in the online documentation or the forums.

Any ideas?
Stef
Telerik team
 answered on 12 Jun 2013
9 answers
666 views
Hello all,

i am getting the above error when working with master pages. I have created separate project reports and when i try to display the report on report viewer which is on my User Control i am getting the following error.

Report is unavailable or session has expired.

Please, refresh the page.


the same when iam trying without Master Pages iam getting the result.

This is how i set Session in my webConfig
<sessionState mode="InProc" timeout="60">
        </sessionState>

please reply me regarding this as soon as possible.

Thanks.
Stef
Telerik team
 answered on 12 Jun 2013
1 answer
53 views
In the report items section i see text box html text box as well as other controls but no labels.  Does telerick just strickly used textboxes for everything?
Squall
Top achievements
Rank 1
 answered on 11 Jun 2013
3 answers
358 views
I have a sql server 2005 database with a table that stores images in a varbinary field.
These images have different dimensions, it could be 150x150 px or 1024x768 px.
Trying to print a text at the top and then the image below per each record.
Sometimes there are no pictures (null value).
Setting the  picturebox field SIZING property to "AutoSize" gives you a format like seen below, that allows to maximize the paper printout since if there is no image, it will not print as if it was leaving a placeholder (as it does with any other setting), see below and keep reading after where the problem is described.
 Page 1
____________________________

TEXT (rec# 1)
         ----------------------------------
         |   Picture (rec# 1)            |
         |                                         |
         ---------------------------------
TEXT (rec# 2)

TEXT (rec# 3)
          ---------------------------------
         |   Picture  (rec# 3)           |
         |                                         |
         |                                         |
         |                                         |

         |                                         |

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

 TEXT (rec# 4)
          ---------------------------------
         |   Picture   (rec# 4)         |
          ---------------------------------
(desired format, and partially achieved with Sizing prop set to "AutoSize", the layout repeats along pages depending on the picture size, as long as the width fits in one page, otherwise it will print the remnant of the image in a 2nd page alone)


Now, when the image goes beyond the size that can fit in the width or height of he page, you would get an additional page for whatever did not fit in the original area for the image.
What the "Autosize" is lacking is the ability to automatically resize, but up to a certain point so it does not span to a second page to print what did not fit in the original place but rather fits to the maximum dimension that can be fit in one page.

Page 1
 ____________________________

 TEXT Record 1
          ---------------------------------
         |   Picture Record 1          |
         |                                         |
          ---------------------------------
 TEXT Record 2
          ---------------------------------
         |   Picture Record 2          |
          ---------------------------------
 ____________________________
Page 2
         ----------------
         |  Picture    |    (this is what did not fit width in the previous page for this record
         |  Record 1 |
         ----------------
 ____________________________
Page 3
TEXT Record 2
         ----------------------------------
         |   Picture  record 2          |
         |   Picture  record 2          |
         |   Picture  record 2          |

         |   Picture  record 2          |

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

 TEXT Record 3
         ----------------------------------
         |   Picture  record 3          |
         |   Picture  record 3          |
         |   Picture  record 3          |

         |   Picture  record 3          |

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

 TEXT Record 4
 TEXT Record 5
         -------------------------------
         |   Picture  record 5      |
         |   Picture  record 5      |
         |   Picture  record 5      |

         |   Picture  record 5      |

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


Extremely annoying because you have to end up using a fixed area that is left empty blank when the record does not have an image associated, thus wasting a lot of paper and providing an odd layout.

any plans to resolve this?
Stef
Telerik team
 answered on 11 Jun 2013
1 answer
91 views
I have inherited a database where all data is retrieved using Select stored procedures. These have been mapped to functions in a linq to sql model, but when linking up to a Report I don't get any data back. 

I tried to follow the example given in this thread, using an objectdatasource but it still will not work: 
http://www.telerik.com/community/forums/reporting/telerik-reporting/linq-in-an-object-data-source.aspx

The code in my business logic class is:

 

public class BLL
    {
        public static IEnumerable<spGetPackages> GetPackages()
        {
            TardisDataContext context = new TardisDataContext();
            ISingleResult<spGetPackagesResult> result = context.spGetPackages();
            List<spGetPackagesResult> returnlist = result.ToList();
            return returnlist;
        }
    }



In my Report.Designer.cs class I have the following:

//
            // objectDataSource1
            //
            this.objectDataSource1.DataMember = "GetPackages";
            this.objectDataSource1.DataSource = typeof(BLL);
            this.objectDataSource1.Name = "objectDataSource1";


I know the function is working fine as I can retrieve data through a GridView. I think I read a comment somewhere that this method might not work with stored procedures? Where am I going wrong?

Peter
Telerik team
 answered on 11 Jun 2013
2 answers
135 views
I would like to create a pie chart just like the one here: http://demos.telerik.com/reporting/product-line-sales/demo.aspx
However, disappointingly, the video tutorial decided to skip the pie chart.

I want to display a pie chart with ProductName listed on the series, while Quantity is displayed on the chart. I am using a sqldatasource.

This is a sample of my data:

===============================
ProductName                      Quantity
===============================
Crips                                     12
Coke                                      7
Candy Bar                              57

I've got so far as displaying the chart and listing ProductName on legend. However, instead of having the Quantity displayed on the chart like in the demo sample above, the ProductName was displayed instead.

This is the code for my chart:

this.chart3.BitmapResolution = 96F;
this.chart3.ChartTitle.Appearance.Visible = false;
this.chart3.ChartTitle.Visible = false;
this.chart3.DataSource = this.sqlDataSource1;
this.chart3.DefaultType = Telerik.Reporting.Charting.ChartSeriesType.Pie;
this.chart3.ImageFormat = System.Drawing.Imaging.ImageFormat.Emf;
this.chart3.IntelligentLabelsEnabled = true;
this.chart3.Legend.Appearance.Border.Visible = false;
this.chart3.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(0.1000000610947609D), Telerik.Reporting.Drawing.Unit.Inch(0.20000012218952179D));
this.chart3.Name = "chart3";
this.chart3.PlotArea.XAxis.MinValue = 1D;
chartSeries1.Appearance.LegendDisplayMode = Telerik.Reporting.Charting.ChartSeriesLegendDisplayMode.ItemLabels;
chartSeries1.DataLabelsColumn = "ProductName";
chartSeries1.DataYColumn = "Quantity";
chartSeries1.Name = "Series 1";
chartSeries1.Type = Telerik.Reporting.Charting.ChartSeriesType.Pie;
this.chart3.Series.AddRange(new Telerik.Reporting.Charting.ChartSeries[] {
chartSeries1});
this.chart3.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(5.0000004768371582D), Telerik.Reporting.Drawing.Unit.Inch(2.8999998569488525D));


Can anyone tell me how to produce the pie chart like the one in the demo sample?

I refuse to believe that I'll have to data bind the chart to generic object list as mentioned by the last reply in this thread (http://www.telerik.com/community/forums/reporting/telerik-reporting/pie-chart-with-value-displayed.aspx) just to achieve this simple functionality.

Thanks.
Iris
Top achievements
Rank 1
 answered on 11 Jun 2013
1 answer
96 views
Hello,

I need to create a graph similar to the picture attached. I have tried for several hours to do so with no luck. I need to create this in a Visual Studio. I can lay the data out any way necessary.

This seems like it should be simple so I am hoping I am just missing something obvious.

This is a somewhat urgent need so any elp is really appreciated.

Thanks,
John S.
Stef
Telerik team
 answered on 10 Jun 2013
1 answer
120 views
Hi,
I am using Report Viewer and Export option to PDF only.

what size i should set for Report Viewer to make a single page from Report into single page in PDF.

I want to have a page from Report in a page in PDF.

Help me to resolve this.

Thanks in advance.


Regards,
AGMRAJA
Ivan Hristov
Telerik team
 answered on 10 Jun 2013
1 answer
2.3K+ views

Whats wrong with this expression, logically i can print any default variable if a field comes as Null. 
= IsNull(Fields.ROE_wo_Reserves, Fields.Flat_Line_Rent) 

I am getting blank value as output everytime. 
Squall
Top achievements
Rank 1
 answered on 10 Jun 2013
1 answer
328 views
Hi,

When we tried to create a grouped bar chart against two different region (WEST, EAST) across defined months (01-Jan to 01-Jun), Grouped Bar chart is rendered correctly including X axis labels center aligned - Please refer the attached image - All_Data_Bar.png.

But we encountered the X axis label alignment problem (it's not in center against the bar) only if some of the months data is not available for one particular region (EAST) - Please refer the attached image - Grouped_Bar_Label_Center_Issue.png . Our customer is expecting that X axis label against the bar should be center aligned always.

Sometimes based on the data, we are getting the empty space between the bars against the group.- Please refer the attached image- Grouped_Bar_Space_Issue.png

Please advise how to resolve this issue? If you can provide code sample to acheive the desired result would be grateful.

Thanks
Sankar
IvanY
Telerik team
 answered on 07 Jun 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?