- Code: Select all
onzin = NEWOBJECT("vpecontrol.vpecontrol.35")
IF onzin.isopen
onzin.closedoc
ENDIF
onzin.opendoc
#include "vpe35.h"
onzin.writeboxrtf(40,40,1000,vfree, 'This is a test to see which paperbin is used when printing')
onzin.device = "LocalRICOHAficioMPC4500PCL6"
onzin.paperbin ="2"
onzin.CAPTION = 'TEST_DOCUMENT_' + STRTRAN(TIME(), ':', '')
onzin.devjobname = onzin.CAPTION
onzin.PrintDoc(.f.)
The printqueue has been locally defined. The job is created but how can I see which paperbin has actually been used. Using "2" or 2 does not result in an error. The printer has 4 paperbins.
I have done the devEnumPaperBins() so I know that the number 2 actually exists. How can I check the document properties (in the print queue) to see which paperbin will be used.