Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing using the second printer, not the default print
Message
De
06/06/2003 11:13:43
 
 
À
06/06/2003 04:04:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00797067
Message ID:
00797287
Vues:
16
This message has been marked as the solution to the initial question of the thread.
Erik,

Using this method does not require changing the current VFP printer or the Windows default printer.
DECLARE INTEGER CopyFile IN KERNEL32.DLL ;
   STRING @SourceFileName, ;
   STRING @DestFileName, ;
   INTEGER bFailIfExists

lcPrinterName = "\\server1\printer1"  && you can pull this value from 
                                      && the array created with aprinters()
                                      && in your previous thread
copyfile(tempFile, lcPrinterName,0)
More info. from Ed Rauh at How do I copy a file to a printer port FAQ #7817

>Hi,
>I have two printers, "Printer Local" and "Printer Network". the default printer is the "Printer Local". I don't want to set the "Printer Network" as the default printer everytime I'm using my program that prints an invoice.
>Here's the scenario, I use the "Printer Local" to print MS Word documents, so its the default printer.


>TYPE &tempfile TO PRINTER
>
>Thanks!
>
>Erik
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform