>>>>I am trying to set the printer to a previously retreived name from getprinter(). When I use the SET PRINTER TO NAME variable - I get a "Error Accessing Printer Spooler" error. I also tried SET PRINTER TO variable, of course that did not work either. This is VFP 3.0
>>>>
>>>>Bryan
>>>
>>>It seems to me that since you select a printer in 'Print Setup' you will print to it (so you don't need SET PRINTER TO...). There is a trick that you should clean up printer table (frx file) from printer name.
>>
>>
>>I can't use printer setup in my app, as I do not have a file menu. I want to store the printer that the user selects to use again next time the app is run.
>
>Use SYS(1037) to bring up Print Setup dialog. Selected once it will not be change until next reselection. BTW I was sure that getprinter() invokes that dialog too.
Yes this does work, but I need to save the printer the user has choosen, and use it next time they run the app, without having to do a sys(1037) again. I am able to get the printer nam and save it. I just can't set the printer back to it later without user intervention (via sys(1037) for example)
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only