>My VFP program has been working fine with an Okidata 320 printer for years under Win95,98,NT. I use generic text driver and tell it no ff, continuous forms.
>BUT, using same code in Win 2000, and telling it's driver no FF, continuous forms... shoots a FF at the beginning of the printout.
>
>I SET PRINTER OFF, then SET PRINTER TO NAME "Invoices" (matches the printer name in Win 2000)
>Then SET PRINTER ON
>When I issue the first ESC command, it form feeds. (as in ??? CHR(27) )
>
>I've tried everything i can to prevent this, with no luck.
>
>If I DON'T use the ESC code to set it to 12cpi, etc, it seems to work ok.
I figure you can't do that for that one machine - it would probably mess up printing on the others. You could check the setup of the printer - though it's been some five years since my last contact with OKI dotmatrices - and see if it uses standard ESC/P or some IBM or self-emulation mode. Try to set it to the same as the other printers are. Try to swap printers. If nothing else works, install a standard ESC/P driver instead of whatever MS thought fitted OKI best.
HTH