FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper Printers, Printers, Printers...
Posts: 74
Joined: Thu Oct 20, 2005 04:30 PM
Printers, Printers, Printers...
Posted: Thu Nov 23, 2006 10:55 PM

Hi All,

Can anyone can tell me, since Antonio Linares cant, why DeviceCapabilities(), GetDeviceCaps() and DevMode dont work at all !!!

Ive been struggling whit these 3 functions for the past year and cant get nothing out of them. Why ?

And please, don`t suggest me to use TPrinter CLASS. It does not work properly either.

Regards, :x

Gilbert Vaillancourt
turbolog@videotron.ca
Posts: 840
Joined: Thu Oct 13, 2005 07:05 PM
Printers, Printers, Printers...
Posted: Fri Nov 24, 2006 12:25 AM

I guess there should be a problem with the 16 bits stuff and the USB printers, but is an issue for the 16 bits app.

Have you tried it on 32 bits ?

Saludos

R.F.
Posts: 74
Joined: Thu Oct 20, 2005 04:30 PM
Printers, Printers, Printers...
Posted: Fri Nov 24, 2006 04:38 AM

Hi,

Not yet, but Im trying to port to xHarbour & FiveWinH. I still have things to solve like modify my personal library, figure out whats the problem with xBuild that will not compile my application, redo all my resource in 32 bits and a few other things. This will take a few weeks and Im affraid that these functions still wont work.

Regards

Gilbert Vaillancourt
turbolog@videotron.ca
Posts: 74
Joined: Thu Oct 20, 2005 04:30 PM
Printers, Printers, Printers...
Posted: Fri Nov 24, 2006 04:48 AM

Hi again,

Actually I am not yet testing with USB printers, just local and network printers.

I found Badara Thiam, on the forum concerning this problem. He had made a tremendous job in trying, like me to find a work around to this problem. With Windows 98 it is posible and quite simple to solve a big part of this problem by using Windows register. But for Win 2000 and XP it is absolutely crazy. So I had to forget this idea and try to find something else. Also had the idea of using API Calls, but I don`t know enough about Windows API. I left a message to Antonio about this, but again no reply.

So Im left alone with my problem and Im kind of deseperated...

I just want to find a solution to a problem that seem to be unresolvable.

Regard,

Gilbert Vaillancourt
turbolog@videotron.ca
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Printers, Printers, Printers...
Posted: Fri Nov 24, 2006 07:58 AM
Gilbert wrote:Hi All,

Can anyone can tell me, since Antonio Linares can`t, why DeviceCapabilities(), GetDeviceCaps() and DevMode don`t work at all !!!


I don't use Clipper/Fivewin anymore but my Clipper/Fivewin apps did print just fine. I think you may have a bugged printer driver. Try updating it or installing a generic one.

EMG
Posts: 74
Joined: Thu Oct 20, 2005 04:30 PM
Printers, Printers, Printers...
Posted: Sun Nov 26, 2006 05:11 AM

Hi Enrico,

I don t have a corrupted driver or whatever. It never worked on any PC with any Priter for the past 3 years. Its not a printer driver it`s a BUG.

Regards,

Gilbert Vaillancourt
turbolog@videotron.ca
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Printers, Printers, Printers...
Posted: Sun Nov 26, 2006 08:52 AM
Gilbert wrote:Hi Enrico,

I don `t have a corrupted driver or whatever. It never worked on any PC with any Priter for the past 3 years. It`s not a printer driver it`s a BUG.

Regards,


Are you saying that I was just lucky? :-) Please note that you seem to be the only one that is having printing problem with FW 16bit, or am I wrong?

EMG
Posts: 74
Joined: Thu Oct 20, 2005 04:30 PM
Printers, Printers, Printers...
Posted: Mon Nov 27, 2006 11:27 PM

Hi Enrico,

Im not saying I have problem printing. Im saying that DevMode(), DeviceCaps() and GetDeviceCaps() are resulting erroneaus results.

Regards,

Gilbert Vaillancourt
turbolog@videotron.ca
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Printers, Printers, Printers...
Posted: Tue Nov 28, 2006 08:07 AM
Gilbert wrote:Hi Enrico,

I`m not saying I have problem printing. I`m saying that DevMode(), DeviceCaps() and GetDeviceCaps() are resulting erroneaus results.

Regards,


I don't know what DeviceCaps() is but the others are just direct wrappers to the Windows API. Look:

#ifdef __HARBOUR__
   CLIPPER GETDEVICECAPS( PARAMS )     //  ()    HDC, int iIndex
#else
   CLIPPER GETDEVICEC( PARAMS )     //  APS()    HDC, int iIndex
#endif
{
   _retnl( GetDeviceCaps( ( HDC ) _parnl( 1 ), _parni( 2 ) ) );
}


Then one of the two: the API is wrong or the driver is bugged. Nothing that FW can solve.

EMG
Posts: 74
Joined: Thu Oct 20, 2005 04:30 PM
Printers, Printers, Printers...
Posted: Tue Nov 28, 2006 03:11 PM

Hi Enrico,

I agree with you up to a certain point.

If the API is wrong or the Driver is bugged, then its true that FW cant do anything about it. In this case, that would mean that I have 7 PCs plus 3 Servers connected to 3 Laser printers, 1 InkJet printer and 1 Matrix printer that have either an API problem or bugged printer drivers. Furthermore the test Im doing on my Network has also been done on other (Customers) Network. Again that would mean that everyone has an API problem or bugged drivers no matter the OS used or Printers used...Hummmm!

