LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Saving a spreadsheet from .Net Web Forms application under Vis

I don't think I've explained the problem well enough. I am doing all of this
in a C# web forms program by automating Excel using the Interop libraries.
The spreadsheet to be saved is being created and saved by that program
without user intervention. Here is the call that works in XP but not in
Vista:

theName = "FinalReport" +
String.Format("{0:yyyyMMddhhmmssttt}", DateTime.Now) + ".xls";


oSheet.SaveAs(Environment.GetFolderPath(Environmen t.SpecialFolder.InternetCache) + @"\" + theName,
Excel.XlFileFormat.xlExcel7, Type.Missing, Type.Missing,
Type.Missing, Type.Missing,
Type.Missing, Type.Missing, Type.Missing);



 
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
Can't open an excel file (have 2007, Vista) without saving first JimC Excel Discussion (Misc queries) 12 May 30th 10 08:51 AM
Forms--Vista--2007 Excel Lost in Excel Excel Worksheet Functions 2 December 29th 09 09:58 PM
Invisible Application/Visible Forms? roy_ware Excel Programming 3 October 10th 07 02:53 AM
XP versus Vista spreadsheet S S Excel Worksheet Functions 2 August 28th 07 09:07 PM
Saving Forms kirkm[_6_] Excel Programming 2 February 23rd 07 03:32 AM


All times are GMT +1. The time now is 03:41 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"