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

Display images stored on fileserver Expand / Collapse
Author
Message
Posted Monday, April 8, 2013 9:46 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, August 26, 2013 9:15 AM
Points: 19, Visits: 25
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,
Post #1439915
Posted Tuesday, April 9, 2013 8:40 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: 2 days ago @ 1:42 PM
Points: 10,340, Visits: 13,341
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

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
Post #1440374
Posted Tuesday, April 9, 2013 9:27 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, August 26, 2013 9:15 AM
Points: 19, Visits: 25
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
Post #1440426
Posted Tuesday, April 9, 2013 9:52 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: 2 days ago @ 1:42 PM
Points: 10,340, Visits: 13,341
Glad you figured it out. Doesn't really seem to make sense that report builder would be case-sensitive when BIDS isn't



Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming

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
Post #1440441
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse