hello ppl, 

I have a assignment to convert a dynamically generated jsp page to excel .
I've been able to obtain the same use the following code snippet ...

response.setContentType("application/vnd.ms-excel");
response.setHeader(
"Content-Disposition","inline; filename=report.xls");

My problem however was that my jsp page table was basically a report having
product list which included product images (jpg/gif) . When i used this code
the pictures were coming fine , but my actual requirement was to obtain the
excel as an attachment i.e using

response.setContentType("application/vnd.ms-excel");
response.setHeader(
"Content-Disposition","attachment; filename=report.xls");

so that the open/save dialogue box could be shown to the user .However using
the later code snippet, the pictures in the excel sheet could not be
obtained. Could some-one please tell me how to go about with this problem so
that the excel file having the table and images could be displayed as well
as the dialogue box for save/open be displayed to the user so that he can
decide accordingly.

Thanks !
Munishwar


Disclaimer: 

This message and any attachment(s) contained here are information that is
confidential,proprietary to HCL Technologies and its customers, privileged
or otherwise protected by law.The information is solely intended for the
individual or the entity it is addressed to. If you are not the intended
recipient of this message, you are not authorized to read, forward,
print,retain, copy or disseminate this message or any part of it. If you
have received this e-mail in error, please notify the sender immediately by
return e-mail and delete it from your computer.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to