HydroPowerGen

Display.Zoom FitAll

Discussion created by HydroPowerGen on Jun 12, 2012
Latest reply on Jun 13, 2012 by 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

Outcomes