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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing to network printer??? 1

Status
Not open for further replies.

Kbutt

Programmer
Sep 10, 2001
3
CA
I am using fp2.6 (windows). I'm trying to send a report to a network printer (which is not my default printer).

I have tried, SET PRINTER TO \\<machine name> \<printer name> = <dest>, with no luck. The report still goes to the default printer.


Thank you.

 
? What Type Network are you On?
Novell, MicroSoft, Banyan Vine?

The answer to your question will bepend on your network operation System?

Or go look at MicroSoft Knowledge Base Article Q103645 David W. Grewe
Dave@internationalbid.com
 
Kbutt,
Your SET PRINTER solution should work, if your server and printer names (UNC) meet the DOS 8.3 character specs. If there are any embedded spaces or they are longer, then they may not work (one problem with running DOS/Win3.x code in &quot;new&quot; and unplanned for environments).

You may also need to &quot;fix&quot; the FRX file to remove the default printer info. See - &quot;HOWTO: Use the Default Windows Printer in Visual FoxPro&quot; for details. Note: While this says it's for VFP, the same technique works in FPW and FPD.

Rick
 
I use the following Capture statement in a Batch file named &quot;capture.bat&quot; :

capture s=<machine name> q=<printer name> ti=5 noformfeed nb

Then from within FoxPro I issue the command:

!c:\<mydir>\capture.bat

This is done on a Novell network. Works with no problems for me.
 
Thanks to those who have replied to my question earlier.

I am printing this report over a Microsoft network.

The \\<machine name>\ I refer to in my program, is a print server on the network and is not unique to one printer installed on my PC ( I am using several printers from this print server). The \<printer name>\ for the printers being used in the SET PRINTER TO command is unique however. Will the machine name have to be unique for this command to work?

Thanks again.
 
Try next,

Report form yourreport to print prompt noconsole.

to print shows a spool manager printer control where you can select the printer to use with.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top