Not a bad solution, I only wonder if the user stares at teh first screen looking for the orientation setting.
Is there a code to set the orientation_ With PRTINFO() I can get the current Setting, but not sure how to change orientation (or paper source) programmatically.
If that were possible I could create a nicer interface for the user.
>What I do for general switching:
>
>
>LOCAL;
> lcPrinter AS CHARACTER,;
> llError AS BOOLEAN,;
> loException AS EXCEPTION
>
>TRY
> IF VAL(OS(3))*100+VAL(OS(4))>=600 THEN
> lcPrinter = GETPRINTER()
> IF !EMPTY(lcPrinter) THEN
> SET PRINTER TO NAME (lcPrinter)
> =SYS(1037)
> ENDIF
> ELSE
> =SYS(1037)
> ENDIF
> CATCH TO loException WHEN loException.ERRORNO=125
>* no printer found
> llError = True
> CATCH TO loException
>* other error, add your handler
>ENDTRY
>
Christian Isberner
Software Consultant