>Hi,
>I have a printer on a Terminal services client installed in Windows Server 2003. I can print to it thru the regular Windows print command (File menu, then Print).
>However, when I try to set the printer in Foxpro, using SET PRINTER TO NAME //Servername/printername, it hangs for a few seconds and then returns an error msg "Error accessing printer spooler".
>FYI, I already set sharing permissions on the server's Windows/system32/spool directory, and I turned off all client firewalls (remember I can print when using the menu: File/Print command in any programs, including VFP). However, I need to code the printer selection without the user selecting.
>
>Can anyone help?
>Thanks,
>Allen
If it prints correctly from VFP itself, then probably you have 'dirty' frx file. Make sure that Tag,Tag2 fields are empty, and Expr field doesn't have printer specific data.
Edward Pikman
Independent Consultant