Bin problems with the FWH27 printer class

Bin problems with the FWH27 printer class

Postby Marco Turco » 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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: Bin problems with the FWH27 printer class

Postby Richard Chidiak » Wed Apr 05, 2006 8: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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42120
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Marco Turco » Wed Apr 05, 2006 1: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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Postby Richard Chidiak » Wed Apr 05, 2006 2: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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Antonio Linares » Wed Apr 05, 2006 2: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42120
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Richard Chidiak » Wed Apr 05, 2006 2: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 :shock:

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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Postby Marco Turco » Wed Apr 05, 2006 5: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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Postby Antonio Linares » Wed Apr 05, 2006 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42120
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Wed Apr 05, 2006 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42120
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Wed Apr 05, 2006 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42120
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Marco Turco » 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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Postby Antonio Linares » Fri Apr 07, 2006 11:22 am

Marco,

Thanks for the feedback,
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42120
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

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