473,387 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Response.ContentType = "application/vnd.ms-excel" Help Please...

I'm using the Response.ContentType = "application/vnd.ms-excel" in my web
application to export data into a spreadsheet. That works fine and all.

My question is: When I export the data and go and view the spreadsheet -
there are no grid lines. They all disappeared so it's like my data is on one
giant white slab of nothing. I can read the data and see how each piece is
in it's own cell - but no gridlines. Is there anything else I can add in the
Response.ContentType = "application/vnd.ms-excel" section to get the
gridlines to show?

Thanks (and I apologize if this isn't the correct newsgroup to ask this).
Nov 23 '05 #1
2 15811
Steve,

I have struggled with this for years. About the only solution that I have
found is to add borders to your <table> elements (rows and cells).

Now, I am sure that someone will proove me wrong.

I certainly don't think there is anything that you can change related to
your ContentType.

--

Andrew Robinson
www.binaryocean.com
www.bellinghamdotnet.org
"steve02a" <st******@discussions.microsoft.com> wrote in message
news:03**********************************@microsof t.com...
I'm using the Response.ContentType = "application/vnd.ms-excel" in my web
application to export data into a spreadsheet. That works fine and all.

My question is: When I export the data and go and view the spreadsheet -
there are no grid lines. They all disappeared so it's like my data is on
one
giant white slab of nothing. I can read the data and see how each piece
is
in it's own cell - but no gridlines. Is there anything else I can add in
the
Response.ContentType = "application/vnd.ms-excel" section to get the
gridlines to show?

Thanks (and I apologize if this isn't the correct newsgroup to ask this).

Nov 23 '05 #2
I'll play around w/borders on my <table> stuff and see if I can get it nicer
looking than it is now (or I could stop bashing myself in the head and live
w/no gridlines)
"Andrew Robinson" wrote:
Steve,

I have struggled with this for years. About the only solution that I have
found is to add borders to your <table> elements (rows and cells).

Now, I am sure that someone will proove me wrong.

I certainly don't think there is anything that you can change related to
your ContentType.

--

Andrew Robinson
www.binaryocean.com
www.bellinghamdotnet.org
"steve02a" <st******@discussions.microsoft.com> wrote in message
news:03**********************************@microsof t.com...
I'm using the Response.ContentType = "application/vnd.ms-excel" in my web
application to export data into a spreadsheet. That works fine and all.

My question is: When I export the data and go and view the spreadsheet -
there are no grid lines. They all disappeared so it's like my data is on
one
giant white slab of nothing. I can read the data and see how each piece
is
in it's own cell - but no gridlines. Is there anything else I can add in
the
Response.ContentType = "application/vnd.ms-excel" section to get the
gridlines to show?

Thanks (and I apologize if this isn't the correct newsgroup to ask this).


Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Microsoft | last post by:
I'm trying to display a word document inside a web page, but everytime I do I get this error: Error Type: Microsoft VBScript runtime (0x800A0046) Permission denied: 'CreateObject' Does...
2
by: dave | last post by:
Hello Can any one suggest me how to create pdf on the fly... I had already checked link http://www.aspfaq.com/show.asp?id=2207 but I cannot use third party component as site is not hosted some...
2
by: MaxiWheat | last post by:
Hi, I am using a software that uses MS Word to create PDF files. When I try to run the sample code (ASP 3.0), I get an error on this statement : Set oWord =...
5
by: TJS | last post by:
trying to display pdf file in browser fails on this line: Response.ContentType = "application/pdf" getting an error about no declaration found for "response" what declaration is needed ???
5
by: David Lozzi | last post by:
Hello, this is a repost of a previous post of mine from today. I need to export multiple documents (doc, xls, ppt, jpg) and crystal reports to a single PDF file. I know how to export a single...
6
by: farmer | last post by:
Compiler Error Message: CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement And: (int)Application++; Makes no sense.
13
by: Kobee | last post by:
Hi, I'm having a few issues adapting to new 2.0 "website" project vs. the old 1.1 "web application". One of the major issues I'm having is with the notion of namespaces. Using the old way, I...
3
by: rdudejr | last post by:
Hi all, Ive got a database approx 350 GB in which Im getting very high Time waited for prefetch. This is directly out of the snapshot for the db (these are for the entire database I assume as I...
4
by: Bjorn Sagbakken | last post by:
With ASP.NET 2.0 I'm trying to display the pdf file directly in the client browser, but I only get a download dialogue box. Downloading the file works fine, but I want to view the PDF directly. ...
0
by: alister7 | last post by:
hi every1 im trying to download a music file from the database SQLserver.which i upload in the database.. The Code below works fine in wen i create a new project of an ASP.Net web application..m...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.