//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); |
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)
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
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")