Re: NNetcap and windows XP



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.
>


.



Relevant Pages

  • Re: Printing from Windows to a CUPS printer
    ... >> where rita is the server name and epson is the queue on that server and ... determines whether the scheduler will allow new printers ... # default IPP port of 631. ...
    (comp.os.linux.misc)
  • Re: LPR ports
    ... That is certainly a lot of work for configuring a few printers. ... print server boxes and map IP ports off the windows server to these devices. ... location B, one on port 515 forwarding to port 515 on the print server, ...
    (microsoft.public.windows.server.networking)
  • Re: LPR ports
    ... Location B (where the port redirecting is going on) ... to use an alternate port for the second print server device. ... That is certainly a lot of work for configuring a few printers. ...
    (microsoft.public.windows.server.networking)
  • printer properties error
    ... We have printers shared through Win Server 2003. ... I click on Configure Port button, a message popping up - saying "An error ... "An error occurred during port configuration." ...
    (microsoft.public.windows.server.general)
  • RE: Some technical errors
    ... If the SMTP server is not running on port 25 TCP it is not a public ... Manager - Computer Assurance Services BDO Chartered Accountants & ...
    (Security-Basics)