Telerik Forums
Reporting Forum
2 answers
363 views

Hello everybody,

I want to pass a dynamic DataSet which has been generated by
an outside code (request) to telerik's report.

Exemple

 
//Library Report DataSet 
 
DataSetReport{ 
column1, 
column2, 
column3, 
column4 
 
 
//OutSideCode 
 
request = "Select * from Telerik"
DataSet dataSetReport = request.Result().DataSet(); 
 
LibraryReportDataset libraryReport = new LibraryReportDataset (); 
 
//To this report, i want to associate my dataSetReport... 
 
libraryReport.AssociateDataSet(dataSetReport); 


and after, the result is going to be a report with the dataSetReport's data...

I searched everywhere but i found nothing...

Can someone help me?

Thanks...
Daniel Botero Correa
Chris @ Intrinsic
Top achievements
Rank 1
 answered on 01 Jun 2011
1 answer
120 views
In my application, I have List of fields ,related binding fields,Width alignment etc configuration in On Table in DB.On Silverlight application UI user can select fields those he want to display in report(Not all which are exist in table).So I want to create Report's design and binding Dynamically.For that I need to pass List<T> to report which contains Field related configuration(width,Label,Binding Field,Width etc).If I can do that,I will be able to bind data with that table using dynamic Stored Procedure.But in Silverlight,I do not have reference of Report into Silverlight application,as it is in class library.I am not able to get that Report's Object.Please suggest me what to do in such case?
Peter
Telerik team
 answered on 01 Jun 2011
0 answers
137 views
How to hide Refresh button ?
Kanhaiya
Top achievements
Rank 1
 asked on 01 Jun 2011
0 answers
43 views
How to add a “Bookmarks” label above the report bookmark list?
Kanhaiya
Top achievements
Rank 1
 asked on 01 Jun 2011
1 answer
130 views
My developers are constructing a stacked bar chart, and have included a datatable to show the values of the stacked elements. The user has also asked to see the total value for each stacked bar. There are references to changing the label of the last series to show the total, using STSUM, but it appears this also changes the display in the datatable (so that the last series shows the total in the datatable as well).

Any suggestions on including BOTH the datatable and a stacked bar total, either in the datatable or as a label on the bar?

Alternatively is it possible to have a bar value which shows in the datatable but NOT in the chart?

TIA
Ves
Telerik team
 answered on 01 Jun 2011
3 answers
314 views

I need to create a report programicly.  if i have a text box and that will be filled with the Text "foobar" at Arial 10 bold.  how do i calculate the length.  Below is what i need to achieve.   is there a way to calculate the length to place in the code below without guessing..  

 

 

new

 

 

Telerik.Reporting.Drawing.Unit(0.800000011920929D, Telerik.Reporting.Drawing.UnitType.Inch)

 

Squall
Top achievements
Rank 1
 answered on 31 May 2011
8 answers
1.1K+ views

I just upgraded Telerik Reporting to Q3 2009 (version 3.2.9.1211), and now I receive an error whenever I try to open a report in design mode in Visual Studio 2008:

 

Type 'Telerik.Reporting.Drawing.Unit' does not have a constructor with parameters of types Double, UnitType.

 

Granted, I am new to Telerik Reporting, but the code hasn’t changed, and it still works fine with Telerik Reporting Q2 2009.  It looks to me like the new version still does have a constructor with that signature, and my reports do indeed compile and run just fine.  Unfortunately, I can’t open them to edit them.

 

This is the call stack it gives me:

 

at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.ComponentCodeDomSerializer.DeserializeInstance(IDesignerSerializationManager manager, Type type, Object[] parameters, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager manager, String name, CodeExpression expression)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializePropertyAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement, CodePropertyReferenceExpression propertyReferenceEx, Boolean reportError)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeAssignStatement(IDesignerSerializationManager manager, CodeAssignStatement statement)
at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager manager, CodeStatement statement)

 

I tried the "Ignore and Continue" option, but that just gives me another error.  Does anyone have any clue as to what I may have done wrong, or what I can do to correct this problem?  Thank you very much.

Shaun

richard
Top achievements
Rank 1
 answered on 31 May 2011
1 answer
60 views
Hi,

I have followed the online tutorial/video to create a report and embed it within my Silverlight project. This works fine when running under the Visual Studio Development Server and the report displays (Only displaying static text for now). As soon as I change it run on the local IIS server (IIS 7.5), the report simply displays "Object reference not set to an instance of an object." I am able to access the report service from the web browser and that is working fine.

If I then switch it back to the VSDS, it works again.

Any ideas?

Regards,
Drew
IvanDT
Telerik team
 answered on 31 May 2011
3 answers
93 views
I have an application where we would like to combine several individual reports into one master report.

I created all six of the sub-reports, and they each have specific report header sections which describe the content.

When embedding these reports, I need to suppress the display of the report header.

I am thinking I can either make that section invisible by default, and then change to visible when the report runs all by itself.

Or the opposite, making the header invisible when I detect that the report is contained inside a parent report.

Question #1: is there a way within the sub-port code to determine if there is a "parent"?

Question #2: is there a way to access the sub-report header setting (visibility) from within the code of the master report?

As an example, in another thread I learned how to set properties in the main report. I am lacking in the knowledge of how to dig deeper into the content of the subreports. In effect, "....some kind of cast....some report property.....find something or other inside subreport1..."

Dim report As Telerik.Reporting.Report = DirectCast(Me.ReportViewer1.Report, Telerik.Reporting.Report)
Dim txt As Telerik.Reporting.HtmlTextBox = TryCast(report.Items.Find("filter_description", True)(0), Telerik.Reporting.HtmlTextBox)
txt.Value = HttpContext.Current.Session("grid_title")
Peter
Telerik team
 answered on 31 May 2011
3 answers
233 views
I'm passing parameters as stated in: http://www.telerik.com/support/kb/reporting/report-viewers/programmatic-initialization-of-report-parameter-values-in-telerik-reporting-silverlight-viewer.aspx

public PrintReport()
        {
            InitializeComponent();
            this.ReportViewer1.RenderBegin += new Telerik.ReportViewer.Silverlight.RenderBeginEventHandler(ReportViewer1_RenderBegin);
        }
void ReportViewer1_RenderBegin(object sender, Telerik.ReportViewer.Silverlight.RenderBeginEventArgs args)
{
    args.ParameterValues["ObjectTypeId"] = 40;
    args.ParameterValues["Page"] = 1;
    args.ParameterValues["PageSize"] = 10;
}


And trying to grab them in the server this way, but I get only null values. which is the correct way to do this ?

public partial class ObjectInstancesReport : Telerik.Reporting.Report
{
public ObjectInstancesReport()
{
                        InitializeComponent();

var objectTypeId = this.ReportParameters["ObjectTypeId"].Value == null ? 40 : (int)this.ReportParameters["ObjectTypeId"].Value;
var searchText = (string)this.ReportParameters["SearchText"].Value;
var page = this.ReportParameters["Page"].Value == null ? 1 : (int)this.ReportParameters["Page"].Value;
var pageSize = this.ReportParameters["PageSize"].Value == null ? 20 : (int)this.ReportParameters["PageSize"].Value;
Ed
Top achievements
Rank 1
 answered on 31 May 2011
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?