Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
$$$ and FOPEN('PRN') -- Sometimes they work ??
Message
De
23/06/1999 01:50:22
 
 
À
20/06/1999 16:41:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00231857
Message ID:
00232835
Vues:
19
Hi Ed.

I've implemented a wrapper for the COPYFILE command. (See attached.)

Unfortunately I have not succeeded in writing to a network printer with it.
It seems to work reliably with the local printer.

With LPT1: redirected using the CAPTURE command, I don't get any printer output when I copy to LPT1:

? C0PYF_RS('TESTFILE.TXT','LPT1:',0)

COPYFILE returns '3' in this case.

If I go to DOS and issue the command DIR >PRN I do get output on the network printer. (A dotmatrix ALPS printer).

If I use OpenF('PRN') I can print the same characters to the network printer.

I've also tried COPYF_RS with a network printer specified without success.

What is the best way to find out the \\Server\Printer share name?

Seems unlikely that I implemented the DLL call incorrectly (because it works fine with a local printer both dot-matrix and laser.) But perhaps you will spot something if you have time to review my code.

TIA

Peter


[see separate message for code]
Peter Robinson ** Rodes Design ** Virginia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform