Telerik Forums
Reporting Forum
1 answer
68 views
Hello,

I have a generic page that has a ReportViewer control on it.  The Page_Load event collects some querystring parameters and uses them to open the appropriate report.  For example, here is some sample code:

Select Case intReportID
      Case 1
           rptViewer.Report = New MyReportingProject.Report1(param1, param2, param3)
      Case 2
           rptViewer.Report = New MyReportingProject.Report2(param1, param2, param3)
      Case 3
           rptViewer.Report = New MyReportingProject.Report3(param1, param2, param3)
End Select

My real application will eventually have well over 100 reports.  I'm looking for a way to parameterize this so that I don't need the Select Case statement at all.  For example, in my database I have a table that tracks the IDs and associated reports.  Is there a way for me to do something like this:

rptViewer.Report = New Report([strReportName])(parameters need to be passed to the New method of the report as well)

The parameters are always identical as well.

Thanks.

Steve

Peter
Telerik team
 answered on 25 Oct 2011
3 answers
113 views
Deleted Question:
Peter
Telerik team
 answered on 25 Oct 2011
1 answer
311 views
Hi,

I have deployed the telerik reporting project for dashboard in the Windows 2k8 server. Also  installed 'Telerik_Reporting_Q2_2011_v5_1_11_713_dev.msi'. When I run the dashboard reports it gives me the following error.

Just for your information, this all works in all my test servers.

Can someone help me how to resolve it please?

Thanks in advance.

Srilal
Steve
Telerik team
 answered on 25 Oct 2011
1 answer
179 views
Telerik Reporting (unlike other Telerik libraries) seems to write quite a lot of info to the output window when running an application...

*** ReportProcessor.Render STARTED ***
 
*** ReportProcessor.GetRenderer STARTED ***
*** ReportProcessor.GetRenderer DONE in 00:00:00.0000178 ***
 
 
*** ProcessReport #0 STARTED ***
 
*** Report Processing STARTED ***
*** Report Processing DONE in 00:00:00.5451143 ***
 
 
*** Measure Report (Horizontal) STARTED ***
*** Measure Report (Horizontal) DONE in 00:00:00.0225983 ***
 
 
*** Measure Report (Vertical) STARTED ***
*** Measure Report (Vertical) DONE in 00:00:00.0752775 ***
 
*** ProcessReport #0 DONE in 00:00:00.6693311 ***
 
 
*** RenderReport #0 STARTED ***
*** RenderReport #0 DONE in 00:00:04.3975884 ***
 
*** ReportProcessor.Render DONE in 00:00:05.0752669 ***

This makes reviewing the debug or trace output from my own application difficult...

Does anyone know how I can turn this off?

TIA

Squall
Top achievements
Rank 1
 answered on 25 Oct 2011
1 answer
258 views
Hi,

I have a report containing a crosstab, which works fine.  Because my data structure is defined, I know exactly how many rows and columns of data my crosstab will contain.

Now, in code I want to take the values from the crosstab and use them to set the sizes of some pre-defined shapes on the report.  How can I iterate through the cells in the crosstab to get hold of these values, and which event handler should I use (I am assuming crosstab1_ItemDataBound).

Alternatively (and this was my first idea) I could get the data values from the data source of the report itself, but I have not been able to work out how to get hold of this and cast it into a data object which I can iterate through.  Is it possible to do this kind of thing in the report's ItemDataBinding or ItemDataBound events, for example?

Thanks,

Michael
Peter
Telerik team
 answered on 24 Oct 2011
3 answers
152 views
Hi,

In my application i have a report that have a few choice where the user can change and chose what kind of report he want.

For example, my report show a list of people; the user can chose to see it with certain specific grouping or simply the complete list. The report show a dropdownlist where the choices are and a button to change the view of the report.

The thing is that my validation is calling only at loading. When i click on the refresh button it doesn't do anything. I tried to use the event proposed by the base event are only called with item databinding so it isn't rly helping my cause the refresh don't cause my page to postback so i can't refresh the datasource to get the validation.

I just want to know if there,s a way to get the refresh button event in the codebehind of the report so i can set my validation or is there an other way to use the refresh button.

Thx for your time!!

Guillaume
Steve
Telerik team
 answered on 24 Oct 2011
2 answers
294 views
This should be easy enough, but it has been killing me. I have done my homework, but have yet to find a solution.

See attachments for the report I am working on. I figured screen shots would be the best way to explain it.

Everything is working fine expect the Grand Total Sales Price. Although I am not happy with the way I get the Grand Total Number of Sacks (using for each statements), its all I know. If you know of a better way to do it, please let me know.

For Grand Total Sales I have tried a few different things but nothing has worked. I have tried =Sum(txtTotalSales.Value), =Sum(Sum(Fields.NumberOfSacks) * Fields.Ticket.TagPrice), and the for each statement in the codebehind.png.

BTW if it helps, the data types in the database are:
TagPrice: money
NumberOfSacks: float

Any feedback would be greatly appreciated! Thanks!
IvanDT
Telerik team
 answered on 24 Oct 2011
1 answer
132 views
using Silverlight.  And I'm brand new to telerik, been using CR.

We have printing on mobile printers where the paper size isn't fixed.   Now we have a section that prints out on the report that may or may not show up and I want to make sure there's no wasted paper.  Is there a way to change the custom Papersize of a report at the time of printing?
Peter
Telerik team
 answered on 24 Oct 2011
1 answer
833 views
I am trying to create a report that calls a stored procedure for its data source... this works fine with SQL Server, however when I tried this with Oracle i run into some problems.

From my understanding, Oracle stored procedures need to return a ref cursor in order to return the results of a SELECT statement. But when I use the Telerik report wizard to call the stored procedure, it doesn't show me the rows in my select as the output parameters. It only shows the ref cursor.

Can anyone provide a simple Oracle stored procedure and instructions on how to connect to it using the Telerik report wizard?

Greatly appreciate any help, thanks!
Peter
Telerik team
 answered on 24 Oct 2011
0 answers
141 views
Hi there
Usually everybody needs the word wrap functionality of the text boxes in a report (PDF in our case). But for my current project I need to disable multi line and word wrap and the text should be written until the end of the text box. Even if I set word wrap and multi line to the text box I can't see the last word if the word overlaps the end of the text box partially. Instead of writing to the end and then cut the text (perhaps in the middle of a letter), the whole word will be cut.

Does anyone have an idea how to solve this?

Kind regards
Roger
Roger Abderhalden
Top achievements
Rank 1
 asked on 23 Oct 2011
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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?