Click here to Skip to main content
12,634,171 members (27,133 online)
Rate this:
 
Please Sign up or sign in to vote.
Hi mates!!!

Scenario
1. need to upload images of child and get a reports from crystal report.
i have table like this

table Name : childmaster

childunique_id (varchar)
childName (varchar)

When i click to upload button, i had to keep the image to project path. eg: "img\child\" and saved the filename as "childunique_id.jpg" eg: 15486541EF.jpg.

my query is in datatable like this:
select childunique_id , '~/img/child/' ||childunique_id ||'.jpg'  url
 from childmaster


I need to get images dynamically at runtime in Crystal Report in asp.net from the above mentioned query.

The report will shows corresponding images from the physical path.
like this : 15486541EF, < 15486541EF.jpg >


any helping suggestions will be appreciable.

Thank you..
Posted 15-Feb-13 2:52am
Comments
Sandeep Mewara 15-Feb-13 15:46pm
   
What have you tried so far?
princehiware 16-Feb-13 0:18am
   
hi sandeep,
i have created a crystal report as per the above mentioned query and insert OLE Object. How can i map the corresponding to record of jpg from asp.net. normal reporting i could be done. but this...pls help...

this is normal report binding using Datatable which i made and using....

public ReportDocument Crystalreport(DataTable query, string path, string title, string reportcomments)
{
query.BeginLoadData();
query.EndLoadData();
if (query.Rows.Count != 0)
{
_cr.Load(path);
_cr.SetDataSource(query);
_cr.SummaryInfo.ReportTitle = title;
_cr.SummaryInfo.ReportComments = reportcomments;
}
return _cr;
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161208.2 | Last Updated 15 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100