PC Review


Reply
Thread Tools Rate Thread

How do you specify a sheet when using redirection from a webpage

 
 
WISEMANOFNARNIA
Guest
Posts: n/a
 
      16th Oct 2008
I have code in asp.net that is supposed to create a spreadsheet. It
works for some people, but others complain that the spreadsheet has no
'sheet1', and instead they are told it has an 'illegal sheet name'.
So I experimented: I thought the XML for the spreadsheet could start
with a tag like <sheet name='MyFirstSheet'>. But putting that tag in
doesn't make a difference. In fact, I don't even know if the tag
exists in some kind of Excel xml language.
Does anyone have an idea of how I would specify a name for a sheet?
(technical note - I am using asp.net's Response.Write and passing it
xml)
Thanks,
Marvin
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      16th Oct 2008
workbooks has an optional parameter for a templet. If you don't have a
templet, then a default workbook wil be create. I suspect you are passing a
parameter with some data an casuing the errors. try putting NULL in the
parameter field and see if the errors go away.


workbooks.add(templet)

"WISEMANOFNARNIA" wrote:

> I have code in asp.net that is supposed to create a spreadsheet. It
> works for some people, but others complain that the spreadsheet has no
> 'sheet1', and instead they are told it has an 'illegal sheet name'.
> So I experimented: I thought the XML for the spreadsheet could start
> with a tag like <sheet name='MyFirstSheet'>. But putting that tag in
> doesn't make a difference. In fact, I don't even know if the tag
> exists in some kind of Excel xml language.
> Does anyone have an idea of how I would specify a name for a sheet?
> (technical note - I am using asp.net's Response.Write and passing it
> xml)
> Thanks,
> Marvin
>

 
Reply With Quote
 
Tim Williams
Guest
Posts: n/a
 
      17th Oct 2008
Create the barebones sheet in Excel then save as XML.

Look at that and then produce the same from ASP.

I get this:
'*****************
<Worksheet ss:Name="MySheet">
<Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="1"
x:FullColumns="1"
x:FullRows="1">
<Row>
<Cell><Data ss:Type="String">Hello</Data></Cell>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-comffice:excel">
<Selected/>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
'******************

Tim


"WISEMANOFNARNIA" <(E-Mail Removed)> wrote in message
news:bf6fbfe3-ed11-490c-8a18-(E-Mail Removed)...
>I have code in asp.net that is supposed to create a spreadsheet. It
> works for some people, but others complain that the spreadsheet has no
> 'sheet1', and instead they are told it has an 'illegal sheet name'.
> So I experimented: I thought the XML for the spreadsheet could start
> with a tag like <sheet name='MyFirstSheet'>. But putting that tag in
> doesn't make a difference. In fact, I don't even know if the tag
> exists in some kind of Excel xml language.
> Does anyone have an idea of how I would specify a name for a sheet?
> (technical note - I am using asp.net's Response.Write and passing it
> xml)
> Thanks,
> Marvin



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Hide tab sheet in webpage (Excel) =?Utf-8?B?VGF0IEZhdHQ=?= Microsoft Excel Worksheet Functions 7 11th Jul 2008 01:55 PM
excel sheet in webpage Narshe Microsoft ASP .NET 5 19th Oct 2005 02:20 PM
webpage redirection =?Utf-8?B?dGhld29ydGRvZw==?= Windows XP Security 2 17th Sep 2004 12:01 AM
redirection of my webpage =?Utf-8?B?U2FuZHk=?= Windows XP Security 1 17th May 2004 08:21 PM
Copying from excel sheet on IE webpage AH Microsoft Excel Programming 0 2nd Feb 2004 06:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:03 PM.