I try to change the Paper bin, but no chance with my code like:
- Code: Select all
char s[256];
VpeSetPrintOptions(hDoc, PRINT_ALL + PRINT_NO_AUTO_PAGE_DIMS);
int count = VpeDevEnumPaperBins(hDoc) - 1;
int li;
for ( li = 0; li < count; li++) {
_itoa(li,s,10);
VpeWriteBox(hDoc,100,(li * 100) + 100,-1,-1,s );
VpeGetDevPaperBinName(hDoc, li, s, sizeof(s));
VpeWriteBox(hDoc,200,(li * 100) + 100,-1,-1,s );
};
VpeSetPaperBin(hDoc, 3);
VpeWriteBox(hDoc,1100,100,-1,-1,"Fach 1" );
VpePageBreak(hDoc);
VpeSetPaperBin(hDoc, 4);
VpeWriteBox(hDoc,100,100,-1,-1,"Fach 2" );
VpePageBreak(hDoc);
VpeSetPaperBin(hDoc, 5);
VpeWriteBox(hDoc,100,100,-1,-1,"Fach 3" );
VpePageBreak(hDoc);
should this work? what´s wrong?
Any suggestions would be appreciated.
Thanks,
Frigyes
VPE DLL 3.60
Laserjet HP 2430i
the driver (with word) can change the bin