Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving default per report
Message
From
24/02/1998 16:10:04
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00080834
Message ID:
00080918
Views:
35
>>>How would I go about saving a default printer for each report in VFP5a(without prompting on every print)? I have an exe residing on a network drive that many different users will be running on different PC's. My reports are in private datasessions. I have tried using the sys() function to set default then use set('Printer',2) to store the value, but they are different.
>>>Basically, what is the best way to have it allow a user to select where each report is to print to once and not have to bother with it again.(And allow a different user to have different defaults)
>>>
>>>TIA
>>>Bill
>>
>>If all your printers are of the same (compatible) type, you could implement following:
>>1. Your main app will actually REPORT FORM to FILE ... , creating these files in spearate folders (one for each printer).
>>2. Another small server app will work on background checking for files and COPY FILE to particular printer (depending on folder).
>>3. Each user will store/retrieve default folder paths in local config table.
>
>Hi Ed,
>
>Regarding number 2, what would be an example of the syntax for COPY FILE to a specific printer? If this is using REPORT FORM to FILE and not ASCII, this would work great for a setup of printing reports to files and then running nightly print routine for pending print jobs. TIA

COPY FILE (cFilename) TO lpt1:
will print in LPT1:, etc., also you can use printer names, e.g.
COPY FILE (cFilename) TO \\nyserver1\hp4plus
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform