2 Replies Latest reply on Jun 13, 2012 4:54 PM by HydroPowerGen

    Display.Zoom FitAll

    HydroPowerGen

      Hello:

       

      I am trying to write a .NET add-in for ProcBook so that when a display is open, it will fix everything on the screen.  I used FitAll in VBA code in a display and it works fine.  But when I use FitAll in .NET add-in code, it throws error at run time saying "type submitted as a parameter invalid".

       

      aDisplay.Zoom = "FitAll";

       

      What should I pass in order to zoom to Fit All?

       

      Thanks,

       

      Aimin