![]() |
Admin 9/18/2006 |
Sheryl, |
|
skemp author 9/18/2006 |
Sheryl, try to add the following in the beginning of the View page (..._view.asp): Response.ContentType = "application/vnd.ms-excel" Response.AddHeader "Content-Disposition", "attachment; Filename=RecordView.xls" Response.Write "<html xmlns:o=""urn:schemas-microsoft-com:office:office"" xmlns:x=""urn:schemas-microsoft-com:office:excel"" xmlns=""http://www.w3.org/TR/REC-html40"">" Response.Write "<meta http-equiv=""Content-Type"" content=""text/html; charset=Windows-1252"">" If this works you can remove unnecessary links and labels from that page that you don't want to see in Excel file.
Hi, I am trying to find a means to open an excel file with information that gets embedded based upon the record information selected by the user. I was thinking that perhaps I could use the 'view' link on a record that would open an excel file (empty) and fill it with the values found in the selected record from the listing. (this is all an effort to create and use preprinted forms in an application. Any help at all is greatly appreciated!! Sheryl
|
![]() |
Admin 9/18/2006 |
Sheryl, |
|
skemp author 9/25/2006 |
Sheryl, HTML cells are treated as cell in Excel. Basically you need to have an HTML table with labels and cell data. If you modify existing view page you need to remove unnecessary "Back to list" links.
|
![]() |
Admin 9/25/2006 |
I guess you need to move style definitions from style.css file to view.asp. |