Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


I am not able to see any image on Crystal Report at Run time.
So how can I load any image which is saved in local disk so
that it can be viewed at Runtime in Crystal reports?

Answers were Sorted based on User's Feedback



I am not able to see any image on Crystal Report at Run time. So how can I load any image which is ..

Answer / peerzada

You may have used Link Image at design time (while
inseerting OLE object) therefore report requires it on
machine on whihc report will be run. One can solve this
problem by embeding image in report rather than linking it
(by unchecking Link opetion while selecting image).

Is This Answer Correct ?    12 Yes 4 No

I am not able to see any image on Crystal Report at Run time. So how can I load any image which is ..

Answer / deepak kumar

write the column of Byte array Type
And pass Tha byte data into this column
and drag the column to the crystal report.

Is This Answer Correct ?    5 Yes 0 No

I am not able to see any image on Crystal Report at Run time. So how can I load any image which is ..

Answer / vishu

try {
// here i have define a simple datatable inwhich
image will recide
DataTable dt = new DataTable();
// object of data row
DataRow drow;
// add the column in table to store the image of
Byte array type
dt.Columns.Add("Image", System.Type.GetType
("System.Byte[]"));
drow = dt.NewRow;
// define the filestream object to read the image
FileStream fs;
// define te binary reader to read the bytes of
image
BinaryReader br;
// check the existance of image
if (File.Exists
(AppDomain.CurrentDomain.BaseDirectory + "10157.Jpg")) {
// open image in file stream
fs = new FileStream
(AppDomain.CurrentDomain.BaseDirectory + "10157.Jpg",
FileMode.Open);
}
else {
// if phot does not exist show the nophoto.jpg
file
fs = new FileStream
(AppDomain.CurrentDomain.BaseDirectory + "NoPhoto.jpg",
FileMode.Open);
}
// initialise the binary reader from file
streamobject
br = new BinaryReader(fs);
// define the byte array of filelength
byte[] imgbyte = new byte[fs.Length + 1];
// read the bytes from the binary reader
imgbyte = br.ReadBytes(Convert.ToInt32
((fs.Length)));
drow(0) = imgbyte;
// add the image in bytearray
dt.Rows.Add(drow);
// add row into the datatable
br.Close();
// close the binary reader
fs.Close();
// close the file stream
CrystalReport1 rptobj = new CrystalReport1();
// object of crystal report
rptobj.SetDataSource(dt);
// set the datasource of crystalreport object
CrystalReportViewer1.ReportSource = rptobj;
//set the report source
}
catch (Exception ex) {
// error handling
Interaction.MsgBox("Missing 10157.jpg or
nophoto.jpg in application folder");
}

Is This Answer Correct ?    7 Yes 3 No

I am not able to see any image on Crystal Report at Run time. So how can I load any image which is ..

Answer / rajavivekvarma

If you are working with version 11 , then drag and drop an
ole object rt click on format graphic --> go to picture tab
--> Graphic Location -->enter your path in the formula.

Is This Answer Correct ?    7 Yes 3 No

I am not able to see any image on Crystal Report at Run time. So how can I load any image which is ..

Answer / diji varghese

Crystal report not supporting some format like gif

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Crystal Reports Interview Questions

where is the "save data with report" option?

2 Answers  


How to "Print" in Crystal Reports while using ASP DOT NET Platform?

3 Answers  


hi...to all i want to generate the two crystal reports one is employee and another is project. now i want to display the two reorts in a single crystal report viewer. i've tried using sub-reports but the page header is not avaliable in a sub reports.. so i want to display two separate crystalreports in a single viewer.. can anybody help me.. plz

1 Answers  


What are field expressions and what are the diff types? (I looked this up in the internet and never found anything with regards to types of field expressions)?

0 Answers  


Is it possible to join more than one universe in Busniess Objects BOE XI ? If its so Please explain how is that possible ? Thanks in advance for the people posting the answers

3 Answers   Wipro,


One more interview question If I have the data where some columns have multiple values in a given row of data returned from the database. The stored procedure returns data as it is that is blanks values and non blank values. However, I need to suppress the blank values not by showing 0 values but by shifting the cells up. Is there a way using a formula to shift the blank cell one row up based on a selection critieria? In the example below, I want to get rid of the blank values under Exposure column without replacing with 0. example: Company Margin Exposure AB 500 3 10 7 8 ABC 200 4 2 5 10 Thanks Anita

5 Answers   Barclays,


Explain reporter footer contents are move depend the page footer values?

0 Answers  


Is there a way to export the report formulas, like totals to excel?

3 Answers  


Can we use Crystal report as a stand-alone application?

4 Answers   Covansys,


How the data expert of flash object(after inserting flash object_right click-data expert) is useful in crt?

0 Answers  


hi.. i've one crystal report. i want the report header as "employee database". i dont want to right click->insert and goto text object and insert. i've one aspx page and aspx.cs page also. now i want the "employee database" header to be printed from .cs file. i dont want to pass by parameter also.. i.e is there any option in .cs file something like ReportDocument myreport = new ReportDocument(); myreport.Load(MapPath("~/" + "emp.rpt")); myReport.Reportheader="Employee database"; i hope u have understood this. only thing is from .cs file i want to print the header as employee database. i dont want by passing parameter also... please help....

0 Answers  


How do we format field?

4 Answers  


Categories