Showing posts with label dragged. Show all posts
Showing posts with label dragged. Show all posts

Wednesday, March 28, 2012

Images Not Displayed On Server

Ok maybe someone here can help me with this. I have a crystal report with both static images (images dragged onto the report in the designer) and images that are pulled and inserted into the report as BLOBs.

The reports are displayed fine on my machine and on the test server we use for demo builds.

When I place a build on our remote webserver the images don't display correctly. They don't show up as red x's, but only the outline of the image and the icon specifying that the object is an image is visible. Another developer is working with the project on his machine and is experiencing the same problem.

What could be causing this? I don't think this is a permissions issue, as I have given both Everyone and IUSER full read privileges on the image directories of both problem machines.

I am running Windows XP Pro and we are using Framework V1.1. The problem machines are running windows server 2003 and windows server 2000 respectively.

Does anyone have any clue as to what the problem could be?

Thanks,

RonWhere the image files are stored? Have u tested the path is taken in a right way by ur server. (i.e, it may points to local path)|||Hmm, well the path shown when I right click and view properties of the image isn't anything that I can go check... it is an image that is dynamically generated by the report engine.

Do you know of anyway I can specify the image locations as relative, as opposed to absolute? The test server that works fine is using a directory structure identical to the one I am using, however the other two machines are slightly different.

If you know how to specify a path as relative please let me know, I really appreciate it.

Ron|||I'm not sure is this the right way?

For static images, store the image files in the folder where rpt files are located.

Goto your report, select the image from that path. It'll work will accessing from the server.

But for dynamic images? If it is dynamic, u must have specified the path somewhere in your code. right?|||No, the images are all being specified correctly... in fact, when I generate a PDF or Word document from the report the images display just fine.

I am really curious as to what could be causing this?|||Sorry, no idea

Try to search businessobjects web site. U may have some info.

Friday, March 23, 2012

Image not displayed in report

