Skip to Content
0

Dynamic image path

Feb 23 at 08:42 AM

75

avatar image

In my report, I had image object with dynamic path.

The image displays ok when the path is local path on computer ("C:\photos\image.jpg"), but do not working when the path links on local sharepoint server ("http://srv-sharepoint.domain.local/dt/DocControle/image.jpg").

Crystal Reports is launched on a server called srv-erp, and try to access local sharepoint server on srv-sharepoint, in the same local domain.

Thanks for your help to display correctly sharepoint images.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

5 Answers

Abhilash Kumar
Feb 23 at 08:48 AM
0

Hi Nicolas,

Instead of an Http URL, have you tried with a relative or an absolute "path" to the directory that has the image?

It usually looks like this:

"\\server-name\directory\image.jpg"

-Abhilash

Share
10 |10000 characters needed characters left characters exceeded
nicolas massicot Feb 23 at 09:02 AM
0

Hi,

Thanks for your answer, but I have constraint, I must use images stored in sharepoint images library, so these images are not accessible via absolute path as your example.

On my personal computer, http path works, but not on customer's server.

Share
10 |10000 characters needed characters left characters exceeded
Ido Millet Feb 23 at 01:30 PM
0

What version of Crystal is running on the customer server. Perhaps it's older than your version and doesn't support url path for images.
In such a case, you could use a UFL to on-the-fly materialize the image from a url path to a local file path. At least one 3rd-party UFL provides such httpToImage() function.

Share
10 |10000 characters needed characters left characters exceeded
nicolas massicot Feb 23 at 03:47 PM
0

On customer server : CR 2013

On my personal computer : CR 2008

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Copy the url path you are attempting to use into a browser on the "bad" machine.
Do you get an image back?

0

Yes, if I copy the url path into a browser on customer's server, image is displayed correctly.

0
nicolas massicot Mar 01 at 09:06 AM
0

Is there any rights or firewall parameters to activate ?

Why CR can't access and show image with http link ?

Any ideas ?

Share
10 |10000 characters needed characters left characters exceeded