Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Using custom code in SSRS PDF rendering

$
0
0

Hi,

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

Everything works fine when I render the report in Report Viewer, but the custom code is not recognized when I render the report to PDF.

What is wrong with my code?

There is no error reported. The custom code is just getting skipped when I render to PDF.

My custom code is as follows..

Public Shared Dim iCounter AS Integer = 1

Public Function IncrementCounter(SomeValue As Boolean) As Boolean

iCounter = iCounter + 1

Return SomeValue

End Function

Public Function GetCounter() As Integer

Return iCounter

End Function

and my call to the custom code is..

=code.GetCounter()


Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>