Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Custom Assembly Referencing a Report Expand / Collapse
Author
Message
Posted Thursday, May 9, 2013 5:58 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, September 26, 2014 4:50 AM
Points: 24, Visits: 56
Another question, if somebody would be so kind.

I am taking my function from within a report and moving it to a custom assembly so that I can reference it from a number of different reports.

The function refers to a dataset within the report that the function is called from. I'm not concerned about the dataset not being present, as I'm developing the reports and so I know it will exist. My problem is that I don't know what reference to use in order to defined 'report'.

The function (as it was originally within a report) uses:
Report.Parameters!Localisations.Count()

When I create the function in my VB class in Visual Studio Express 2012 for Windows 8, and try to build the project, I get the error:
'Report' is not declared.

What assembly should I reference for 'Report' to be a recognised object?
Post #1451057
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse