I am currently 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 in which the previous instance of the application was when it was closed (for example, if it was closed in full screen, it opens the full screen of the new instance).
What I'm trying to do is open the file in Excel and make it fullscreen. I looked at the command line keys for Excel, it seemed quite limited, since I can not modify excel files by adding Application.DisplayFullScreen = True to the VBA module.
Edit: it is unclear, but I wanted to open it in full screen mode (without tape, etc.), and not maximize it.
Edit2: The key sequence will be alt+v,u . Looking for a way to use SendKeys to send a sequence of keys to an excel window
source share