Author |
Topic |
raaj
Posting Yak Master
129 Posts |
Posted - 2008-04-28 : 21:47:31
|
Hi Guys,i am having some images of different merchants in my folder specified at some path....now i need to pass the needed image as a parameter, so tht image shud appear on my report...is this possible???? (i am having an idea how to pass values using parameters but i am not sure how do we pick the image from the specified location and make it a parameter.....????)any help plzzzzzzzz?????Raaj.... |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-04-29 : 00:52:01
|
I think you can have a string parameter through which you pass the path of image and you can place an image in your report and give an expression for the value property as:-=Parameters!ImagePath.Value |
|
|
raaj
Posting Yak Master
129 Posts |
Posted - 2008-04-29 : 02:49:34
|
Hi Visakh,Thanks for ur reply...i went to menu and from report tab, i selected report parameters.and selected data type as string, under the label i specified some name abc.under the value i specified the value which u have given me Parameters!E:\image.jpg.Value (E:\image.jpg is the image path).so when i did the above one and when i went to preview tab,and when i am viewing the report i couldnt find any image....i think i have done some mistake somewhere...can u sugeest me where am i going wrong?????also i want tht image on the righthand side of the header....Thanks,Raaj. |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-04-29 : 02:57:24
|
Once you add the parameter dont specify any value in the parameter tab. Just go to layout tab and drag and drop a image from toolbar. Goto properties window of image and set value as=Parameters!Imageparametername.Value Then goto preview tab and report shows the created parameter with a text box. Enter the path and click view report to see the image.Also make sure you add the image to your local report project for locally displaying the image and no need to give full path but just give image name alone. But while deploying to server you need to deploy image first to shared folder on report server and give path of image as /<sharedfolder>/image.jpg |
|
|
raaj
Posting Yak Master
129 Posts |
Posted - 2008-04-29 : 10:52:21
|
thanks Visakh,I will try tht tonite and will let u know...Thanks again,Raaj. |
|
|
raaj
Posting Yak Master
129 Posts |
Posted - 2008-05-04 : 20:47:54
|
Hi Visakh,I did what u said to do exactly. But still I am having some probs.The problem is...when i went to the preview tab, i entered the path and i clicked the 'view report'.Then i got that image. But if i dont enter the path and if i click the view report, then also i am getting the image (bcoz i think i dragged tht image in the layout tab).what i exactly want is.....i want the report to be the same for different merchants(images)....is it possible in anyway tht when i enter the path with image name (like C:\MyDocuments\image1.jpg),it should pick that image and display it in the right hand corner of the page header.....Thanks,Raaj... |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-05-05 : 01:29:48
|
quote: Originally posted by raaj Hi Visakh,I did what u said to do exactly. But still I am having some probs.The problem is...when i went to the preview tab, i entered the path and i clicked the 'view report'.Then i got that image. But if i dont enter the path and if i click the view report, then also i am getting the image (bcoz i think i dragged tht image in the layout tab).what i exactly want is.....i want the report to be the same for different merchants(images)....is it possible in anyway tht when i enter the path with image name (like C:\MyDocuments\image1.jpg),it should pick that image and display it in the right hand corner of the page header.....Thanks,Raaj...
Why you dragged a particular image? I had told you to add generic image control from toolbar. Also can you post your currently used expression for image?Have you given any default value for the image path parameter? |
|
|
raaj
Posting Yak Master
129 Posts |
Posted - 2008-05-06 : 23:18:10
|
Hi Visakh,I am sorry but i couldnt figure out how to add generic image control from tool bar. All i can see is the only IMAGE option in the toolbox.I am not able to find this image control option in the toolbar...any suggestions plzzz.....thanks,Raaj. |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-05-07 : 00:46:41
|
quote: Originally posted by raaj Hi Visakh,I am sorry but i couldnt figure out how to add generic image control from tool bar. All i can see is the only IMAGE option in the toolbox.I am not able to find this image control option in the toolbar...any suggestions plzzz.....thanks,Raaj.
I was refering to same image in toolbox. But didnt get how you see only one of images even when you're passing no image path. Another thing you could do is to drag two images in your report and set the visibility property of images based on parameter value.i.e like if parameter value is image 1 set image 1 to be visible if 2 then image 2,... |
|
|
|