Running total on report summary band

stepsonstepson Rou
edited 4:46PM in FastReport .NET
I generated a report with some rows
I'm trying to make a total on report summary (on an column)

I drag the "total" in report summary band , when i run the report it's shown
the name 'TotalValue' does not exist in the current context .

yes is not , because it's an expression on the a column

what i do wrong ?


i1.jpg 70.7K
i2.jpg 399.5K

Comments

  • edited 4:46PM
    Hello,

    In the total's settings you indicate ">0" which is not valid expression. Should be probably "[RaportNir.Valoare] > 0".
  • stepsonstepson Rou
    edited 4:46PM
    I remove the condition , it's empty now

    the same err message

    S
  • stepsonstepson Rou
    edited June 2012
    I change data source of the report ( it;s now base on a view ,initial was on application dataset )
    and now it make the sum .

    Now the code it's like this


    conn.Open()
    ds = cls.RaportNir(conn, Me.txtNirID.Text)
    conn.Close()
    conn.Dispose()
    conn = Nothing

    Me.rptNir.Load("\rptNir.frx")
    Me.rptNir.Dictionary.Report.RegisterData(ds.Tables("raportNir"), "ss_vw_raportNir")
    dbDataBand1 = rptNir.FindObject("Data1")
    dbDataBand1.DataSource = rptNir.GetDataSource("ss_vw_raportNir")
    Me.rptNir.Show()


    thnx for the time

    S

    i3.jpg 270.6K

Leave a Comment