Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Storing printer settings in multi-user environment
Message
 
 
To
14/08/1999 13:00:54
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00252294
Message ID:
00254586
Views:
21
>>My application allows users to specify which printer they want to use for certain reports. ex: Schedules print to one printer and postcards to another printer. Right now I store the Name of the printer in a table and issue SET PRINT TO NAME myPrinter to get the right printer. The problem arises when one user calls the printer OKI and another calls it OKIDATA. Is there a better way to identify these printers? I am going to add a user login with user specific settings, but this is more machine specific. Should I have a separate DBF on each machine that stores machine specific items like printer names? Thanks for your input.
>>
>>Marcus.
> You coulg use GETPRINTER() to get the printer name, make the user select one from the list and store this in your table.
>
>Bernard

Thanks Bernard,
That is actually what I do now. The problem is that GETPRINTER() can return a different name for the same printer depending on which machine you are using. I get OKIDATA on one machine, then overwrite it with OKI when I go to a different machine. Clearly, I need to NOT store this info in a central database file. Someone else recommended using the registry of each machine for this info. Makes sense, but what do you think?

Marcus.
Previous
Reply
Map
View

Click here to load this message in the networking platform