Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Display images stored on fileserver


Display images stored on fileserver

Author
Message
shathaway 77080
shathaway 77080
Grasshopper
Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)

Group: General Forum Members
Points: 19 Visits: 29
I have a view designed on a sql 2008 r2 database that has all the information to display that I need.

In this is the UNC path to an image I need to display. the image resides in a fileshare on another server on the same network.

I can't get the image control to display the image.

Any help is greatly appreciated.

I am using Report builder 3.0

I have tried

source = external

value = fields!photopath.value

value = "file:" + fields!photopath.value

The text in photopath.value is "\\fileserver\databases\saag\pictures\default.jpg"



Nothing seems to work.


This is the error I get when I try and run the report with the Image3.value = "File:" + fields!photopath.value




The Value expression for the image ‘Image3’ refers to the field ‘photopath’. Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the specified dataset scope. Letters in the names of fields must use the correct case.
----------------------------
The definition of the report 'Main Report' is invalid.
----------------------------
An error occurred during local report processing.


Help

Thank you in advance,
Jack Corbett
  Jack Corbett
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11034 Visits: 14858
It sounds like you are trying to use the image outside of a data region (Table, Matrix, List) which has a data set assigned to it. I assume this is a single image and not a different image per row in the data set? IF so you can do some thing like this:

=Lookup("[Key Value to Search On]", Fields![Key Field].Value, Fields!photpath.Value, "[Dataset Name]")



Or

=First(Fields!photopath.Value, "[Dataset Name]")





Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming
At best you can say that one job may be more secure than another, but total job security is an illusion. -- Rod at work

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
shathaway 77080
shathaway 77080
Grasshopper
Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)

Group: General Forum Members
Points: 19 Visits: 29
I am looking to place an image for every record. I did get this solved.

Turns out Report Builder is Case Sensative.

image1.value = "File:" + fields!PhotoPath.value

the field PhotoPath had capital "P" when designed and report builder needed to have the capital P's.

Thank you,

Steve
Jack Corbett
  Jack Corbett
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11034 Visits: 14858
Glad you figured it out. Doesn't really seem to make sense that report builder would be case-sensitive when BIDS isn't Crazy



Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming
At best you can say that one job may be more secure than another, but total job security is an illusion. -- Rod at work

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
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