Hi. I am currently experimenting (newbie) with Telerik reports in VS 2008. I have programmatically bound a SQLAdapter object to a datasource of a Telerik report. The next question becomes how do I display the data on the report now. Do I need to somehow programmatically tap into the datasource and create the detail fields.? When I go to preview the report in the Report Design of Visual Studio iget an error that says "Exception has been thrown by target of invocation. Object reference not set to an instance of an object" . The end goal here is to display this in a web report viewer on an .aspx page but I am pretty sure i need to get the report itself working first. Any direction one could provide would be greatly appreciated. Below is my code to bind the report datasource just as a reference. The report currently does infact build. Any help would be greatly appreciated.
--Jason
--Jason
public Report1()
{
/// <summary>
/// Required for telerik Reporting designer support
/// </summary>
InitializeComponent();
SqlConnection connSomsys = new SqlConnection(ConfigurationManager.ConnectionStrings["connSomsys"].ConnectionString);
SqlCommand sqlSelectCommand1;
sqlSelectCommand1 =
new SqlCommand("sprocgetorders", connSomsys);
sqlSelectCommand1.CommandType =
CommandType.StoredProcedure;
SqlDataAdapter adap = new SqlDataAdapter(sqlSelectCommand1);
this.DataSource = adap;
//
// TODO: Add any constructor code after InitializeComponent call
//
}