Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 Report Services Embedded Code

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-08-17 : 08:06:17
Marlene writes "I am trying to create a embedded function within Report Sevices that will accept a dataset field value and based on the value, make an image visibility hidden or visible in the body of the report. I receive an error that the mathimage is not
declared. How do I reference an image in the body of the report from the embedded function.

Below is a sample of the embedded code.

Function VisibleYN(subject as string,passedyn as boolean) as double
if subject = "Math" and passedyn = true then
mathimage.visibility = visible
end if
if subject = "Science" and passedyn = true then
scienceimage.visibility = visible

end if

THe following expression is in the visibility property tab of the textbox that holds the subject. The textbox is within a list and based on the value of fields!subject.value I would like an image to be displayed in the body of the report.


code.visibleyn(fields!subject.value as string, passedyn as boolean)

Any help would be appreciated!"
   

- Advertisement -