Click here to Skip to main content
Rate this: bad
good
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 1:52am
Comments
Sandeep Mewara at 15-Feb-13 15:46pm
   
What have you tried so far?
princehiware at 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)



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