Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Datagrid Control (http://www.velocityreviews.com/forums/f60-asp-net-datagrid-control.html)
-   -   GridView -> Excel = no gridlines (http://www.velocityreviews.com/forums/t762391-gridview-excel-no-gridlines.html)

Magnus Blomberg 10-21-2005 04:33 PM

GridView -> Excel = no gridlines
 
Hi! I use the following client script but get no gridlines in Excel.
function Excel_onclick()
dim sHTML
sHTML = document.getElementById("GridView1").outerHTML
dim oXL, oBook, oSheet
set oXL = CreateObject("Excel.Application")
Set oBook = oXL.Workbooks.Add
oBook.HTMLProject.HTMLProjectItems(1).Text = sHTML
oBook.HTMLProject.RefreshDocument
oXL.Visible = true
oXL.UserControl = true
end function

I am using a bad way?
How to solve it?

Regards Magnus




All times are GMT. The time now is 05:12 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.