Can't remove PageNew+Delete+Design buttons from Preview
Posted: Thu Oct 01, 2015 3:39 pm
Hello,
I'm unable to remove PageNew, PageDelete and PageDesign buttons from Preview toolbar on the recent PreRelease version (2015.1.21).
The code (working on the older version):
report.PreviewSettings = (report.PreviewSettings & (int)(~(StiPreviewSettings.PageNew | StiPreviewSettings.PageDelete | StiPreviewSettings.PageDesign)));
StiOptions.Viewer.HotKeys.CtrlShiftNEnabled = false; // PageNew
StiOptions.Viewer.HotKeys.CtrlShiftDEnabled = false; // PageDelete
StiOptions.Viewer.HotKeys.CtrlShiftEEnabled = false; // PageDesign
- the first line was for hiding the buttons, the rest is still working and skips the hotkeys attached to the buttons.
I tried even this code:
report.PreviewSettings = (int)(StiPreviewSettings.Toolbar);
- it contained only Fullscreen button, help button and the mentioned buttons.
Will try current Release version soon and update this thread asap.
Update: preview using ShowWithWpf() method.
I'm unable to remove PageNew, PageDelete and PageDesign buttons from Preview toolbar on the recent PreRelease version (2015.1.21).
The code (working on the older version):
report.PreviewSettings = (report.PreviewSettings & (int)(~(StiPreviewSettings.PageNew | StiPreviewSettings.PageDelete | StiPreviewSettings.PageDesign)));
StiOptions.Viewer.HotKeys.CtrlShiftNEnabled = false; // PageNew
StiOptions.Viewer.HotKeys.CtrlShiftDEnabled = false; // PageDelete
StiOptions.Viewer.HotKeys.CtrlShiftEEnabled = false; // PageDesign
- the first line was for hiding the buttons, the rest is still working and skips the hotkeys attached to the buttons.
I tried even this code:
report.PreviewSettings = (int)(StiPreviewSettings.Toolbar);
- it contained only Fullscreen button, help button and the mentioned buttons.
Will try current Release version soon and update this thread asap.
Update: preview using ShowWithWpf() method.