|
object Nothing = System.Reflection.Missing.Value;
Excel.Application ExclApp = new Excel.Application();// 初始化
Excel.Workbook ExclDoc = ExclApp.Workbooks.Open(openfile01, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing);//打开Excl工作薄
try
{
Object format = Excel.XlFileFormat.xlWorkbookNormal;//获取Excl 2007文件格式
ExclApp.DisplayAlerts = false;
ExclDoc.SaveAs(SaveAsfile, format, Nothing, Nothing, Nothing, Nothing, Excel.XlSaveAsAccessMode.xlExclusive, Nothing, Nothing, Nothing, Nothing, Nothing);//保存为Excl 2007格式
}
catch (Exception ex)
{
ExclDoc.Close(Nothing, Nothing, Nothing);
ExclApp.Quit();
}
ExclDoc.Close(Nothing, Nothing, Nothing);
ExclApp.Quit();
出来的 excel 有的东西变 这样 模式 Mar-02 9302-3-1
77-0308 这个才是真正的
我想在前面 加个 ’ 这个符号怎么加 谢谢 教教
|
|