Hi Xavi,
What you say is true even for Clipper programs if there is
some sort of redirector (like Novell's and whatnot),
so you had to do the same trick in Clipper too to make your
app work in every environment, I remember this code from
Phil which flushes printers in an aggressive way:
Set( _SET_PRINTFILE, "LPT3" )
Set( _SET_PRINTFILE, "LPT2" )
Set( _SET_PRINTFILE, "LPT1" )
Set( _SET_PRINTFILE, "" )
These solutions target _no printing_, while Sudip says
he's getting hangs, so maybe he has a different issue,
but for sure SET PRINTER TO must be added before
looking any further.
Brgds,
Viktor
On 2009.06.02., at 14:23, Xavi wrote:
Viktor,
Remember that Clipper running on Xp under WoW and the time of
printing is controlled by the registry variable .-
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WOW\LPT_timeout
= x
But now Harbour in Xp is Win32 and release when you close the print
handler.
This is the importance of SET PRINTER TO as I said in .-
http://lists.harbour-project.org/pipermail/harbour/2009-May/
019603.html
but surely that I not explain me well :'(
--
Xavi
Szakáts Viktor escribió:
Thank you very much. I am now able to run win_prn() :-)
You're welcome.
But I cannot solve my initial problem with simple Clipper type
text printing
with DMP (printer halts).
Here is a sample for it :-
To reduce the problem and sort out Harbour from the equation,
you can try saving the output stream to a file, and send it
to the port directly:
> copy output.txt PRN:
And see if it hangs.
You can then try this (and also your sample) on different
machines/printers because I've seen some antivirus and other
similar packages to mess up the port handling to the point
where they wouldn't work reliably anymore.
To me this issue almost for sure looks like a local problem
and not Harbour bug.
Brgds,
Viktor
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour