LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Probleme saving xls file with C#

Hello every body,

I'm working with VS 2005 pro, excel 2003, windows xp sp2

I made a programme to modify cells in an excel workbook. The idea is to
open an existing xls file and modify cells, and finaly save the
workbook with a different file name.

The problem i have is that the file I saved dosen't have the
modification I did. I checked the workbook object juste befor the
workbook.saveAs(...) methode and it has the good values. beside when I
run my programe with excel = visible, I see all the modification being
made, if I do by hand File-Save As ... the workbook is saved WITH the
modifications.

here is my methode to save the file :

System.Threading.Thread.CurrentThread.CurrentCultu re = new
System.Globalization.CultureInfo("en-US");
excelWorkbook.SaveAs(
fileName,
Excel.XlFileFormat.xlWorkbookNormal,
xlmissing,
xlmissing,
xlfalse,
xlfalse,
Excel.XlSaveAsAccessMode.xlNoChange,
xlmissing,
xlmissing,
xlmissing,
xlmissing,
xlfalse);

I tried different parameters, but nothing changed. I know that the
excel file has been made on a excel 97 french version and I'm using an
excel 2003 english version.

Please help me on that probleme, I'm stucked for a long time know...

 
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
Ye Olde Date Formate Probleme - PLEASE HELP Elessvie Excel Discussion (Misc queries) 5 June 29th 09 09:03 PM
Date Probleme MESTRELLA29 Excel Discussion (Misc queries) 5 December 26th 07 09:12 PM
Problème avec une boite de message! [email protected] Excel Programming 3 July 18th 06 10:27 PM
Problème avec Range(x).Select Thierry Excel Programming 1 October 17th 03 11:50 PM
probleme autorisation d'acces sur Sage 100 gestion ml-al Excel Programming 7 October 2nd 03 05:23 PM


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