donalexander
MIS
Hello,
I am using 2014 SSRS I created a custom code to get Grand Totals for a monthly trend report, when I generate the report in IE I get zeros Grand Total amounts on the report, but when I export the report to Excel the Grand Total is shown and is correct. Why is this happening? How can I show the Grand Total amount in IE.
Here is my Code:
Dim public nettotal1 as Double
Public Function Getvalue1 (ByVal subtotal AS Double) AS Double
Nettotal1 = nettotal1 + subtotal
return subtotal
End Function
Public Function Totalvalue1()
return nettotal1
End Function
Code to start summarizing on the row.
=code.Getvalue1(ReportItems!January.Value)
Code to get Grand Total Amount.
=code.Totalvalue1()
See below. Any tips will be appreciated. Thank you in advance
Example of report:
GL Account Account Description January February March
73415 Computer Expense $35,000 $2,416 $555
73420 Warehouse Expense $205 $456 $26
73450 Operation Expense $140 $654 $78
Grand Total $0 $0 $0
When the report is exported to Excel the Grand Total Shows
GL Account Account Description January February March
73415 Computer Expense $35,000 $2,416 $555
73420 Warehouse Expense $205 $456 $26
73450 Operation Expense $140 $654 $78
Grand Total $35,345 $3,526 $659
I am using 2014 SSRS I created a custom code to get Grand Totals for a monthly trend report, when I generate the report in IE I get zeros Grand Total amounts on the report, but when I export the report to Excel the Grand Total is shown and is correct. Why is this happening? How can I show the Grand Total amount in IE.
Here is my Code:
Dim public nettotal1 as Double
Public Function Getvalue1 (ByVal subtotal AS Double) AS Double
Nettotal1 = nettotal1 + subtotal
return subtotal
End Function
Public Function Totalvalue1()
return nettotal1
End Function
Code to start summarizing on the row.
=code.Getvalue1(ReportItems!January.Value)
Code to get Grand Total Amount.
=code.Totalvalue1()
See below. Any tips will be appreciated. Thank you in advance
Example of report:
GL Account Account Description January February March
73415 Computer Expense $35,000 $2,416 $555
73420 Warehouse Expense $205 $456 $26
73450 Operation Expense $140 $654 $78
Grand Total $0 $0 $0
When the report is exported to Excel the Grand Total Shows
GL Account Account Description January February March
73415 Computer Expense $35,000 $2,416 $555
73420 Warehouse Expense $205 $456 $26
73450 Operation Expense $140 $654 $78
Grand Total $35,345 $3,526 $659