SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Custom Assembly Referencing a Report


Custom Assembly Referencing a Report

Author
Message
Tim Foster
Tim Foster
Valued Member
Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)

Group: General Forum Members
Points: 52 Visits: 114
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?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search