Parameter Data Type and Image format
i have image embbed in header want display based on true or false. need know data type use image in parameter. background please read on.
i have created report parameter @image values 1 true 0 false. assigned visability of image. have set default value show. if parameter set false don't show. when run report it
the hidden experssion used in image returns data type not valid. have data type of image in parameter text. have tried types in list , not work of them. need know data type use image in parameter
hi greg,
in sql server reporting services, can use image control show image. image image control can come 3 ways: external, embedded , database. below syntax obtain image each source(value property of image control):
external: http://mysite.contoso.com/image.jpg
embedded: imagename (the name of image. image must imported report project, , deployed report server)
database: =fields!field.value (the value stored in binary data type)
however, in case, seems want show or hide image control based on parameter's value. if have misunderstood, please don't hesitate let me know.
to hide image control, can same way mentioned:
1. create report parameter boolean data type.
2. set "hidden" property of image control be: =iif(parameters!param.value = true, true, false)
if have more questions, please feel free ask.
thanks,
jin chen
jin chen - msft
SQL Server > SQL Server Reporting Services, Power View
Comments
Post a Comment