Choosing and Saving Printer Bin

Choosing and Saving Printer Bin

Postby gkuhnert » Tue Dec 23, 2008 9:44 am

Hi,

the TPrinter-method SetBin(nBin) can address a bin available on the printer. But is there also a method to save the bin a user has chosen in the printer setup dialog? For example, if he chooses the "tractor", I want to save it in an .ini-file and if he prints the same form again use this setting for default.
Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
User avatar
gkuhnert
 
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands

Re: Choosing and Saving Printer Bin

Postby Enrico Maria Giordano » Tue Dec 23, 2008 9:59 am

The function PrnBinSource() returns the currently selected bin.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby gkuhnert » Tue Dec 23, 2008 10:05 am

Enrico,

thank you very much!
I'll try it :-)
Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
User avatar
gkuhnert
 
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands

Postby gkuhnert » Tue Dec 23, 2008 10:28 am

Enrico,

after choosing the printer with prnsetup() the answer I get for PrnBinSource() always is 15, no matter which printer I choose and which tray/bin I choose.

this is my sourcecode for testing:

Code: Select all  Expand view
   aNeuDrucker := PrnSetup()
   MsgInfo("Printer-bin: "+str(PrnBinSource()))
Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
User avatar
gkuhnert
 
Posts: 274
Joined: Fri Apr 04, 2008 1:25 pm
Location: Aachen - Germany // Kerkrade - Netherlands

Postby Enrico Maria Giordano » Tue Dec 23, 2008 10:38 am

Maybe a bug in PrnBinSource(), I don't know, sorry.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 99 guests