T
Tim Attaway
I have a report that is generated on a web page. I need to be able to export
parts of this data to either Word or Excel. The approach that I am currently
taking is to duplicate the portions of the report that I need to export into
HTML format and then send that to the client, directing it Word or Excel as
appropriate (using HttpContext.Current.Response.ContentType =
"application/ms-excel" or "ms-word"). Everything works great except for two
things. First, I'd really like to include a footer in the Word or Excel
version of the report and I haven't been able to figure out how to do that.
Second, Word properly handles the column widths specified in the HTML but
Excel seems to ignore them.
Does anyone have any better way to do this or a way to fix these problems?
Thanks.
parts of this data to either Word or Excel. The approach that I am currently
taking is to duplicate the portions of the report that I need to export into
HTML format and then send that to the client, directing it Word or Excel as
appropriate (using HttpContext.Current.Response.ContentType =
"application/ms-excel" or "ms-word"). Everything works great except for two
things. First, I'd really like to include a footer in the Word or Excel
version of the report and I haven't been able to figure out how to do that.
Second, Word properly handles the column widths specified in the HTML but
Excel seems to ignore them.
Does anyone have any better way to do this or a way to fix these problems?
Thanks.