?
Solved

How to dynamically set the gridline on when exporting to a excel file?

Posted on 2003-02-25
4
Medium Priority
?
527 Views
Last Modified: 2008-03-17
I have dynamically generated an excel- formated document using jsp. Basically it is a dynamically generated html table and I set the border="0".  However, when I click-open the excel file, the gridline is missing. I tried to set the preference to have the gridline on but still, when the file is opened, gridline is not there.  Is it possible I could add a line of code in my jsp program so that when it is opened in Excel, the gridline will be on?  

Can I also set the font?

Thanks a lot,

RD
0
Comment
Question by:rdong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 22

Accepted Solution

by:
Dreamboat earned 150 total points
ID: 8018427
Sounds to me like you need to NOT look at gridlines. Instead, do a Ctrl+A and click the bucket icon and tell it No Fill.

Filling cells makes gridlines disappear (but not borders).

Can you also set the font?
Default font or the font for this file?
Are you exporting it to a new Excel file each time?
0
 

Author Comment

by:rdong
ID: 8020003
May be I have not made myself clear.

Ok, I have a jsp program which retrieve data dynamically from a database and export the data to a excel fomat ted file, for the argument's sake, lets say it is "test.xls".  

The problem is  that when I click-opened "test.xls", the gridline does not shown.  I have to manually set it on in Excel.

I am wondering if it is possible to code in the jsp program to set the gridline to be on(NOT in EXCEL).

Thanks

RD
0
 
LVL 22

Expert Comment

by:Dreamboat
ID: 8020038
Sorry, RD. I'm confused. Why would you ask a JSP programming question in the MS Office forum?

I would ask it in the JSP forum at:
http://www.experts-exchange.com/Web/Web_Languages/JSP/

You may want to go to community support at:
http://www.experts-exchange.com/Community_Support/

and ask them to delete your question here.

You might first want to copy your question and ask it in the JSP forum and then ask CS to delete this one.

Good luck!!!
0
 
LVL 44

Expert Comment

by:bruintje
ID: 9283594
This question has been classified as abandoned.  I will make a recommendation to the moderators on its resolution in the next round.  I would appreciate any comments by the experts that would help me in making a recommendation.


It is assumed that any participant not responding to this request is no longer interested in its final deposition.

If the asker does not know how to close the question, the options are here:
http://www.experts-exchange.com/help/closing.jsp

PLEASE DO NOT ACCEPT THIS COMMENT AS ANSWER

HAGD:O)Bruintje
EE Cleanup Volunteer
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question