on 06-20-2008 1:19 PM
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());
You cant specify placement of images on your export.
All the export does it take how the report is set up and looks in the viewer and try and replicate it in the format that you chose. You need to have the images on the report where you want them prior to exporting.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the image is not show, there no result, but when i click right click propetry of image then adresse :
that means that CR want to export images into folder IMAGES,
so i had created a folder on my application with all the privilege of shared, but ant thing.
please where is the probleme of this.
first i hope that its show me juste the image for the moment and after i will think about emplacement!
thanks for you.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.