>I have been researching this SYS(1037) option all weekend. Thanks for the contact.
>
>I have a legacy stand-alone exe that allows the user to print for example: checks. In VFP70 and VFP80 I would call the SYS(1037) to allow the user to change the printer and custom paper size immediately before the report started to print and it worked fine even if the default printer was not selected. Now, VFP90 SYS(1037) only allows changes to the default printer when the reportengine is set to 80. It necessitates changing the desired printer to default before printing.
>
>I have tried getprinter(), but this only allows changing the printer and NOT paper size.
>
>This is causing all kinds of problems for my customers and I need to find a solution ASAP. Please advise..thank you.
>
>Lynn
Check to make sure you don't have the printer environment saved with the report itself. This could be messing up what you are trying to do. I did a simple test of SYS(1037) and it works okay for me in 80 and 90 mode. This is what I did ....
SET REPORTBEHAVIOR 80
? 'windows', SET('printer',2)
? 'vfp', SET('printer',3)
=SYS(1037)
? 'windows', SET('printer',2)
? 'vfp', SET('printer',3)
SET REPORTBEHAVIOR 90
? 'windows', SET('printer',2)
? 'vfp', SET('printer',3)
=SYS(1037)
? 'windows', SET('printer',2)
? 'vfp', SET('printer',3)