Re: NNetcap and windows XP
- From: "Dave P" <dvs_bis@xxxxxxxxxxxxx>
- Date: Thu, 29 Dec 2005 21:13:56 GMT
what i did too have a netware server and a windows server
i put all my printers on a windows machine
does not have too be a server
and net use lpt# \\machine\sharedPrinter
i did not use any of netwares print utilities...
eventually i got rid of my netware server
for load balancing....its nice too put ur printers on one machine, users on
server, data on another machine
somthing like that....
than you can create your own nncap in the code
either set ports by machine...or in your code
and have nncap just send the port too use
or use swpruncmd too set a net use...
EXAMPLE BELOW
FUNCTION NNETCAP(cLpt,lappend)
if lappend==NIL
lappend:=.f.
endif
swpruncmd("NET USE "+(clpt)+" /DELETE >NULL") // THE NULL makes it not
echo on the screen while swapping
SWPRUNCMD("NET USE "+(cLpt)+" \\sharedmachine\sharedprinter >NULL")
SET(_SET_PRINTFILE,clpt,lappend)
set(_SET_PRINTER,.T.)
SET(_SET_CONSOLE,.f.)
SET(_SET_DEVICE,"PRINTER") //@ say's still echo too monitor
return .t.
SET(_SET_PRINTFILE,"") //CLOSES current lpt port make your own nnetendcap
too or add parameters
too the nNetCap(lptport,lappend) and put the approiate code in the above
function
dave
<mark@xxxxxxxxxxxxxxxxx> wrote in message
news:1135865037.715897.4010@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> The problem is when i use the NNetCapSSF in my program to capture a
> port. If the port I am trying to capture is open the program will hang.
> If out side and before I run my program I capture the port the program
> will print, but with a loot of problems. Such as on a dot-matrix and
> laser printer it will continuously print the same page over and over.
> The dot-matrix some times will not line feed or it will print one line
> on a page and then go to the next.
>
> I have a lot of code using the NNetCapSSF and it works great on DOS and
> 9x computers. I now that the line set printer to lpt1 works on a the xp
> computer. I just don't want to have to create two different sets of
> programs, one for DOS and 9x and the other for XP.
>
.
- References:
- NNetcap and windows XP
- From: mark@xxxxxxxxxxxxxxxxx
- Re: NNetcap and windows XP
- From: Klas Engwall
- Re: NNetcap and windows XP
- From: mark@xxxxxxxxxxxxxxxxx
- NNetcap and windows XP
- Prev by Date: Re: INCLUDE
- Next by Date: Re: NNetcap and windows XP
- Previous by thread: Re: NNetcap and windows XP
- Next by thread: Re: NNetcap and windows XP
- Index(es):
Relevant Pages
|