aPrinter() function problem
Posted: Tue Jan 12, 2010 10:24 pm
Hi at all,
In a network scenario, I had installed and shared one printer. After some time, I had removed the pc (and the printer) where was installed locally that printer, but I not remove from the panel “Installed printers” on the other pc; on this last pc, in Ms Windows XP Pro, I can see this printer in the panel, but with a message like “can not connect…” (I don’t remember exactly the message in WXp English version).
In this scenario, when I call the function “aPrinters()”, the program display an error (like msgstop) and go in a deadlock state and only with the task manager I can kill the process; I’m sorry, but I can’t include an image of the message and I can’t replicate it, because I’ve removed the printer from the “Installed printers” list and the program works fine. On the other hand I think the problem appear only when the printer state is like showed by that message (not when the printer it’s only turned off).
A little question: I’ve read about some printer functions in “hbwin” contribution library (Harbour 2.0.0). I can call these function after MiniGui “SELECT PRINTER…” command using _HMG_SYSDATA[374] value as reference? Because I’ve create one little printing library (very simple, not like report interpreter) to print out, but I need to know some information; I think about “win_GetDeviceCaps” or “win_GetCharSize” or “win_GetTextSize” included in hbwin library.
Many thanks in advance.
In a network scenario, I had installed and shared one printer. After some time, I had removed the pc (and the printer) where was installed locally that printer, but I not remove from the panel “Installed printers” on the other pc; on this last pc, in Ms Windows XP Pro, I can see this printer in the panel, but with a message like “can not connect…” (I don’t remember exactly the message in WXp English version).
In this scenario, when I call the function “aPrinters()”, the program display an error (like msgstop) and go in a deadlock state and only with the task manager I can kill the process; I’m sorry, but I can’t include an image of the message and I can’t replicate it, because I’ve removed the printer from the “Installed printers” list and the program works fine. On the other hand I think the problem appear only when the printer state is like showed by that message (not when the printer it’s only turned off).
A little question: I’ve read about some printer functions in “hbwin” contribution library (Harbour 2.0.0). I can call these function after MiniGui “SELECT PRINTER…” command using _HMG_SYSDATA[374] value as reference? Because I’ve create one little printing library (very simple, not like report interpreter) to print out, but I need to know some information; I think about “win_GetDeviceCaps” or “win_GetCharSize” or “win_GetTextSize” included in hbwin library.
Many thanks in advance.