This is a migrated thread and some comments may be shown as answers.

Databinding

2 Answers 136 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 2
Joel asked on 20 Sep 2007, 06:11 PM
I am just trying out Reporting because I have a need to generate a PDF  that is "prettier" than the radgrid grids we usually use according to our customer.  This reporting tool is one option.

This is a web based app, and I can generate a report successfully.  Now I am trying to add a list of text boxes from a datasource.  I tried to use the listboundreport example but it is not working in my instance. (Example site works fine)

I have a function that I am using as a dataset and the .vb file looks like this:
  
Imports System.ComponentModel 
Imports System.Drawing 
Imports Telerik.Reporting 
Imports Telerik.Reporting.Drawing 
Imports SMSDAL 
Imports System.Data.SqlClient 
 
 
Public Class PricingReport 
    Inherits Report 
    Private objdo As New SMSDAL.DataObject 
 
    Public Sub New() 
        InitializeComponent() 
        Me.DataSource = GetMyData() 
    End Sub 
 
    Public Function GetMyData() As DataSet 
        Dim mysql As String 
        mysql = "Select * from users" 
        Return objdo.daGetDataSet(mysql) 
    End Function 
 
End Class 



I added a textbox to the report and set the value to "=User_Name" which is a valid field returned by the dataset.

I get an error of "Missing Opertator before _name operator"

Any suggestions?

-Joel

2 Answers, 1 is accepted

Sort by
0
Joel
Top achievements
Rank 2
answered on 20 Sep 2007, 06:54 PM
Also...  Are my assumptions correct that you cannot put RadGrids or other 3rd party objects in these reports?
0
Svetoslav
Telerik team
answered on 21 Sep 2007, 11:09 AM
Hello Joel,

This issue is already fixed in the new version of Telerik Reporting Q2 2007 that we released this week. Otherwise with the previous version you must wrap such names in brackets - [User_Name].

Regarding the RadGrid/3rd party object, the answer is that currently the report can contain only report items and cannot use/display any windows forms or Web controls.
 

Kind regards,
Svetoslav
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Joel
Top achievements
Rank 2
Answers by
Joel
Top achievements
Rank 2
Svetoslav
Telerik team
Share this question
or