1

how can i set start position of Microsoft.Office.Interop.Excel?

This is example how can i succussfully modify size of this form.

var excelApp = new Microsoft.Office.Interop.Excel.Application();
excelApp.Height = height;
excelApp.Width = width;

But i cannot find anything about how to set start position of the form, for example set center align as default starting position of the form.

Does somebody have some idea?

3
  • 1
    I see Top and Left on that interface. Try those.
    – rene
    Commented Jan 3, 2018 at 22:53
  • 1
    I can't remember the last time I found it still useful to not run Excel maximized. Beyond just needing the space, the ribbon put a pretty effective end to it. Best not to mess with the user's preferences. Commented Jan 4, 2018 at 0:02
  • Rene: Thanks a lot, this helped me 100% according to my imagination! Commented Jan 4, 2018 at 8:49

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.