Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Printer to Command error
Message
 
 
À
27/03/2005 09:47:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
00999329
Message ID:
00999340
Vues:
19
See comments inline

>SET PRINTER TO NAME
>
>From the VFP9 Help file:
>
>TO [DEFAULT | NAME WindowsPrinterName]
>
>
>Sends printer output to the default Windows printer or to a specific Windows printer.
>Note:
>Windows printer names are stored in the Win.ini file.

>
>This last line is a load of crap.
>
>I have checked my Win.ini both on my local computer and at work (XP OS) as well as on WIN2003 Server (Terminal Services) and there is NO mention of the printer name in the WIN.INI
>
>GETPRINTER() gets the list from the registry but win.ini?



It's help error. The Win.ini was used in Win98 and earlier but not under WinNT and later.



Also if the printer info is not stored in the report, how then does one get the report to print duplex when the printer supports that mode without force setting the printer?
>
>I have saved a report without the printer settings and all that is saved is:
>ORIENTATION=1
>PAPERSIZE=9
>COLOR=2
>
>Where is the duplex info if I need to print this way?


Apparently Vfp Team desided that DUPLEX=N setting is printer related not report related. You can add DUPLEX=2 later programmaticaly.


>And with the setting on:
>
>DRIVER=winspool
>DEVICE=Ricoh RX25443
>OUTPUT=USB001
>ORIENTATION=1
>PAPERSIZE=9
>COPIES=1
>DEFAULTSOURCE=1
>PRINTQUALITY=600
>COLOR=2
>DUPLEX=2
>COLLATE=1
>
>However now info is stored in TAG and TAG2 fields as well.
>
If I remove this and keep the settings in EXPR will those settings work?


Yes, it should work but you will have to remove at least 3 first printer related lines
DRIVER=winspool
DEVICE=Ricoh RX25443
OUTPUT=USB001
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform