Welcome! Log In Create A New Profile

Advanced

iDestination problem - won't send to defined printer (wd12)

Posted by Georgio 
Hi all,

I'm having an odd issue where I'm trying to print output to a label printer using
iDestination but it seems that the command is being ignored.

Here's my code:

// print label directly to printer
iDestination(iPrinter,"LabelPrinter")
iInitReportQuery(MailLabel,ClientNo)
iPrintReport("MailLabel")
Close()

However, when the output is printed, its going to my current printer set in the program.
(command: iConfigure)

Can someone tell me if I'm doing something wrong?

Thanks!
Georgio
Fabrice Harari
Re: iDestination problem - won't send to defined printer (wd12)
December 08, 2008 08:19PM
Hi Georgio,

iDestination doesn't select a target, but only a target TYPE (ie Printer vs File vs...)
To select a specific printer, you should use iconfigure

Best regards

Fabrice Harari
WinDev, WebDev, WinDev Mobile consulting
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: