>My program user picks up Windows printer name.
>This printer may me connected to LPT or COM
>port with or without spooler or it may be a network printer.
>However, Windows Generic / Text Only printer driver is always used.
>
>I need to send control codes directly to this printer.
>Is there a generic way to do this?
The most generic would be the ??? command, which sends a raw stream to the currently selected print device in VFP, but I've had amazingly poor results with serial devices that required bidirectional interaction, and there's almost no way of bypassing some spooler functionality at the server end on a network device short of writing device drivers, since you only have access to the published share and that won't give you raw port control, but probably will permit uninterpreted byte streams to be sent as discrete print jobs. I haven't used it, but you might want to look at the raw pointer driver VCX in the downloads area; I don't know