CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Solution: Add borders for Export to Excel

Print topic Send  topic

Author Message
jpflana

Posts: 13
Posted: 11/29/2007, 9:05 AM

I love the Export to Excel example but I needed to add a simple black border around the cells in my spreadsheet because the usual grid didn't appear in the exported file. I found a few tips on the forum but I thought I would put them together with a full example below. Here are the changes I made to my HTML document to get the borders. I added a style block and then removed all of the "<link href"s that brought in my stylesheets.

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Webpage Title</title>
<meta http-equiv="Content-Language" content="en-us">
<meta content="Webpage descriptive terms" name="Description">
<meta content="webpage,keywords" name="Keywords">
<style>
table,th{border-style:solid;border-color:#000000;border-width:1}
,tr{border-style:solid;border-color:#000000;border-width:1}
,td{border-style:solid;border-color:#000000;border-width:1}
</style>
</head>
<body>

Hope this saves someone some time.

Jeremy F
View profile  Send private message
cazzani

Posts: 11
Posted: 12/03/2007, 2:16 PM

Very nice tip. Thank you for sharing it.

Stefano - Milan, Italy
View profile  Send private message
mljonzs

Posts: 124
Posted: 06/11/2008, 12:36 PM

Total life saver! Thank you for this tip. I've spent all morning trying to do this same thing - wish I would have thought to check here sooner! :)

M Jones
_________________
What does not begin WITH God, will end in failure!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.