I need to load an unknown number of images to a rdlc report. By unknown number I mean I don't know how many images the user selected to print until runtime. These images are saved on the disk of the server as jpgs. How can I do this? I'm using ASP.net
VS2010 and the reportviewer control. Thanks in advance for any help.
Create a table that have all the images url in one column, when user select images, you create a dataset that return all url of images that the user select and pass the dataset to reportviewer.
on the report, create a Table, and insert a image to a detail cell set the size of image. use expression for image. example: =
Create a table that have all the images url in one column, when user select images, you create a dataset that return all url of images that the user select and pass the dataset to reportviewer.
on the report, create a Table, and insert a image to a detail cell set the size of image. use expression for image. example: =
=Fields!ImagneURL.Value
That's it.
I forgot to mention i'd like to stay out of the DB for this.
Anyone else have any ideas how i can do this? Doesn't necessarily have to be a rdlc....i just need to print images that the user selects but i do need to print other information under each image....maybe an rdlc isn't the best way.
bacchus99
0 Points
16 Posts
External Images in .rdlc Reports
Jun 27, 2012 09:44 PM|LINK
I need to load an unknown number of images to a rdlc report. By unknown number I mean I don't know how many images the user selected to print until runtime. These images are saved on the disk of the server as jpgs. How can I do this? I'm using ASP.net VS2010 and the reportviewer control. Thanks in advance for any help.
makwei88
Member
498 Points
115 Posts
Re: External Images in .rdlc Reports
Jun 27, 2012 11:02 PM|LINK
Create a table that have all the images url in one column, when user select images, you create a dataset that return all url of images that the user select and pass the dataset to reportviewer.
on the report, create a Table, and insert a image to a detail cell set the size of image. use expression for image. example: =
=Fields!ImagneURL.Value
That's it.
bacchus99
0 Points
16 Posts
Re: External Images in .rdlc Reports
Jun 27, 2012 11:38 PM|LINK
I forgot to mention i'd like to stay out of the DB for this.
makwei88
Member
498 Points
115 Posts
Re: External Images in .rdlc Reports
Jun 28, 2012 03:30 PM|LINK
Ok, if you don't want to use DB, then you can create a dataset base on the selected images. here's the link for create a dataset without database.
http://vb.net-informations.com/dataset/dataset-create-without-database.htm
for the report, you do have to create a fake dataset
for example
select 'http://thisimag' as url
then use this dataset create a table, put the image in detail cell and point the image to
=Fields!url.Value
Make sure the dataset you create on vb or C# code match the one on your report.
pass the dataset to the reportviewer.
bacchus99
0 Points
16 Posts
Re: External Images in .rdlc Reports
Jun 28, 2012 04:36 PM|LINK
Interesting. I'll give this a try after lunch and report back. Thanks.
bacchus99
0 Points
16 Posts
Re: External Images in .rdlc Reports
Jun 28, 2012 08:14 PM|LINK
I'm perplexed as how to create this fake dataset correctly.
makwei88
Member
498 Points
115 Posts
Re: External Images in .rdlc Reports
Jun 29, 2012 05:25 AM|LINK
Sorry, I think I know why you cannot create it. I used vs 2008 business intelligence project to create a .rdl report first. then rename it to .rdlc.
bacchus99
0 Points
16 Posts
Re: External Images in .rdlc Reports
Jul 02, 2012 02:19 PM|LINK
Anyone else have any ideas how i can do this? Doesn't necessarily have to be a rdlc....i just need to print images that the user selects but i do need to print other information under each image....maybe an rdlc isn't the best way.