Telerik Forums
Reporting Forum
2 answers
146 views
We develop/distribute a web based application and want to add reporting capabilities. I am a little unclear about the Telerik reporting. Years ago we use Crystal Reports which allowed the customers to create report files that could be loaded into our application.

How is this done with Telerik reporting? If the customer has to use Visual Studio (does the Visual Studio plugin just generate .cs code?) how do they add this to our web application (a commerical product). Would my customers have to create a .dll (inside visual studio) for every new report they want to create?

Thanks!
Jay O'Brien
Top achievements
Rank 1
 answered on 19 Oct 2009
3 answers
755 views

I have a web page (page1) that calls another page including the ReportViewer control.  Page1 includes a button that when clicked redirects to the ReportViewer page.  The call redirection from Page1 to the ReportViewer page includes 2 parameters in the QueryString.  One parameter tells the ReportViewer which report to display from my report lib class.  The other parameter is an ID I want to use in the report codebehind when building the datasource (e.g. Where customerID = paramID).  I don't want to use the ID value as a filter.

The parameter, paramID, is already defined in the report designer with no Value.

In the ReportViewer, how do I set the report parameter, paramID, to the querystring value so that it will be used in the SQL query for the report's datasource?

In the ReportViewer page codebehind I'm trying the following but it doesnt' work:

 

 

Case "rptMyReport"    'this is the report name from the querystring

 

 

 

  Dim appId As String = Request.QueryString("appId")    'this is passed from the first web page (Page1)

 

 

  TryCast

 

(ReportViewer1.Report, wwnReports.rptMyReport).ReportParameters("paramAppId").Value = appId

 

 

  Me.ReportViewer1.Report = New wwnReports.rptMyReport

 

Steve
Telerik team
 answered on 19 Oct 2009
2 answers
172 views
hey guys,
 i've a little problem here, i created a method in a report (report x), takes 1 parameter to fill the dataset query with this parameter. this report x is used as subreport in another report (report y)....  so i call that method from report y in the textbox bound event with the value of the text box as the parameter like that:

Telerik.Reporting.Processing.TextBox textbox = sender as Telerik.Reporting.Processing.TextBox; 
string myParameter = textbox.Text; 
mysecondReport mysecondReport1 = new mysecondReport(); 
subReport1.ReportSource = mysecondReport1; 
((mysecondReport)subReport1.ReportSource).fill_DataSet(myParameter);  // where fill_DataSet is my method

and this is the code of my method (fill_DataSet) in report x:
public void fill_DataSet(string myParam) 
        { 
 mysecondReportTableAdapter adapter = new mysecondReportTableAdapter(); 
 myDataSet.mysecondReportDataTable table = adapter.GetDataBymyParameter(myParam); 
this.DataSource = table; 

i've breakbpoint all these and the value is passing correctly from the textbox bound event to the other report but the problem in the first time the subreport rendered where it show no data (as if the value didn't pass) , then this value(first textbox) that supposed to be for the subreport (first subreport) is taken instead by the second subreport rendered.
so my output is a subreports with incorrect data, and a missing first subreprot rendering.

hope someone get it and could help me with that.

P.S i can't use need datasource event as the report has its own dataset and i don't want to use parameters.


Fatima Mohey
Top achievements
Rank 1
 answered on 18 Oct 2009
1 answer
161 views
I am getting error:
Cannot apply indexing with [] to an expression of type 'System.Collections.Generic.IEnumerable<Telerik.Reporting.ReportParameter>
Any new workaround for this one?  Cheers.
Sergei Rassk
Top achievements
Rank 1
 answered on 17 Oct 2009
1 answer
244 views
Help...

I'm a newbie at Telerik reporting. I am having a hard time getting this down for my project.

I have a datatable with say 5 rows of data.

I am then binding that datatable to the table. When I do this, it creates a new page in the report for each row of data. I would like 5 rows of data in one page

etc...

Row 1 = 'FirstName' 'LastName'
Row 2 = 'FirstName2' 'LastName2'

However, what it's doing is putting Row 2 on another page. Any help?

Here is my code...

rpt.DataSource = datatable;

ReportViewer1.Report = rpt;

On actual report. I just have a table control and FirstName and LastName in 2 separate columns.

 

 

ReportViewer1.DataBind()

 

Scott Niskanen
Top achievements
Rank 1
 answered on 16 Oct 2009
1 answer
66 views
I have a report that has 3 report parameters.  These are cascading multi-selects, where each successive parameter depends on what was chosen in the previous parameters.

I am using a ReportViewer object on my page.

I do a select all on all 3 parameters and click Preview, everything is good.  Then go back to the 2nd parameter and drop it down, select only one value.  Immediately go over and click Preview without closing the 2nd drop down parameter.

In IE7 the report does not refresh properly.  I have to click Preview 2 times.  On the 2nd time if properly refreshes..  In Firefox 3.5.3 the changed data take affect on the first click of the Preview button.

To me IE7 does not function properly.

Any help would be appreciated.
Thanks
Mike Booth
Steve
Telerik team
 answered on 16 Oct 2009
8 answers
170 views
Hello,
I have a big problem that I can't solve. The quality of texts used in graphics is not good, since the characters used are not vector and so you can see all the dots. Is there anything I can do to make vector characters ?

Thanks,
Silvia Terzi
Steve
Telerik team
 answered on 16 Oct 2009
13 answers
135 views
I have a client who is running Mac OS X and Office 2004 (for Mac) and she cannot open the documents from your demo site.  Please inform.

 -- xavier
Kirill Bykov
Top achievements
Rank 1
 answered on 15 Oct 2009
2 answers
170 views
I have seen a code snippet in the tutorials but that doesn't really help in creating reports at run time.

I have a dataset which is being generated at run time.  The program does not know what data is going to be in the dataset at design time. However we need to generate reports during run time based on the data in the dataset. Obvoisly, I cannot design the report before hand and so need to design the report in the code. I have researched a little bit but doesn't seem to get the full code sample that can get this done.

Any leads to this end would be much appreciated. What I am looking for is a full sample webpage code for generating a report from a dataset.
Anil K
Top achievements
Rank 1
 answered on 15 Oct 2009
1 answer
100 views
I currently have 2 reports that are bound to a DataSet. The first report has 3 parameters and is the full report, or master report if you like.
It shows a list of Products, along with other details.

The second report has 4 parameters, 3 of which are the same as the first report. The last parameter is the product code.

Basically, I want to use some sort of link on the product in the first report that will then pass it's parameters, along with the product to the second report and display the results in the report viewer with an option of returning to the previous report.

Is this possible or is there something you can suggest that will perform something similar?
Steve
Telerik team
 answered on 15 Oct 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?