Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Problem with Saving format of the Excel

Hi All

I am working on ASP.NET application using C#.I have a requirement of genrating an Excel file 0programmatically.

For this i tried in two ways.
One is , using FileSystem object.
Another is , using Excel COM object , Microsoft Office 9.0 object library.

1). using FileSystemObject it was showing the Excel file type as
'Text(Tab Deleimted')' in the SaveAs Dialog box when i am opening the Excel sheet.


2). using Microsoft Office 9.0 object library, that was showing the Excel file type as
'Microsoft Excel Workbook' in the SaveAs Dialog box when i am opening the Excel sheet

My problem is, i have to genrate the Excel file using FileSystemObject, which saves the Excel
file in the format 'Microsoft Excel Workbook'.

So , How to accomplish this ???

Any Ideas??

Thanks in prior
Naveen.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Problem with Saving format of the Excel

I suggest posting .dotnet.framework.aspnet or a similar group.

The FSO cannot create an Excel file in its native binary format. (Well,
unless you know how to write a binary file out in your head that would be a
valid Excel file...)

Server-side automatiion of Office objects is strongly ill-advised by
Microsoft.

Response.ContentType = "application/vnd.ms-excel"
That was always good in classic ASP for basics.

As far as the user getting prompted to download, that's a client-side option
that the user has set.

Ray at work

"Naveen" wrote in message
...
Hi All

I am working on ASP.NET application using C#.I have a requirement of

genrating an Excel file 0programmatically.

For this i tried in two ways.
One is , using FileSystem object.
Another is , using Excel COM object , Microsoft Office 9.0 object

library.

1). using FileSystemObject it was showing the Excel file type as
'Text(Tab Deleimted')' in the SaveAs Dialog box when i am opening the

Excel sheet.


2). using Microsoft Office 9.0 object library, that was showing the Excel

file type as
'Microsoft Excel Workbook' in the SaveAs Dialog box when i am opening

the Excel sheet

My problem is, i have to genrate the Excel file using FileSystemObject,

which saves the Excel
file in the format 'Microsoft Excel Workbook'.

So , How to accomplish this ???

Any Ideas??

Thanks in prior
Naveen.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Problem with Saving format of the Excel

Hi Ray Thanx For u Reply

When User clicks on the button the cxcel sheet was automatically genarated that's why i am using FileSystem object.
Another is , using Excel COM object , Microsoft Office 9.0 object library.

if u don't mind pls give me an example using the FileStream object how to save excel file in the format of 'Microsoft Excel Workbook'

bye
naveen

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Saving Excel File as PRN DH Excel Discussion (Misc queries) 4 November 13th 09 05:00 PM
MS-Excel VBA file (XLA) saving problem Arvind Jagtap Setting up and Configuration of Excel 5 January 15th 07 03:45 PM
Excel 2007 saving problem sunil bhati Excel Discussion (Misc queries) 1 January 12th 07 08:54 AM
WEIRD Excel problem when saving.... jcolon68 Excel Discussion (Misc queries) 1 September 14th 05 05:07 PM
Excel saving problem smlyday Excel Discussion (Misc queries) 0 June 21st 05 08:24 PM


All times are GMT +1. The time now is 08:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"