>Hi,
>
>Slightly more information.
>
>The printer does print when using other applications including Word.
>
>However, the printer name that has the problem is appearing twice on an APRINTER command, I do not know why - or if this is symptomatic of the actual problem.
>
>Thanks
>
>Kev
I have encountered this situation. I'm willing to bet that the printer is a network printer and that the share name has a space in it, so the array returned by
APRINTER()
looks like this, assuming that the printer "Laser Printer" is shared under "\\Server\Laser Printer":
Laser Printer \\Server\Laser
Laser Printer Printer
APRINTER()
seems to have problems with spaces in share names. At least that's what it does in VFP5.0 French.
I have not found a way to prevent this behavior (other than to remove the space in the share name). One could always revise the returned array programmatically. However, I suggest using
GETPRINTER()
instead, and store the result. I must admin that I'd rather have a nice combobox with all the printers, but...
Hope this helps!
Sylvain Demers
Sylvain Demers