Z zlmark Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-24 #1 我在程序中打开了一个Excel文件并且做了修改,每次存盘时系统总是提示是否覆盖源文件,我想 跳过这一步,程序应该怎样写?
S SBSB174 Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-24 #2 使用下面的函数: BOOL CopyFile( LPCTSTR lpExistingFileName, // pointer to name of an existing file LPCTSTR lpNewFileName, // pointer to filename to copy to BOOL bFailIfExists // flag for operation if file exists ); 最后一个参数为False即可
使用下面的函数: BOOL CopyFile( LPCTSTR lpExistingFileName, // pointer to name of an existing file LPCTSTR lpNewFileName, // pointer to filename to copy to BOOL bFailIfExists // flag for operation if file exists ); 最后一个参数为False即可
Z zlmark Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-24 #3 我是在打开一个excel文件修改之后再存盘时想避开系统提示,这时应该怎么办?
T txmaster Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-25 #4 CopyFile(pcharFileName1,pcharFileName2,True); That's ok.
T tinyint Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-26 #5 Application.AlertBeforeOverwriting =False
Z zlmark Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-29 #6 Application.AlertBeforeOverwriting =False 找不到这个属性啊,编译时系统报错。
H HunterTeam Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-29 #7 你是不是在程序用OLE打开了Excel呢,如果是就可以: var ExcelApp:Variant; begin ExcelApp:=CreateOleObject('Excel.Application'); ExcelApp.AlertBeforeOverwriting:=False ; end;
你是不是在程序用OLE打开了Excel呢,如果是就可以: var ExcelApp:Variant; begin ExcelApp:=CreateOleObject('Excel.Application'); ExcelApp.AlertBeforeOverwriting:=False ; end;