Open target worbook readonly. Turn off Save As dialog.

This commit is contained in:
Sergey Chebotar 2022-02-08 13:40:23 +03:00
parent eb6a28b955
commit b9c96ae180
5 changed files with 5 additions and 5 deletions

View File

@ -18,7 +18,7 @@ namespace RehauSku.PriceListTools
public void OpenNewPrice()
{
Workbook wb = ExcelApp.Workbooks.Open(RegistryUtil.PriceListPath);
Workbook wb = ExcelApp.Workbooks.Open(RegistryUtil.PriceListPath, 0, true);
try
{

View File

@ -34,7 +34,7 @@ namespace RehauSku.PriceListTools
FilterByAmount();
ResultBar.Update();
Interface.Dialog.SaveWorkbookAs();
//Interface.Dialog.SaveWorkbookAs();
ExcelApp.StatusBar = false;
}
}

View File

@ -39,7 +39,7 @@ namespace RehauSku.PriceListTools
FilterByAmount();
ResultBar.Update();
Dialog.SaveWorkbookAs();
//Dialog.SaveWorkbookAs();
ExcelApp.StatusBar = false;
}
}

View File

@ -30,7 +30,7 @@ namespace RehauSku.PriceListTools
FilterByAmount();
ResultBar.Update();
Interface.Dialog.SaveWorkbookAs();
//Interface.Dialog.SaveWorkbookAs();
ExcelApp.StatusBar = false;
}

View File

@ -25,7 +25,7 @@ namespace RehauSku.PriceListTools
FilterByAmount();
ResultBar.Update();
Dialog.SaveWorkbookAs();
//Dialog.SaveWorkbookAs();
ExcelApp.StatusBar = false;
}
}