FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Choosing and Saving Printer Bin
Posts: 274
Joined: Fri Apr 04, 2008 01:25 PM
Choosing and Saving Printer Bin
Posted: Tue Dec 23, 2008 09: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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Choosing and Saving Printer Bin
Posted: Tue Dec 23, 2008 09:59 AM

The function PrnBinSource() returns the currently selected bin.

EMG

Posts: 274
Joined: Fri Apr 04, 2008 01:25 PM
Choosing and Saving Printer Bin
Posted: 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
Posts: 274
Joined: Fri Apr 04, 2008 01:25 PM
Choosing and Saving Printer Bin
Posted: 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:

	aNeuDrucker := PrnSetup()
	MsgInfo("Printer-bin: "+str(PrnBinSource()))
Best Regards,

Gilbert Kuhnert
CTO Software GmbH
http://www.ctosoftware.de
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Choosing and Saving Printer Bin
Posted: Tue Dec 23, 2008 10:38 AM

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

EMG

Continue the discussion