C++换成delphi代码 ExcelApp.OlePropertyGet("CommandBars").OlePropertyGet("Item","Standard").OlePropertyGet("Controls").OlePropertyGet("Item","复制(&c)").OlePropertySet("Enabled",false); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 for(int n=1;n<=nSheetCount;n++) { mySheet = m_WorkBook.OlePropertyGet("Sheets").OlePropertyGet("Item",n); mySheet.OleProcedure("Protect","康宏地磅123457", true, true, true); } m_WorkBook.OleProcedure("Protect","康宏地磅123457", true, false); Variant ExcelApp = m_WorkBook.OlePropertyGet("Application"); ExcelApp.OlePropertyGet("CommandBars").OlePropertyGet("Item","Standard").OlePropertyGet("Controls").OlePropertyGet("Item","复制(&c)").OlePropertySet("Enabled",false); m_WorkBook = OleContainer1->OleObject; ExcelApp.OlePropertyGet("CommandBars").OlePropertyGet("Item","Standard").OlePropertyGet("Controls").OlePropertyGet("Item","复制(&c)").OlePropertySet("Enabled",false); =============ExcelApp.CommandBars.Item['Standard'].Controls.Item['复制(&C)'].Enabled := false; 怎样用delphi在word中画两个不同的表格啊 如何写服务程序??? NMudp问题 在MDI主窗口中创建child窗体问题! 如何动态将查询结果复给FastReport??????????????[?][?][?] 请教!如何排序?我问的问题都没人给出方法啊 寻求解决方案,关于远程办公。 简单的类型转换问题 如何解决客户端连接Win2000Server应用程序服务器出现"拒绝存取"? 怎样实现 询问用户是否退出程序 这个功能 急!!用100分求两个按钮功能!! 如何定义公共的AccessConnectionString连接串?
{
mySheet = m_WorkBook.OlePropertyGet("Sheets").OlePropertyGet("Item",n);
mySheet.OleProcedure("Protect","康宏地磅123457", true, true, true);
}
m_WorkBook.OleProcedure("Protect","康宏地磅123457", true, false);
Variant ExcelApp = m_WorkBook.OlePropertyGet("Application"); ExcelApp.OlePropertyGet("CommandBars").OlePropertyGet("Item","Standard").OlePropertyGet("Controls").OlePropertyGet("Item","复制(&c)").OlePropertySet("Enabled",false);
m_WorkBook = OleContainer1->OleObject;
=============
ExcelApp.CommandBars.Item['Standard'].Controls.Item['复制(&C)'].Enabled := false;