I am creating a very simple report in VS 2005. I dragged an image
control to the report surface and set it's value property to the
virtual path of my image (like "~/SubPage/Trademark.jpg"). However,
the image is never displayed - either at design time, when the report
viewer runs, or when the report is exported to PDF. I just get the
standard "No image" (red X) icon.
I have read other posts about this but most of them were trying to do
something more complicated than me. At this point, I am not trying to
do any logic for the visibility or the value it is trying to display.
I read about a bug that might be related here:
http://support.microsoft.com/kb/842537/
...but I am not sure if this pertains to me (as I am not pointing to a
URL, but rather a virtual path). I am leery of applying this SP2
patch, as there is no way to uninstall it, and I am not sure if it
will "break" anything that is currently working.
I would appreciate any suggestions that anyone could give me.
Thank you!Kirk,
Try embedding the image into the report instead of using the URL.
MM
"Kirk" wrote:
> I am creating a very simple report in VS 2005. I dragged an image
> control to the report surface and set it's value property to the
> virtual path of my image (like "~/SubPage/Trademark.jpg"). However,
> the image is never displayed - either at design time, when the report
> viewer runs, or when the report is exported to PDF. I just get the
> standard "No image" (red X) icon.
> I have read other posts about this but most of them were trying to do
> something more complicated than me. At this point, I am not trying to
> do any logic for the visibility or the value it is trying to display.
> I read about a bug that might be related here:
> http://support.microsoft.com/kb/842537/
> ...but I am not sure if this pertains to me (as I am not pointing to a
> URL, but rather a virtual path). I am leery of applying this SP2
> patch, as there is no way to uninstall it, and I am not sure if it
> will "break" anything that is currently working.
> I would appreciate any suggestions that anyone could give me.
> Thank you!
>|||I´ve also tested what you say and it does not work with relative path.
To make it work, do what Marie says or use absolute URL
(http://www.yourpage.com/Subpage/Trademark.jpg)
"Kirk" <loki70@.hotmail.com> escribió en el mensaje
news:1193753651.198915.166370@.k79g2000hse.googlegroups.com...
>I am creating a very simple report in VS 2005. I dragged an image
> control to the report surface and set it's value property to the
> virtual path of my image (like "~/SubPage/Trademark.jpg"). However,
> the image is never displayed - either at design time, when the report
> viewer runs, or when the report is exported to PDF. I just get the
> standard "No image" (red X) icon.
> I have read other posts about this but most of them were trying to do
> something more complicated than me. At this point, I am not trying to
> do any logic for the visibility or the value it is trying to display.
> I read about a bug that might be related here:
> http://support.microsoft.com/kb/842537/
> ...but I am not sure if this pertains to me (as I am not pointing to a
> URL, but rather a virtual path). I am leery of applying this SP2
> patch, as there is no way to uninstall it, and I am not sure if it
> will "break" anything that is currently working.
> I would appreciate any suggestions that anyone could give me.
> Thank you!
>|||On Oct 31, 12:21 pm, "M=F3nica" <monica.d...@.augure.com> wrote:
> I=B4ve also tested what you say and it does not work with relative path.
> To make it work, do what Marie says or use absolute URL
> (http://www.yourpage.com/Subpage/Trademark.jpg)
> "Kirk" <lok...@.hotmail.com> escribi=F3 en el mensajenews:1193753651.19891=5=2E166370@.k79g2000hse.googlegroups.com...
>
> >I am creating a very simple report in VS 2005. I dragged an image
> > control to the report surface and set it's value property to the
> > virtual path of my image (like "~/SubPage/Trademark.jpg"). However,
> > the image is never displayed - either at design time, when the report
> > viewer runs, or when the report is exported to PDF. I just get the
> > standard "No image" (red X) icon.
> > I have read other posts about this but most of them were trying to do
> > something more complicated than me. At this point, I am not trying to
> > do any logic for the visibility or the value it is trying to display.
> > I read about a bug that might be related here:
> >http://support.microsoft.com/kb/842537/
> > ...but I am not sure if this pertains to me (as I am not pointing to a
> > URL, but rather a virtual path). I am leery of applying this SP2
> > patch, as there is no way to uninstall it, and I am not sure if it
> > will "break" anything that is currently working.
> > I would appreciate any suggestions that anyone could give me.
> > Thank you!- Hide quoted text -
> - Show quoted text -
Thanks for the replies. I used the absolute URL and that worked.
It's unfortunate that this does not work with a relative path.
Obviously, thing change (and move around on servers) and having to
update the application just to update absolute URL's is goofy. I
know, I know, you can add this as a configuration setting so that you
don't have to rebuild the site - I was just whining.
Thanks again!

Monday, March 19, 2012

Image

Hi All,
I need to have an image in my table. I dragged an image and dropped it on a
textbox. I set the datasource as Database MIMEType = jpeg and the value as
the databse column (this column is the path to the jpg image).
When I preview the report the image field contains a red X.
I really, really need help getting this to work.
RoyIf I understand correctly, you have a filepath in your database field (i.e.
'c:\images\someimage.jpg' ). The simplest way to do this is to store your
image a binary field inside your database (in a varbinary type field). Then
the report will display the contents of that field automatically.
Alain Quesnel
alainsansspam@.logiquel.com
www.logiquel.com
"RAF" <RAF@.discussions.microsoft.com> wrote in message
news:2BCEB9D0-F773-4A07-94C2-FE9207A3F979@.microsoft.com...
> Hi All,
> I need to have an image in my table. I dragged an image and dropped it on
> a
> textbox. I set the datasource as Database MIMEType = jpeg and the value as
> the databse column (this column is the path to the jpg image).
> When I preview the report the image field contains a red X.
> I really, really need help getting this to work.
> Roy|||I always understood that storing images was not a good idea. Is it not
possible to use a path to render the image?
Thanks,
Roy
"Alain Quesnel" wrote:
> If I understand correctly, you have a filepath in your database field (i.e.
> 'c:\images\someimage.jpg' ). The simplest way to do this is to store your
> image a binary field inside your database (in a varbinary type field). Then
> the report will display the contents of that field automatically.
>
> Alain Quesnel
> alainsansspam@.logiquel.com
> www.logiquel.com
>
> "RAF" <RAF@.discussions.microsoft.com> wrote in message
> news:2BCEB9D0-F773-4A07-94C2-FE9207A3F979@.microsoft.com...
> > Hi All,
> >
> > I need to have an image in my table. I dragged an image and dropped it on
> > a
> > textbox. I set the datasource as Database MIMEType = jpeg and the value as
> > the databse column (this column is the path to the jpg image).
> >
> > When I preview the report the image field contains a red X.
> >
> > I really, really need help getting this to work.
> >
> > Roy
>|||You can do that through an expression that returns the image file's path on
your webserver (i.e. ="http://www.yourdomain.com/images/" &
Fields!FILE_PATH.Value ). This will be the "Value" property of your report's
image component. The "Source" property will be external. You can leave the
MIMEType blank.
Why do you think storing images is not a good idea?
Alain Quesnel
alainsansspam@.logiquel.com
www.logiquel.com
"RAF" <RAF@.discussions.microsoft.com> wrote in message
news:DDBD584A-4F67-451A-8600-D84BAA08C133@.microsoft.com...
>I always understood that storing images was not a good idea. Is it not
> possible to use a path to render the image?
> Thanks,
> Roy
> "Alain Quesnel" wrote:
>> If I understand correctly, you have a filepath in your database field
>> (i.e.
>> 'c:\images\someimage.jpg' ). The simplest way to do this is to store your
>> image a binary field inside your database (in a varbinary type field).
>> Then
>> the report will display the contents of that field automatically.
>>
>> Alain Quesnel
>> alainsansspam@.logiquel.com
>> www.logiquel.com
>>
>> "RAF" <RAF@.discussions.microsoft.com> wrote in message
>> news:2BCEB9D0-F773-4A07-94C2-FE9207A3F979@.microsoft.com...
>> > Hi All,
>> >
>> > I need to have an image in my table. I dragged an image and dropped it
>> > on
>> > a
>> > textbox. I set the datasource as Database MIMEType = jpeg and the value
>> > as
>> > the databse column (this column is the path to the jpg image).
>> >
>> > When I preview the report the image field contains a red X.
>> >
>> > I really, really need help getting this to work.
>> >
>> > Roy
>>|||Make that ="http://www.yourdomain.com/images/" & Fields!FILE_NAME.Value ,
assuming you have the image's file name in a field called FILE_NAME.
Alain Quesnel
alainsansspam@.logiquel.com
www.logiquel.com
"Alain Quesnel" <alainsansspam@.logiquel.com> wrote in message
news:eQwg09fYIHA.4828@.TK2MSFTNGP05.phx.gbl...
> You can do that through an expression that returns the image file's path
> on your webserver (i.e. ="http://www.yourdomain.com/images/" &
> Fields!FILE_PATH.Value ). This will be the "Value" property of your
> report's image component. The "Source" property will be external. You can
> leave the MIMEType blank.
> Why do you think storing images is not a good idea?
>
> Alain Quesnel
> alainsansspam@.logiquel.com
> www.logiquel.com
>
> "RAF" <RAF@.discussions.microsoft.com> wrote in message
> news:DDBD584A-4F67-451A-8600-D84BAA08C133@.microsoft.com...
>>I always understood that storing images was not a good idea. Is it not
>> possible to use a path to render the image?
>> Thanks,
>> Roy
>> "Alain Quesnel" wrote:
>> If I understand correctly, you have a filepath in your database field
>> (i.e.
>> 'c:\images\someimage.jpg' ). The simplest way to do this is to store
>> your
>> image a binary field inside your database (in a varbinary type field).
>> Then
>> the report will display the contents of that field automatically.
>>
>> Alain Quesnel
>> alainsansspam@.logiquel.com
>> www.logiquel.com
>>
>> "RAF" <RAF@.discussions.microsoft.com> wrote in message
>> news:2BCEB9D0-F773-4A07-94C2-FE9207A3F979@.microsoft.com...
>> > Hi All,
>> >
>> > I need to have an image in my table. I dragged an image and dropped it
>> > on
>> > a
>> > textbox. I set the datasource as Database MIMEType = jpeg and the
>> > value as
>> > the databse column (this column is the path to the jpg image).
>> >
>> > When I preview the report the image field contains a red X.
>> >
>> > I really, really need help getting this to work.
>> >
>> > Roy
>>
>