Running total on report summary band

stepsonstepson Rou
edited 6:22PM 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 6:22PM
    Hello,

    In the total's settings you indicate ">0" which is not valid expression. Should be probably "[RaportNir.Valoare] > 0".
  • stepsonstepson Rou
    edited 6:22PM
    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

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.