Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing to another printer than the default
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00220227
Message ID:
00220318
Vues:
34
>>HI,
>>
>>I'm trying to redirect my printer output to another windows printer.
>> prt=GETPRINTER()
>>Then is set the chosen printer as default
>> SET PRINTER TO NAME &prt
>
>Part of your problem may be here with the use of macro expansion; I'd try:
>
>SET PRINT TO NAME (prt)
>
>>The answer is: Error accessing printer spooler
>>When is replace all the blancs in the printer name, i get no error
>> ex. HP Deskjet 870cxi = HP_Deskjet_870cxi
>>
>>So far it's acceptable.
>>The problem is, the reports are not printer on the selected printer.
>>They are always printed by the default printer.
>>
>>PS: I know the trick
>>
>>USE report.frx
>>and remove all concerning the default printer in the diff. fields.
>>
>>It works, but not allways, and with every report.
>>Any tips ? Solutions ?
>>I use VFP5.0.
>>
>>Tnx
>>Marc

Marc,

Just to reinforce what Ed told you:

lcDatabaseName = "C:\Program files\Infodons\Data\infodons.DBC"
OPEN DATABASE &lcDatabaseName && fails
OPEN DATABASE (lcDataBaseName) && succeeds.

José
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform