Message to Badara
Message to Badara
Hi Badara,
I started doing some testing with your Printer functions. It works fine execpt for WinDefPrn(). Works well with 98, 98SE and ME but not for 2000.
Did`nt check XP yet...
When I looked at Windows 2000 register HKEY_CURRENT_CONFIG,
System\CurrentControlSet\Control\Print\Printers has no value in `Default`
So it`s returning nothing. Thus not detecting the default printer.
I will check for XP tonight to see if there is any differences.
I also have another question. Is it possible, from the Windows register, to somehow detect what type of printer it correspond to.
ex.: Laser, InkJet, Dot Matrix or Thermal.
I closely examined the register and could not figure out if this information was present. But I tought it was hidden somewhere esle.
Regards,
Gilbert
I started doing some testing with your Printer functions. It works fine execpt for WinDefPrn(). Works well with 98, 98SE and ME but not for 2000.
Did`nt check XP yet...
When I looked at Windows 2000 register HKEY_CURRENT_CONFIG,
System\CurrentControlSet\Control\Print\Printers has no value in `Default`
So it`s returning nothing. Thus not detecting the default printer.
I will check for XP tonight to see if there is any differences.
I also have another question. Is it possible, from the Windows register, to somehow detect what type of printer it correspond to.
ex.: Laser, InkJet, Dot Matrix or Thermal.
I closely examined the register and could not figure out if this information was present. But I tought it was hidden somewhere esle.
Regards,
Gilbert
Gilbert Vaillancourt
turbolog@videotron.ca
turbolog@videotron.ca
- Badara Thiam
- Posts: 160
- Joined: Tue Oct 18, 2005 10:21 am
- Location: France
- Contact:
Re: Message to Badara
Hi Gilbert,
This greatly interest me.
because i don't use never this information.
please look and note all keys where the printer "My printer" is repertoried,
and look again after set it the default printer under Windows.
You will find something different, after. If yes, change again the default
printer to another, and verify if the new default printer is in the same path
in the Windows 2000 registry.
EveryBody who have another _ greatly help us to definitely solve
printers problems in very little time. Thanks by advance.
Regards,
Badara
[/quote]
Thank you. You are the first returning a problem with.Gilbert wrote:
I started doing some testing with your Printer functions.
This greatly interest me.
I don't remember if i have tested Default printer under XP,It works fine except for WinDefPrn(). Works well with 98, 98SE and ME but not for 2000. Did`nt check XP yet...
because i don't use never this information.
To see if there is anywhere this information in the Windows 2000 registry,
When I looked at Windows 2000 register HKEY_CURRENT_CONFIG,
System\CurrentControlSet\Control\Print\Printers has no value in `Default`
So it`s returning nothing. Thus not detecting the default printer.
I will check for XP tonight to see if there is any differences.
I closely examined the register and could not figure out if this information was present. But I tought it was hidden somewhere esle.
please look and note all keys where the printer "My printer" is repertoried,
and look again after set it the default printer under Windows.
You will find something different, after. If yes, change again the default
printer to another, and verify if the new default printer is in the same path
in the Windows 2000 registry.
EveryBody who have another _ greatly help us to definitely solve
printers problems in very little time. Thanks by advance.
I will see soonI also have another question. Is it possible, from the Windows register, to somehow detect what type of printer it correspond to.
ex.: Laser, InkJet, Dot Matrix or Thermal.
Regards,
Badara
[/quote]
Badara Thiam
http://www.icim.fr
http://www.icim.fr
Hi Badara,
Searching for My Printer did not give any result but...
I did some exhaustive testing using the default printer name and found out that the default when changed was found under
HKEY_CURRENT_USER
Software\Microsoft\Windows NT\Current Version\Windows
`Device` value correspond to the default printer.
I did many changes and found the default printer name at the same place every single time.
When I think of it, it make sense. Since the default printer is not define globaly (like Windows 98) but by active user it is normal to find it under CURRENT_USER.
I will do some testing under Windows 2000 as soon as I can and let you know about my finding.
Can you to confirm if I`m right or not.
Regards[/u]
Searching for My Printer did not give any result but...
I did some exhaustive testing using the default printer name and found out that the default when changed was found under
HKEY_CURRENT_USER
Software\Microsoft\Windows NT\Current Version\Windows
`Device` value correspond to the default printer.
I did many changes and found the default printer name at the same place every single time.
When I think of it, it make sense. Since the default printer is not define globaly (like Windows 98) but by active user it is normal to find it under CURRENT_USER.
I will do some testing under Windows 2000 as soon as I can and let you know about my finding.
Can you to confirm if I`m right or not.
Regards[/u]
Gilbert Vaillancourt
turbolog@videotron.ca
turbolog@videotron.ca
- Badara Thiam
- Posts: 160
- Joined: Tue Oct 18, 2005 10:21 am
- Location: France
- Contact:
Hi Gilbert,
Yesterday i seek in XP registry but not found, and today
you give me the right way !
I confirm this work under XP.
I shall put a new upgrade today in "Printer functions" thread.
Merci.
Regardes,
Yesterday i seek in XP registry but not found, and today
you give me the right way !
I confirm this work under XP.
I shall put a new upgrade today in "Printer functions" thread.
Merci.
Regardes,
Badara Thiam
http://www.icim.fr
http://www.icim.fr
Ho Badara,
I did more research & testing today. What I fiind out on XP worked well on 2000 but not on XP. Still will search for an answer and let you know later on.
I did more research & testing today. What I fiind out on XP worked well on 2000 but not on XP. Still will search for an answer and let you know later on.
Gilbert Vaillancourt
turbolog@videotron.ca
turbolog@videotron.ca
Hi Barada,
I did more searching, specialy in XP registers, and find out that there is two places were available printers can be found:
For two shared printers installed on a station running Windows 98:
HKEY_LOCAL_MACHINE\system\CurrentControlSet\COntrol\Print\Printers
and
For two shared printers installed on a station running Windows 2000:
HKEY_CURRENT_USER\Printers\Connections
Seems that shared printers from 98 technologie are stored elsewhere than for NT technologie. Is it possible for you to confirm my findings ?
Also discovered that under XP it is possible to retreive printers capabilities directly from the registers.
These capabilities are:
printBinNames Array of paper bins
printCollate Binary of collate type
printDuplexSupport Binary of type of duplex
printMaxResolutionSupported Binary of maximum resolution
printMediaSupported Array of paper sizes
printOrientationSupported Array of orientations
They can be found under:
For two shared printers installed on a station running Windows 98:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Print\Printers\<PRINTERNAME>\DsDriver
and
For two shared printers installed on a station running Windows 2000:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Print\Providers\LanMan Print Services\Servers\<SERVERNAME>\Printers<PRINTERNAME>\DsDriver
Is it also possible for you to confirm these findings ?
In the later <SERVERNAME> can be anything depending on wich server we are attached to. Is it possible, from the register, to retreive the server to wich a station is attached to ?
I also would like Antonio to get invole in this thread. It would be most helpfull.
Regards,
I did more searching, specialy in XP registers, and find out that there is two places were available printers can be found:
For two shared printers installed on a station running Windows 98:
HKEY_LOCAL_MACHINE\system\CurrentControlSet\COntrol\Print\Printers
and
For two shared printers installed on a station running Windows 2000:
HKEY_CURRENT_USER\Printers\Connections
Seems that shared printers from 98 technologie are stored elsewhere than for NT technologie. Is it possible for you to confirm my findings ?
Also discovered that under XP it is possible to retreive printers capabilities directly from the registers.
These capabilities are:
printBinNames Array of paper bins
printCollate Binary of collate type
printDuplexSupport Binary of type of duplex
printMaxResolutionSupported Binary of maximum resolution
printMediaSupported Array of paper sizes
printOrientationSupported Array of orientations
They can be found under:
For two shared printers installed on a station running Windows 98:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Print\Printers\<PRINTERNAME>\DsDriver
and
For two shared printers installed on a station running Windows 2000:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Print\Providers\LanMan Print Services\Servers\<SERVERNAME>\Printers<PRINTERNAME>\DsDriver
Is it also possible for you to confirm these findings ?
In the later <SERVERNAME> can be anything depending on wich server we are attached to. Is it possible, from the register, to retreive the server to wich a station is attached to ?
I also would like Antonio to get invole in this thread. It would be most helpfull.
Regards,
Gilbert Vaillancourt
turbolog@videotron.ca
turbolog@videotron.ca
Hi Badara,
I did more searching and found out that the printer capabilities available under 2000 and XP cannot be found anywhere in Windows 98.
Could you validate this ?
Regards
I did more searching and found out that the printer capabilities available under 2000 and XP cannot be found anywhere in Windows 98.
Could you validate this ?
Regards
Gilbert Vaillancourt
turbolog@videotron.ca
turbolog@videotron.ca
- Badara Thiam
- Posts: 160
- Joined: Tue Oct 18, 2005 10:21 am
- Location: France
- Contact:
Hi Gilbert,
Sorry, i was not here these days.
I answer you today.
Regards,
Sorry, i was not here these days.
I answer you today.
Regards,
Badara Thiam
http://www.icim.fr
http://www.icim.fr
Hi Barada,
Yesterday, I was talking to one of my friend that is very familliar with API calls. Unfortenatly he doesnt work with FiveWin but he says that all printers informations are available trought API Calls.
He says that trying to retreive this information from the register is a difficult task and he strongly suggested to forget the Windows register.
So, after talking to him, I downloaded API Guide and start investigating. I found out that all available printers under Windows 98, ME, 20, XP etc. is effectively retreivable from a few API Calls.
The only problem is that API Calls are made though DLL32 Class and I`m not familiar with it yet. I started a new thread on this subject, but have no reply yet.
I will try out some testing and let you know as I move along.
Regards,
Yesterday, I was talking to one of my friend that is very familliar with API calls. Unfortenatly he doesnt work with FiveWin but he says that all printers informations are available trought API Calls.
He says that trying to retreive this information from the register is a difficult task and he strongly suggested to forget the Windows register.
So, after talking to him, I downloaded API Guide and start investigating. I found out that all available printers under Windows 98, ME, 20, XP etc. is effectively retreivable from a few API Calls.
The only problem is that API Calls are made though DLL32 Class and I`m not familiar with it yet. I started a new thread on this subject, but have no reply yet.
I will try out some testing and let you know as I move along.
Regards,
Gilbert Vaillancourt
turbolog@videotron.ca
turbolog@videotron.ca
- Badara Thiam
- Posts: 160
- Joined: Tue Oct 18, 2005 10:21 am
- Location: France
- Contact:
Gilbert,
1 - There is not the information needed
2 - The datas are not upgraded (or deleted )
when i delete the printer driver.
There is more way where this function search.
but for XP. The key for w98 is not complete for me. It stop to :
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion
in "Print system function" thread.
into a clipper usable format. Or other, i don't know.
More than 2 places, but there is some place where :Gilbert wrote:Hi Barada,
I did more searching, specialy in XP registers, and find out that there is two places were available printers can be found:
1 - There is not the information needed
2 - The datas are not upgraded (or deleted )
when i delete the printer driver.
Yes, but have you tested my last upgrade off WinGetPrn() and others ?
For two shared printers installed on a station running Windows 98:
HKEY_LOCAL_MACHINE\system\CurrentControlSet\COntrol\Print\Printers
and
For two shared printers installed on a station running Windows 2000:
HKEY_CURRENT_USER\Printers\Connections
Seems that shared printers from 98 technologie are stored elsewhere than for NT technologie. Is it possible for you to confirm my findings ?
There is more way where this function search.
I have upgrade WinGetPrn() to retrieve with the key you give for 2000,
Also discovered that under XP it is possible to retreive printers capabilities directly from the registers.
These capabilities are:
printBinNames Array of paper bins
printCollate Binary of collate type
printDuplexSupport Binary of type of duplex
printMaxResolutionSupported Binary of maximum resolution
printMediaSupported Array of paper sizes
printOrientationSupported Array of orientations
They can be found under:
For two shared printers installed on a station running Windows 98:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Print\Printers\<PRINTERNAME>\DsDriver
and
For two shared printers installed on a station running Windows 2000:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Print\Providers\LanMan Print Services\Servers\<SERVERNAME>\Printers<PRINTERNAME>\DsDriver
Is it also possible for you to confirm these findings ?
but for XP. The key for w98 is not complete for me. It stop to :
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion
This seem the case for the printers servers. I have put it in the upgrade,
In the later <SERVERNAME> can be anything depending on wich server we are attached to. Is it possible, from the register, to retreive the server to wich a station is attached to ?
in "Print system function" thread.
Yes, he can perhaps help to translate binary data
I also would like Antonio to get invole in this thread. It would be most helpfull.
into a clipper usable format. Or other, i don't know.
Badara Thiam
http://www.icim.fr
http://www.icim.fr
- Badara Thiam
- Posts: 160
- Joined: Tue Oct 18, 2005 10:21 am
- Location: France
- Contact:
I don't know exactly, because there is informationsGilbert wrote:Hi Badara,
I did more searching and found out that the printer capabilities available under 2000 and XP cannot be found anywhere in Windows 98.
Could you validate this ?
in binary datas than i can't analyse.
For sample, i have created there is many months this function
for w98, and i have not finished because this line :
cDevMode := oReg:Get("Default DevMode", "")
can't work with binary datas. I forgot this work.
Code: Select all
******************
FUNCTION WinDevMode(cNomImpr)
******************
* Retourne le contenu DevMode en allant le chercher dans le registre Windows
* (regedit.exe)
* Inutilisée pour le moment (conversion en données compréhensibles à faire
* pour le contenu récupéré )
LOCAL cDevMode := ""
LOCAL oReg := TReg32():New(HKEY_LOCAL_MACHINE,;
"System\CurrentControlSet\Control\Print\Printers" + STRTRAN(cNomImpr, "", ","))
IF oReg:nError = 0
cDevMode := oReg:Get("Default DevMode", "")
ENDIF
oReg:Close()
oReg := NIL
RETURN cDevMode
Badara Thiam
http://www.icim.fr
http://www.icim.fr