Hi All, (and problems printing:)

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: Hi All, (and problems printing:)

Post by Roberto Lopez »

Roberto Lopez wrote: I'm trying to print in network printers from Windows 7 machines.

The program simply stop responding and the most amazing thing, is that the entire system stop responding too.

I've tested from two different (brand new) Windows 7 PCs and with different networked printers with the same results.
Well... I've managed to isolate the problem.

The command I've used initially was:

SELECT PRINTER DEFAULT

Then, I've changed to:

SELECT PRINTER DIALOG

And... Voila!... it is working now.

Since the problem arises on Win7 clients only (XP clients of the same network/same printer works fine) it is obviously related to Win7.

SELECT PRINTER DEFAULT gets the printer name from GetDefaultPrinter() function, so, the problem could be that the printer name is incorrectly returned by this function or incorrectly received by _HMG_PRINTER_SetPrinterProperties() (low level C function that handles SELECT PRINTER <cPrinter> | DEFAULT command).

The fact that the printer is a 'network printer' that is directly connected to a switch, could be related to this too and it could be the reason because nobody reported this yet.

I'll still researching...
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Hi All, (and problems printing:)

Post by esgici »

Hi Maestro, welcome back :D

I hope you'll get better success against M$ soon ;)

Many people ( at last personally I am ) hate M$ because this; M$ hate backward compatibility :x

Best regards

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Hi All, (and problems printing:)

Post by mol »

Welcome Back Roberto!
the problem is resolved now, as I see... :P
On my two machines with win'7 (home premium and professional) and printer connected directly to net, everything works ok, but printe name was passed for printing function.

Best regards, Marek
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: Hi All, (and problems printing:)

Post by Roberto Lopez »

mol wrote:Welcome Back Roberto!
the problem is resolved now, as I see... :P
Sadly the users could start to ask why they are prompted for which print to use each time they want to print now...

and more important... I need to satisfy my curiosity :)
mol wrote: On my two machines with win'7 (home premium and professional) and printer connected directly to net, everything works ok, but printe name was passed for printing function.

Best regards, Marek
Thanks for the tip.

I'll test that right now.

And... are the printers HP?

TIA.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: Hi All, (and problems printing:)

Post by Roberto Lopez »

esgici wrote:Hi Maestro, welcome back :D

I hope you'll get better success against M$ soon ;)

Many people ( at last personally I am ) hate M$ because this; M$ hate backward compatibility :x

Best regards

--

Esgici
Well... before blaming our MS folks we must sure that is not our mistake... :)

I'm suspecting about GetDefaultPrinter() function...
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
mol
Posts: 3825
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Hi All, (and problems printing:)

Post by mol »

Roberto Lopez wrote: Sadly the users could start to ask why they are prompted for which print to use each time they want to print now...

and more important... I need to satisfy my curiosity :)

....

And... are the printers HP?

TIA.

It's worldwide problem of hmg application's users... they want to work quickly and effectively :D
My printer is HP... From where did you know :D
best regards, Marek
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: Hi All, (and problems printing:)

Post by Roberto Lopez »

mol wrote:It's worldwide problem of hmg application's users... they want to work quickly and effectively :D
Well... worldwide HMG user can remain cool... I've realized that this is a WIndows 7 'thing' :)

The HMG application is not running locally. It is executed from a shared folder in a file server.

I've done that because, it is used in a lot of networked PCs and updating it could be a true nightmare (I'm making frequent changes to it).

If I copy the app, to a local disk, it prints fine.

So, it appears to be simply a security issue.

The problem is that I've not found yet a way to tell what I want to do to Win7 :)

Someone has any idea?
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
MigSoft
Posts: 79
Joined: Sat Aug 02, 2008 5:51 am
DBs Used: DBF, MySQL, MariaDB, SQLite, PostgreSQL, FireBird
Location: Santiago - Chile
Contact:

Re: Hi All, (and problems printing:)

Post by MigSoft »

Sorry for the delay,

I remember I had problems with that in hbwin, just with getdefaultprinter () was changed by win_PrinterGetDefault (). maybe in a later version solved the problem.

Sometimes the solution can be as simple as: http://www.laurentkempe.com/post/Set-de ... ows-7.aspx
https://SecreLocal.com - One On One Chat - No Verify - Anonymous Sex Dating - Live Local Dating
Post Reply