Telerik Forums
Reporting Forum
2 answers
554 views
Hi,

the samples and posts in the forum are not very clear about that:

Say I have a List<MyDataObject> as Datasource, and MyDataObject has three Properties: double Value1, double Value2 and bool NeedsReformatting. On the Report I have in the detail area two textboxes, one for Value1 and one for Value2.

If NeedsReformatting is false, the Textboxes should display the values, if it is true they should display a dash "-".

I tried this with the Item DataBound event, but using the Processing classes the value is not changed and using the Reporting classes I cannot access the original value of the Data object bound to the current row.

Can you post a simple sample showing how to change the senders (Textbox) text regarding to a certain value of the databound object?

Thanks in advance
Steve
Telerik team
 answered on 28 May 2008
7 answers
177 views
We upgraded an older project from 1.5 to the latest release.  The new changes are exactly what we needed, thanks.  Specifically, the zoom in the designer and the warning for box overlap.  Great work.

One thing we have not been able to resolve is the page numbering.  In the reportviewer a 2 page report shows the first page as "Page 1 of 0", the tool bar show 1 of 2.  The second page shows correctly as 2 of 2 in both the toolbar and reportviewer.  The PDF export properly shows page 1 of 2 and 2 of 2 when exported. Code behind is simply
txtPageCount.Value = "='Page ' + PageNumber + ' of ' + PageCount"

Is there a new method by any chance?  We did not experience this in 1.5 that I can remember.
Steve
Telerik team
 answered on 27 May 2008
1 answer
100 views
Hi all,

The button groups (navigation buttons, print buttons and refresh buttons) appear twice in my ReportViewer. One of the buttons appear as disabled, the other one is enabled. ReportViewer is placed in a UserControl.
Any solution for this problem?

Thanks.
Chavdar
Telerik team
 answered on 27 May 2008
1 answer
57 views
   Dim telerik2 As ChartSeries()
  I want to assign the chart series type inside a if loop
     IF something>10 Then
here i want to give chart series type
     END  IF
Radchart1.Series,.Add(telerik2)
Steve
Telerik team
 answered on 26 May 2008
1 answer
426 views
I'm using Telerik reporting, and I have to create a report with many sections that are configurable. So I've made a main report with subreports for each section. In my main report, I'd like to use the header, to set the title of each section. How do I set a textbox's value dynamically in the header of the main report, based on the subreport displayed on the current page?

I've seen in the expression editor that there's a Global Object ReportItem, is there example on how to use that ? Could that be used to get what I want ?

Thanks a lot.

Milen | Product Manager @DX
Telerik team
 answered on 26 May 2008
1 answer
154 views
It appears that the Web Report Viewer doesn't work too well when AJAX-ified.  Are there any plans to make the Report Viewer more AJAX-friendly?
Chavdar
Telerik team
 answered on 26 May 2008
3 answers
296 views
there are two problems I am heading with at moment

1. I have the following code in the report

Public Shared Function PrepareConatctRPT As DataTable  
 Dim ContactTbl As New DataTable  
 Dim aRow As DataRow = ContactTbl.NewRow  
 ContactTbl.Columns.Add("Buyer")  
 aRow.Item("Buyer") = true  
 ContactTbl.Rows.Add(aRow)  
End Function 
 
Private Sub ContactNormal_NeedDataSource(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles MyBase.NeedDataSource  
        Me.DataSource = PrepareConatctRPT  
End Sub 
 
Private Sub detail_ItemDataBound(ByVal sender As System.ObjectByVal e As System.EventArgs) Handles detail.ItemDataBound  
  Dim section As Processing.DetailSection = TryCast(sender, Processing.DetailSection)  
  Dim row As DataRowView = DirectCast(section.DataItem, DataRowView)  
  If CBool(row.Row("Buyer")) Then 
   'Do some code here  
  end if  
End Sub 

I have the following error message:

Column 'Buyer' does not belong to table MainTable.

if I have the same function setting datasource from other form, eg. aReport.datasouce=xxx
but not needdatasource (on demand)
it's functional

2. when I have printed using webarchive or word, the alignment is fine, however, when i print it to PDF, the alignment is slightly offset, do you have any idea what could cause it?

thanks and waiting for your reply :)

Steve
Telerik team
 answered on 23 May 2008
1 answer
65 views
Hi,

the new Report Designer is compatible with "old" Telerik Reporting 2.0 reports?

Thanks.
Svetoslav
Telerik team
 answered on 22 May 2008
2 answers
315 views
I am newbee to the Telerik reporting. I just downloaded and read through the best practices for architecting the solution. The best practice suggests me to organize the reports in to a class library and then use this library in the report viewing application. Instead i would like to organize the reports in a database. I was looking for a functionality where in I could save the report.cs file to an external file (for e.g XML based ) which, i could save in to the database and load from. I can even save the report.cs file in the database and create a lib at runtime. But wanted to know if a shortcut is available. Would appreciate help in this regard.
Ninaad
Top achievements
Rank 1
 answered on 22 May 2008
5 answers
156 views
I have installed a Trial version of Telerik Reporting Q1 2008 on my computer.
I created a page and placed a Telerik report viewer control.
All of the samples are working normaly except:
  • Product Catalog Report
  • Product Line Sales Report
which have a UI report parameter visible.
The program says:
A critical error has occurred.
Object reference not set to an instance of an object.

Then I created my own Report, added a parameter. It works fine until I set its UI property Visible = True.

Why is this happening?
Can you help me solve this problem?

Thank you very much and best regards.
Chavdar
Telerik team
 answered on 21 May 2008
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?