Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Foxpro 2.6 Printing Directly to a Novell Queue

Status
Not open for further replies.

LesPaulStrat

Programmer
Apr 20, 2001
3
US
How do you print a Fox 2.6 Windows report directly to a Novell print queue.

Just in case you need any of this -

Novell 3.12 (but they do have Novell 4 too)
IBM 2390 Printer
Windows '95 and Windows '98

I tried using GPLIB, but it seems that you need to send the
report to a file first. Besides, I'm sure that it can be done
through a direct print command.

Any help would be appreciated.

Thanks. - I'll be checking back.
 
Before running the application
Run a batch command to redirect the LPT1 to the Queue
The command for that
CAPTURE nb nff au ti=1 Q=MyQueName


To end the capture
ENDCAP ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
 
It has been a while since I did this in Novell, But check out the set printer to command. I remember this command was a stickler for all the rules. Make sure you do everything right. If this does not work, there is a way to change the default printer in the Windows enviroment to a Novel Print queue. Then all you have to do is issue the print command.

SET PRINTER TO
[\\<machine name> \<printer name> = <dest>]
or
SET PRINTER TO
[\\SPOOLER [\N] [\F=<expN>] [\B=<banner>] [\C=<expN>] [\P=<expN>]]
[\S=<server>]
[\Q=<queue>]
\\<machine name>\<printername> = <dest>

The first format of the network SET PRINTER command spools printer output to a network printer. <machine name> is the network name assigned to your workstation. This name is assigned by the network administrator and must be unique. <printer name> is a name assigned to the printer and is also assigned by the network administrator. LPT1, LPT2 or LPT3 is used to identify the destination (<dest>) of the installed printer.
The second format of the network SET PRINTER command is specifically designed for printing under Novell Advanced Netware version 2.00 or later.

\\SPOOLER
Although SPOOLER must be included for compatibility, it is ignored. Any character string can be substituted. When using the options below, don't include any space between the clauses.

\N
Include this clause to suppress printing a banner page (No Banner).

\F = <expN>
This clause specifies the form number <expN> (0 through 255) that the output is printed on. This option is useful for producing different types of printed output, such as checks, invoices, letters, and so on.

\B = <banner>
This clause specifies the heading that is printed on the banner page. <banner> can contain up to 12 characters. The default heading is your network user name.

\C = <expN>
This clause specifies the number of copies (1 through 255) queued to a network printer. The default is 1.

\P = <expN>
This clause specifies the network printer where output is sent. <expN> is a number assigned to the printer by the network. The default is 0.

\S = <server>
This clause specifies the network server to which the printer is attached. <server> shouldn't be a character string (that is, it shouldn't be surrounded by quotation marks).

\Q = <queue>
This clause specifies the queue name assigned to the printer you send output to. <queue> shouldn't be a character string (that is, it shouldn't be surrounded by quotation marks). David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top