>I didn't know VFP 9 support that with SYS(1037,2), thank you.
>
>A small advice: Don't use sys(3) for temporary file names. If you do that in a shared folder, it can be reason filename violation problems. You might use sys(2015) instead of sys(3)
>
>
>
>>Have you ever wanted to change printer properties like duplex mode or the printer tray programmatically? I have a program available in a file called SetPrtProps.zip available for download from my site at
www.peisch.com/downloads.html that can do this for you. It comes with a sample program of how to call the class that changes the orientation, paper tray, number of copies and duplex mode.
>>
>>Please note: This program requires VFP 9.
>>
>>I'd really love to get some feedback on this.
Yes, you're right. I shouldn't be using sys(3), but I'll use SUBSTR(SYS(2015),3) as Tore suggests. SYS(2015) returns a string starting with an underscore followed by a number, which is why you need to start with the third character, which is a letter.