cancel
Showing results for 
Search instead for 
Did you mean: 

specify emplacement of pictures durant export to HTML

Former Member
0 Kudos

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());

Accepted Solutions (1)

Accepted Solutions (1)

former_member184995
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

in the viewer it works properly but with that program when i try to export it, i ave no image output ?

so is there any solution for this ? !

thanks a lot

ted_ueda
Employee
Employee
0 Kudos

Open the HTML source that is exported in a text editor.

Where the image should be, what do you see?

Sincerely,

Ted Ueda

Former Member
0 Kudos

the image is not show, there no result, but when i click right click propetry of image then adresse :

http://server:56409/images/cr_export_3dc65725-3d3f-4ba5-9c8f-9ae15a510fc4_5cb83746-b220-43d3-b2c7-d5...

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.

ted_ueda
Employee
Employee
0 Kudos

Exactly.

The emplacement of images in an HTML file is via reference.

ExportToStream does not export the images themselves - this is documented behavior.

Sincerely,

Ted Ueda

Former Member
0 Kudos

but i have a probleme , its doesnt show me any image.

so where is my probleme.

in pdf its works properly but html, there no image diplayed.

Former Member
0 Kudos

i want to know an option, that specify where do i export these images .

please ? !

Former Member
0 Kudos

please i would like juste to know why when i export in streaming its dosent show me images ? ! thanks

Answers (0)