So in this case, is there an explaination :( why other languages like VB can retreive DevMode info without any problems, using the same computers and printers... ?

Over the past 3 years I came up often with messages concerning 3 functions (DeviceCapabilities(), GetDeviceCaps() and DevMode()). Unfortunately it seems that these 3 functions are somehow lost in the dark cause nobody has been using them. But there is one person that can really clarify this mistery. I`m sure he has seen all the threads I left on the forums. I even sent personal message to him, but never got a reply on this matter. :evil:

My question is simple. Do they work properly or not ? Someone somewhere must have the answer.

I really apreciate you take time trying to help out.

Regards

Gilbert Vaillancourt
turbolog@videotron.ca
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Printers, Printers, Printers...
Posted: Tue Nov 28, 2006 06:20 PM

Can you show us a reduced and self-contained sample showing the problem, please?

EMG

Posts: 74
Joined: Thu Oct 20, 2005 04:30 PM
Printers, Printers, Printers...
Posted: Wed Nov 29, 2006 04:10 AM

Hi Enrico,

For now I`m quite busy finishing up another application, but I will post a sample file illustrating the problem as soon as I can.

Regards,

Gilbert Vaillancourt
turbolog@videotron.ca
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Printers, Printers, Printers...
Posted: Wed Nov 29, 2006 07:52 AM

Thank you.

EMG

Posts: 160
Joined: Tue Oct 18, 2005 10:21 AM
Printers, Printers, Printers...
Posted: Wed Nov 29, 2006 01:08 PM
Gilbert wrote:Hi Enrico,

I`m not saying I have problem printing. I`m saying that DevMode(), DeviceCaps() and GetDeviceCaps() are resulting erroneaus results.

Regards,


I have exactly the same problem with this functions Gilbert,
since the day i have purchased FW 2.5 and FWH 2.5.
I have reported these bugs to Antonio there is o long time,
nobody do nothing to solve this.

So, i have rewritted some "obsoletes" functions of fivewin
to work properly, and some changes in TPrinter() class.
And this work today, on 98 like XP.
What problem have you under 2000 with my functions ?

Sure, you have not access to the datas you look before
to buy Fivewin.

I don't speak about FWH, i can do nothing with...
One product for the price of two.

Now, i am waiting level zero bug before to see.

Regards,
Badara Thiam
http://www.icim.fr
Posts: 74
Joined: Thu Oct 20, 2005 04:30 PM
Printers, Printers, Printers...
Posted: Tue Dec 05, 2006 03:34 AM

Bonjour Badara,

Je nai aucun problèmes avec tes fonctions, si tu parles de celles qui remplacent la recherche ses imprimantes sous Windows. Je travail présentement à développer une classe qui permettra de retracer les imprimantes actives sous Windows à partir de la base de registre. Je te remercie pour les sources que tu as poster sur le forum elles ont été une source dinspiration. Je nutilise pas ces fonctions telles que tu as publiées, mais lidée derrière ces fonctions m`ont grandement aider à découvrir une méthode de contourner Fivewin.

Jétais rendu au point de récupérer les information (DevMode) des imprimantes configurées sous Windows. Malheureusement les fonctions de Fivewin qui devrait permettre dy parvenir nont pas lair de fonctionner correctement. Jai alors mis beaucoup de temps à décrotiquer la base de régistre de Windows pour découvrir que sous Win2000 et WinXP il est relativement facile dextraire ces informations. Malheur, impossible d`en faire autant sous Win98. Je suis donc revenu à la casse départ encore un fois.

Tout comme toi, nombreux sont les messages que jai laisser sans jamais avoir de réponse. Même le principal concerné (AL) na jamais oser répondre. Pourquoi ? Je nen sais rien, mais je crois quil ne veut pas se foutre dans la m...

Malheureusement, j`ai dû laisser ce travail de côté pour un certain temps, le temps de régler une autre situation tout aussi complexe que celle des imprimantes.

Entretemps je suis tombé sur de linformation intéressante concernant un autre interface GUI qui semble très intéressante. Je fait présentement des test avec cette dernière. Une fois ces tests terminés je devrai prendre une décision à savoir si je reste avec Fivewin ou non. En passant ce sont des gens de chez toi. Je ne peux révéler le nom du produit sur ce forum, mais si tu me laisse ton E-Mail je te ferai parvenir linformation discrètement.

Mon but est de transféré mes applications en 32Bits. Jusquà présent je me suis cogné le nez à de nombreux obstacles. Même si ont dit que FWH na pas les problèmes de Fivewin, je ny crois pas. Le peu de test que jai fait avec FWH ont été aussi pénible qu`avec Fivewin. La syntax nèst pas mieux, la documentation non plus et toutes les fonctions qui ne fonctiones pas bien sous Fivewin ne fonctionnent pas plus sous FWH.

Depuis trois ans que jy travaille, la seule solution que je vois en bout de ligne est de réécrire toutes classe de Fivewin. Ce qui ne minteresse pas.
Alors, comme je disais précédemment, je fais présentement des test qui vont peut me faire quitter le monde de Fivewin.

De toute façon, j`en ai raz le bol de me battre avec un language qui ne fonctionne pas à moitié.

Regards,

Gilbert

Gilbert Vaillancourt
turbolog@videotron.ca