I have a Brother HL-5250DN network printer that is duplex capable, but I haven't been able to get the XPRINT SET DUPLEX command to make the printer print both sides. The XPRINT GET DUPLEX command works perfectly, and I can print on both sides by manually setting duplex printing from the properties button on the printer dialog box. A snippit of the XPRINT code I'm using is:
Any suggestions before I submit to PowerBasic Support? And just to be sure, I did check for ERR after XPRINT SET DUPLEX, and it was zero.
Code:
XPRINT ATTACH CHOOSE IF LEN(XPRINT$) = 0 THEN EXIT SUB XPRINT GET DUPLEX TO xDuplex IF xDuplex THEN XPRINT SET DUPLEX %DMDUP_VERTICAL XPRINT GET DUPLEX TO xDuplex MSGBOX STR$(xDuplex) '... shows 2 .... ....
Comment