Telerik Forums
Reporting Forum
3 answers
159 views
Hello,

We have a need to inherit our reports from an abstract base class, and when we do we can not access the designer.  An error comes up saying "The designer must create an instance of type 'reportbasename' but it cannot because the type is declared as abstract. "  I changed the base type to a normal class and recieved the following error: "The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file: reportname --- The base class 'reportbasename' could not be loaded. Ensure the assembly has been referenced and that all projects have been built. "

Any help or guidelines to follow for this issue would be greatly appreciated, Thanks in advance.

-Lars Solberg
Steve
Telerik team
 answered on 09 Oct 2009
0 answers
61 views
Please, i need to  Display Report with a crosstab with alternating style rows, How can I do????
Silvia
SIlvia
Top achievements
Rank 1
 asked on 09 Oct 2009
2 answers
93 views
Hi
 
I have a report with the databinding at runtime.
 
This code displays a blank report even on hitting the report refresh icon.
 
Public Sub New()
InitializeComponent()
Dim fs As New CPSMDAL.JobPlan
Dim fsDT As DataTable = fs.JobPlanReport(JobPlan_ID)
Me.DataSource = fsDT
End Sub
 
However this still displays a blank report, but on hitting the refresh icon it does display the full report.

 

Public Sub New()
InitializeComponent()
End Sub

 

 


Private
Sub JobPlan_Frontsheet_NeedDataSource(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.NeedDataSource
Dim fs As New CPSMDAL.JobPlan
Dim fsDT As DataTable = fs.JobPlanReport(JobPlan_ID)
Me.DataSource = fsDT
End Sub

 

If I debug the code, the recordset has 15 members, why isn't it binding.
Andy Green
Top achievements
Rank 1
 answered on 09 Oct 2009
0 answers
45 views
The same thing with Cancel button when you decided cancel printing.  Is this a bug or feature?
Sergei Rassk
Top achievements
Rank 1
 asked on 09 Oct 2009
3 answers
293 views
Hey all,

I've managed to get this far, and could just use a nudge in the right direction if possible:

I wanted to select values from my database, have my business object return them in a collection (generic) and then create parameters in a dropdownlist at the top of the report, so a user can select an item at the top. Subsequently, this item would go out to a stored procedure, that would get different results on the page (i'm actually using a graph on the chart/report)

List

 

<string> campaignTypes = ReportGenerator.GetCampaignTypes(parameters/metadata goes here..);

 

 

 int i = 0;

 

 

foreach (string campaignType in campaignTypes)

 

{

 

  ReportParameter rp = new ReportParameter(campaignType, ReportParameterType.String, campaignType);

 

 

  this.ReportParameters.Add(rp);

 

 

  this.Report.ReportParameters[i].UI.Text = campaignType;

 

 

  this.Report.ReportParameters[i].UI.Visible = true;

 

   i = i + 1;

}

So the area in green..this goes ahead and adds 3 parameters (i had 3 items in the list), but the problem is they are all new parameters in textboxes! I wanted to have 3 in one report parameter collection, as a dropdownlist.

I understand there is a reportparametercollection, but I did not see a way to add it to the report. Only to create it and add report items to it. This code is in the constructor of my report, by the way. Any suggestions on how to get the dropdownlist to appear, and have it's datasource as the generic?

Thanks so much!

Steve
Telerik team
 answered on 08 Oct 2009
1 answer
359 views
Hello,

I am putting together report using the table control. I have been trying to find a way to merge cells but it seems impossible at this point.
Please confirm.

Since I was not able to find a way top merge cells in order to put together the correct columns titles that span across multiple cells I've placed text boxes above the table and aligned the boxes to the exact lines of the cells.
However, when rendered in HTML the text boxes are no longer aligned.

Can you please advise how I can address such an issue. Screen shots attached.

Thank you,
G
Steve
Telerik team
 answered on 08 Oct 2009
4 answers
145 views
Hi

I have a requirement for many reports which are fixed in their length for each page. i.e. the detail section takes up the whole page.

Some of these reports are more than one page.

How do I in the detail section force a page break at a specific point ?

I do no twant to use the Before/After and Before and After feature already in the properties. I need to force a page break in the middle of the detail section.

Kind Regards

David
Solomon Mathai
Top achievements
Rank 1
 answered on 07 Oct 2009
5 answers
310 views
I have a report that has a group section. In that group section I have a textbox called BranchPoints that is an expression to get the points for each branch Here is the expression(=IIf(Sum(Fields.points) > 2500, 2500, Sum(Fields.points) )). In my header section, i need a textbox that will have an expression that needs the sum of the branch points. I cant have a total sum of the report. Is there a way in the header expression that I can call the textbox (branchpoints). So this is what I am looking for in the header textbox

=Sum(BranchPoints)

Is this possible? In crystal you can create a field and use it anywhere else in the report. Can Telerik do this?
I am doing this all through the report interface. I am not doing it programmatically.
John Braga
Top achievements
Rank 1
 answered on 07 Oct 2009
1 answer
90 views
Two questions:
1. RADGRID 2006 : How do you maintain the viewstate of the radgrid across postbacks. How do you access the viewstate values of filter and sorted fields. In addition I have added a checkbox item in the grid and how do I retrieve the checkbox checked values across the postbacks from the viewstate. Isn't the viewstate by default holds the values and you can access them across the postbacks? Or is it explicitly you have to store them in a variable and retrieve back. I am looking for programmatically retrieving the fileter, paging and sorted fields in the code. Is there a difference between the RADGRID 2006 and 2009 versions for the purpose.

2. How do you pass on the viewstate information of the radgrid to the telerik reporting (2009). For example I am storing the sorted and filtered fields in session variable and passing it to the report viewer which doesn't seem to work correctly. Of course I need even to pass the parameters. I could get the report but messes up with sorting order. A sample code transferring viewstate information from radgrid to telerik reporting would be helpful.
Yavor
Telerik team
 answered on 07 Oct 2009
1 answer
82 views
Hi,
  I'm using telerik reports as one of the module in my project which is very huge and it has hundreds of css classes.
I'm using telerik report viewer in my ascx page which is  a content place holder of a master page. When i run my project the Page Number box of my report viewer is not displaying properly. I don't know which property of my css class is affecting the property of the page number box of my report viewer. I'm not able to trace it in my css file as it has thousands of lines. Can you help me in finding out which possible poperty of a css could affect the Page number box of the report viewer? Please help me ASAP.
Thanks....


Steve
Telerik team
 answered on 06 Oct 2009
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?