Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > ASP Export to Excel

Reply
Thread Tools

ASP Export to Excel

 
 
bcap
Guest
Posts: n/a
 
      10-19-2009
Hi,

I am using the following code to send ASP to Excel

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

I have a set of 18 numbers, but once it hits 15 characters, anything
after is turned into zero's (000) for some reason. While looking
online, I can see that 15 may be a limitation. Is there a work around
for this?

For example:

Data should show as:

850036701888998124

But is showing as:

850036701888998000

Any thoughts would be greatly appreciated!

Thank you!!!!!!!!!!
 
Reply With Quote
 
 
 
 
Bob Barrows
Guest
Posts: n/a
 
      10-19-2009
bcap wrote:
> Hi,
>
> I am using the following code to send ASP to Excel
>
> Response.ContentType = "application/vnd.ms-excel"
>
> I have a set of 18 numbers, but once it hits 15 characters, anything
> after is turned into zero's (000) for some reason. While looking
> online, I can see that 15 may be a limitation. Is there a work around
> for this?
>
> For example:
>
> Data should show as:
>
> 850036701888998124
>
> But is showing as:
>
> 850036701888998000
>

Export the resulting excel file to html and see if it resembles the html
you were intending to create.
Alternatively, create an excel file containing the data you wish it to
contain and export it to html so you can see what the html you are
supposed to create should look like.

--
HTH,
Bob Barrows


 
Reply With Quote
 
 
 
 
bcap
Guest
Posts: n/a
 
      10-19-2009
Hi,

Thank you for getting back to me!

When I run it just as HTML it does produce the desired results. Also,
if I Export directly from the database (Access) it looks OK too.

The problem seems to be when I add the Excel Export code into the HTML
as it appears to stop at 15 characters.
 
Reply With Quote
 
Bob Barrows
Guest
Posts: n/a
 
      10-19-2009
bcap wrote:
> Hi,
>
> Thank you for getting back to me!
>
> When I run it just as HTML it does produce the desired results. Also,
> if I Export directly from the database (Access) it looks OK too.
>
> The problem seems to be when I add the Excel Export code into the HTML
> as it appears to stop at 15 characters.


You're missing the point. Does the html that is produced when you save
the Excel file as html resemble the html your "Excel Export" code
produces? If not, there is your problem.

--
HTH,
Bob Barrows


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Export to Excel (Default File Type - Excel) =?Utf-8?B?SGVtYW50IFNpcGFoaW1hbGFuaQ==?= ASP .Net 15 05-21-2009 12:01 PM
Problem with Excel reports ::::Excel 2003 Migration To Excel 2007 =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?= ASP .Net 15 10-24-2007 01:34 PM
Export to excel in asp.net using excel template Grey ASP .Net 4 10-17-2007 08:08 AM
using Microsoft Excel image for Export to Excel button =?Utf-8?B?U3JpZGhhcg==?= ASP .Net 0 12-09-2005 08:58 PM
Invalid export DLL or export format =?Utf-8?B?RGF2aWQgVmFsbGU=?= ASP .Net 0 10-29-2003 11:46 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57