Web Report not updating

ASP.NET

ASP.NET AJAX & iPhone Controls

Web Report not updating

  • rated by 0 users
  • This post has 1 Reply |
  • 0 Followers
  • C1WebReport v2.5.20073.258 

    I have been using the article 1534 as the basis for my report

    http://helpcentral.componentone.com/PrintableView.aspx?ID=1534

    1,however I run this query get 19 results back, however when i click on the next button It says there are 0 rows returned. Should this work

    2, When I select various options and call the SP (returning a smaller subset of the data) the report is not updated.

     I have tried a mixture setting things to nothing and databinding all of which do not appear to solve the problem

     my code is

    Dim c1 As New C1Report

    Dim reportpath As String

    Dim dt As DataTable

    reportpath = "path hidden"

    c1.Load(reportpath, "Report1")

    c1.DataSource.Recordset = Nothing

    ' i get the data table with my search options

    dt = JobsHelperSP.GetJobsSummary(UserId, CompanyID)

    c1.DataSource.Recordset = dt

    C1WebReport.Report = c1

    C1WebReport.visible = True

     

    I also tried to use this 

    Private Sub C1WebReport1_InitializeParametersDialog(ByVal sender As Object, ByVal e As C1.Win.C1Report.DialogEventArgs) Handles C1WebReport1.InitializeParametersDialog

     

    Dim p As ReportParameterCollection = e.Parameters
    p("userid").Value = 4
    p("companyId").Value = 1
    e.ShowDialog =
    False

    end sub

     

    But this event is only fired on page load and i need it to fire  ?

     

    Anyone got any ideas to help me.. Its driving me mad !!

     

    many thanks

    Andrew

  • Hi,

    I think you are missing a small thing here:

    Please use

    C1WebReport1.Report = c1 '------- Name of your C1WebReportObject
    C1WebReport1.visible = True

    Instead of

    C1WebReport.Report = c1
    C1WebReport.visible = True

    Hope this helps.

    Regards,
    Patrick


    wrote in message news:213299@10.0.1.98...
    C1WebReport v2.5.20073.258
    I have been using the article 1534 as the basis for my report
    http://helpcentral.componentone.com/PrintableView.aspx?ID=1534
    1,however I run this query get 19 results back, however when i click on the
    next button It says there are 0 rows returned. Should this work
    2, When I select various options and call the SP (returning a smaller subset
    of the data) the report is not updated.
    I have tried a mixture setting things to nothing and databinding all of
    which do not appear to solve the problem
    my code is
    Dim c1 As New C1Report
    Dim reportpath As String
    Dim dt As DataTable
    reportpath = "path hidden"
    c1.Load(reportpath, "Report1")
    c1.DataSource.Recordset = Nothing
    ' i get the data table with my search options
    dt = JobsHelperSP.GetJobsSummary(UserId, CompanyID)
    c1.DataSource.Recordset = dt
    C1WebReport.Report = c1
    C1WebReport.visible = True

    I also tried to use this
    Private Sub C1WebReport1_InitializeParametersDialog(ByVal sender As Object,
    ByVal e As C1.Win.C1Report.DialogEventArgs) Handles
    C1WebReport1.InitializeParametersDialog

    Dim p As ReportParameterCollection = e.Parameters
    p("userid").Value = 4
    p("companyId").Value = 1
    e.ShowDialog = False
    end sub

    But this event is only fired on page load and i need it to fire ?

    Anyone got any ideas to help me.. Its driving me mad !!

    many thanks
    Andrew



    http://helpcentral.componentone.com/cs/forums/p/77879/213299.aspx#213299
Page 1 of 1 (2 items)