When I print preview, I am hidding all my toolbars. But, it does not work all the time. Here's the code I am using. The command is executed, .Visible=.F., but the toolbar is still visible. Any idea?
FOR lnCompteur=1 TO _SCREEN.FormCount
IF UPPER(_screen.Forms(lnCompteur).BaseClass)='TOOLBAR'
_screen.Forms(lnCompteur).Visible=.F.
ENDIF
NEXT