Problem with RegisterData on ASP.NET

edited November 2012 in FastReport .NET
Hi i'm trying Fast-Report on a simple ASP.NET project. I have designed a simple report that shows all records of a table from SQLServer. Everything runs ok. The problem comes when i try to load only one record of the table. I'm using this code:
    
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Me.WebReport1.ReportFile = "fast.frx"
        Me.WebReport1.Prepare()
    End Sub

    Protected Sub WebReport1_StartReport(sender As Object, e As EventArgs) Handles WebReport1.StartReport
        Dim r As FastReport.Report = WebReport1.Report
        Dim ds As New LotesDS
        Dim t As New LotesDSTableAdapters.LOTESTableAdapter
        t.FillByID(ds.LOTES, 1)
        r.RegisterData(ds, "LOTES")
    End Sub

But the report still shows all the records of the table. I've checked that the dataset has the record. Does the demo version allow this use? See the attached file to check the report table alias an tablename.

Thanks
fast.png 113.5K

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.