Skip to Content
0
Former Member
Jun 20, 2008 at 12:19 PM

specify emplacement of pictures durant export to HTML

12 Views

hello.

i would like to know, how to specify the emplacement of pictures durant export of my report built with CR2008.

thanls a lot.

this my code:

MemoryStream oStream;

string content_type = "";

CrystalReport1 crt = new CrystalReport1();

string customerFilePath = Server.MapPath("
donnees.xml");

DataSet ds = new DataSet();

ds.ReadXml(customerFilePath);

crt.SetDataSource(ds);

CrystalDecisions.Shared.ExportFormatType t = CrystalDecisions.Shared.ExportFormatType.HTML40;

content_type = "text/html";

oStream = (MemoryStream)crt.ExportToStream(t);

Response.Clear();

Response.Buffer = true;

Response.ContentType = content_type;

Response.BinaryWrite(oStream.ToArray());