When I export the PDF the custom code is not recognized

116 Views Asked by At

I have a written some custom code ( a simple function to maintain a sum) in SSRS Report properties (in report builder).

Everything works fine when I render the report in Report Viewer or export the report on an Excel or Word. But the custom code is not recognized when I render the report to PDF.

Can someone help me identify what is going on please?

This is the custom Code:

Public Dim gallons_total  As DECIMAL

    Public Function CalculateGallons ( gallons As Double) As Double

        gallons_total= gallons_total+ gallons

    Return gallons

End Function
0

There are 0 best solutions below