FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Bin problems with the FWH27 printer class
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Bin problems with the FWH27 printer class
Posted: Tue Apr 04, 2006 11:28 AM

Hi,
with the new FWH27 EMF printer class
the print output go always on the same bin scheet
instead the default bin scheet.

There is no problem with the old WMF printer class.

Any solutions ?

Thanks in advance

Marco Turco

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: Bin problems with the FWH27 printer class
Posted: Wed Apr 05, 2006 08:52 AM
Marco Turco wrote:Hi,
with the new FWH27 EMF printer class
the print output go always on the same bin scheet
instead the default bin scheet.

There is no problem with the old WMF printer class.

Any solutions ?

Thanks in advance

Marco Turco


Antonio

I confirm the same problem

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bin problems with the FWH27 printer class
Posted: Wed Apr 05, 2006 10:31 AM

Marco, Richard,

We have tested it here on a Canon Pixma MP750 and it works ok (samples\TestPrn2.prg).

What you can't do is to change the printer bin once you have initialized the printer in your application, unless you directly call the function PrinterEnd() that will force FWH to initialize again the printer object with the new default printer settings values.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Bin problems with the FWH27 printer class
Posted: Wed Apr 05, 2006 01:34 PM

Hi Antonio,
I don't want to change the bin from my app,
I want only that my app will print on the default bin as set on the printer panel.

The tprinter class has to check which the default bin is
and print on this bin.

Marco

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Bin problems with the FWH27 printer class
Posted: Wed Apr 05, 2006 02:13 PM
Marco Turco wrote:Hi Antonio,
I don't want to change the bin from my app,
I want only that my app will print on the default bin as set on the printer panel.

The tprinter class has to check which the default bin is
and print on this bin.

Marco


Marco

We need both. The print panel must show the default bin as set on the printer panel and we need to be able to change this bin. This is the standard windows behaviour. This was working before.

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bin problems with the FWH27 printer class
Posted: Wed Apr 05, 2006 02:47 PM

Marco,

What I mean is that if you change the default bin meanwhile your app is running, then FWH will not respect it unless you do a PrinterEnd() and a PrinterInit(), so the print values used by FWH get properly intialized again.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Bin problems with the FWH27 printer class
Posted: Wed Apr 05, 2006 02:52 PM
Antonio Linares wrote:Marco,

What I mean is that if you change the default bin _meanwhile_ your app is running, then FWH will not respect it unless you do a PrinterEnd() and a PrinterInit(), so the print values used by FWH get properly intialized again.


Antonio :-)

The initialisation should happen every time we call printersetup, all printer params must be reinitialized at that moment.

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Bin problems with the FWH27 printer class
Posted: Wed Apr 05, 2006 05:56 PM

Antonio,
I never set the bin from my app.

I try to explain me better:
imagine that the printer has two bins: the bin1 and the bin2,
the customer set as default bin the bin2 (he make this setting into the Printer control panel calling Start/Printers and fax).

After, the customer execute my app, and try a print.
Well the print output will not start on bin2 (the print default bin) but on bin1.

This is the biggest problem.

Marco

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bin problems with the FWH27 printer class
Posted: Wed Apr 05, 2006 06:01 PM

Richard,

Yes, we should initialize the low level structure everytime PrinterSetup() is used.

But what happens if the user sets a different bin manually, from Windows printer settings ? In that case, the application is not aware of such change.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bin problems with the FWH27 printer class
Posted: Wed Apr 05, 2006 06:04 PM

Marco,

>
After, the customer execute my app, and try a print.
Well the print output will not start on bin2 (the print default bin) but on bin1.
>

We have tried that exactly this morning and it worked ok. We started the app after the bin was manually changed. All ok.

What we are checking now is how to detect such bin change if it is performed meanwhile the app is running.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bin problems with the FWH27 printer class
Posted: Wed Apr 05, 2006 06:07 PM

Marco,

Our tests were done with samples\TestPrn2.prg and they worked ok. The printing was properly done on the control-panel-printer selected bin.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Bin problems with the FWH27 printer class
Posted: Fri Apr 07, 2006 11:04 AM

Antonio,
I have found the problem.

I have in my app a button to give the possibility to the customers to change the printer parameters (eg. the bin scheet).

This button call the shprnproperty() function you introduced with these latest FWH's releases. Well, when I change the bin using this function, the change doesn't applies to my app. I replaced now the button action calling the old PrinterSetup() function that runs fine.

Marco

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bin problems with the FWH27 printer class
Posted: Fri Apr 07, 2006 11:22 AM

Marco,

Thanks for the feedback,

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion