George,
thanks for the info. Because I need this to change from the default printer it looks like I'm going to have to learn to read the registry from within VFP. Is there any simple way? I understand what I need I'm just not sure how to do it in VFP.
By the way, while looking in WIN.INI I found a section named [PrinterPorts]. It lists each printer, the port and the driver name but without the extension of .DRV. Do you think it would be safe to use this?
John.
>>In Crystal Reports, to change the printer you need to send the function the printer name and port which can come from aprinters() but you also need to send the driver name. I can't find any VFP function that gives it to me. How do I get the name of the driver assoicated with a printer?
>Hi John,
>
>There are two possible sources for this.
>
>The second is the registry. The driver name can be found under HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Environments\Windows 4.0\Drivers. Under this key will be the names of the printers. The driver entry under the printer contains the printer driver name.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn