Subreports

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mike Hipp
    New Member
    • Aug 2011
    • 1

    Subreports

    I wondering if anyone knows of a quick way to put the 15.57 into the text box.
    The user data is an object. I have tried casting but thats not working.
    the 15.57 is a total from another sub-report. I have had no problem
    transferring data from the main report to sub-report, but from sub-report
    back to main or sub-report to sub-report, I have been stuck on for days.
    Not even sure if user data is the best way.
    On the main to sub-report, I have been using arrays and that works fine.
    I have the total in the object but what is the correct syntax to get it in
    txtEpense.txt field. Chek out below.


    Thanks
    Mike


    Below is the output I am getting now.

    5% EXPENSE System.Decimal[] (I want this to be 15.57)

    below is the line of code.


    txtExpense.Text = ParentReport.Us erData.ToString ();
    [0] 15.57
    [1] 0
    [2] 0
    [3] 0
Working...