Unsolved Disabling "SaveAs / Print" in Excel
-
Hi,
I can open an Excel file in Qt. Below is the code :
QAxWidget excel("Excel.Application");
excel.setProperty("Visible", true );
QAxObject * workbooks = excel.querySubObject("WorkBooks");
QAxObject *workbook = workbooks->querySubObject( "Open(const QString&)", QString("G:\Book1.xlsx"));Is there any command where I can disable "Save As" or "Print". I don't want user to save or print his excel doc after he has edited.
-
Hi
Is this Book1.xlsx a sheet you create yourself?
It possible to use macro to disable print and save. -
@mrjj :
I can create myself and can open the excel.exe also.
Which macro to use so that I wont allow user to SaveAs and Print his document? -