>Hi everyones,
>
>In VFP6 I use this piece of code in every report. It's in the init() method.
>
>
>IF UPPER(tcprint) = "PREVIEW"
> ZOOM WINDOWS "Report Designer" MAX
>ENDIF
>
>In VFP8 it gives me an error saying : windows "Report Designer" does not exist. Digging further I found the new name for the window is "Générateur d'états" (in french....). So digging even further I found that the window's name change depending on the regional setting (in windows) on the machine the exe is build.
>
>Being in a bilingual country, this is very cumbersome. Any idea on how to work around that?
>
>A) Why is the preview windows not maximize in the first place? Why do Ì have to do that piece of code anyway? I never found a global setting that would make all my reports full screen on preview.
>
>B) Is there a setting to tell VFP8 not to look at the regional setting on the machine I'm working on?
>
>TIA
hi Diane
Would this work for you ?
IF UPPER(tcprint) = "PREVIEW"
keyboard '{CTRL+F10}' plain clear
ENDIF
Gregory