PaperBin

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

PaperBin

Postby KHentschel » Thu Apr 20, 2017 5:30 pm

Hello,

i have a Problem with Printing to a different PaperBin

Samplecode in VisualFoxpro

goVPE = CREATEOBJECT('VpeControl.VpeControl')

goVPE.OpenDoc
goVPE.DEVICE = "Printer"
goVPE.PaperBin = PaperBinNo
goVPE.PrintOptions = 20

... Load Template ...

goVPE.PrintDoc(.F.)

no matter which Number or Value from vpe.h i use for the PaperBin, allways the Output goes to the Default Bin. I read here in the Forum about the PrintOptions and add 4+16 to 20, but also this do not work.
Someone an idea?

Thanks a lot

Klaus
KHentschel
 
Posts: 46
Joined: Thu Oct 04, 2007 10:28 am

Re: PaperBin

Postby IDEAL Software Support » Thu Apr 20, 2017 7:42 pm

Use DevEnumPaperBins to enumerate the available paper bins and their corresponding Bin-IDs.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Re: PaperBin

Postby KHentschel » Fri Apr 21, 2017 7:09 am

in the Printerdevice Combo i create a List with this Bin-IDs. The "PaperBinNo" from my first post is the numeric value from the RowSource

goVPE.DEVICE = THIS.VALUE
lnPB = goVPE.DevEnumPaperBins -1
STORE '' TO lcPaperBinList
FOR lnCount = 0 TO lnPB
lnPaperBin = goVPE.GetDevPaperBinID(lnCount)
lcPaperBin = PADL(TRANSFORM(lnPaperBin),3,'0') + ' - ' + goVPE.GetDevPaperBinName(lnCount)
lcPaperBinList = lcPaperBinList + IIF(EMPTY(lcPaperBinList),'',',') + lcPaperBin
ENDFOR

THIS.PARENT.combo2.ROWSOURCE = lcPaperBinList
KHentschel
 
Posts: 46
Joined: Thu Oct 04, 2007 10:28 am

Re: PaperBin

Postby IDEAL Software Support » Fri Apr 21, 2017 8:11 am

If all this does not help, then the printer driver is bad.
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 16 guests

cron