Currently I'm opening files from my C#/WPF application using
System.Diagnostics.Process.Start("C:\ .... ");
Whether the application window is in full screen etc depends on the state the previous instance of the application was in when it was closed (e.g. If it was closed when full screen, it opens a new instance full screen)
What I'm trying to do is open a file in Excel and make it full screen. I looked into command line switches for Excel, seemed fairly limited since I can't modify the excel files by adding Application.DisplayFullScreen = True
into a VBA module.
Edit: Was unclear, but I meant to open it in Full Screen mode (no ribbon etc), not maximized.
Edit2: The key sequence would be alt+v,u
. Looking for a way to use SendKeys
to send the key sequence to the excel window