Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sys(1037) - printer setup
Message
 
À
15/04/2006 09:26:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
01113870
Message ID:
01114033
Vues:
17
Hi Mark.

What do you mean, "global print setup" ?

If you wish to set the VFP printer for particular report printing session, then you need:
SET PRINTER TO NAME printer_name
and make sure that you do not have any specific printer information in the frx report file fields EXPR, TAG and TAG2.

If you wish to set the Windows default printer, then one of the solutions is:
oWSHNet = CREATEOBJECT('Wscript.Network')
oWSHNet.SetDefaultPrinter('WindowsPrinterName')
Still the printer specific information should be removed from the report frx file.


>Hi all,
>
>need some help here.
>
>I use sys(1037) to let user do the global print setup. i keep this under file/print setup menu. ok but now when user goes to print any report, at this time it doesn not remember the print settings that user did from file\print setup dialog box.
>
>it does remember the printer that u selected there but not any of the additional information such as paper type(A4,letter etc),source(tray1,tray2,automaticaly select) etc
>
>i run all my reports with following command
>REPORT FORM Report1.FRX TO PRINTER PROMPT preview
>
>it works if i change these printer settings from windows control panel\printer settings. but thats now what user wants because that will affect all the other applications too that uses this printer. user want to keep 'automaticaly select' as the source for rest of the application and have 'tray 1' as the source just for my application.
>
>so i think 2 questions there.
>first of all can this be done?
>and if yes does it work on all printer models. we have different modesl of HP laserjet.
>
>is this problem solved in vfp9? thanks so much for help in advance. appreciate your help lot
>
>mark
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform