I 've just completed the same task and I found that if a font, size and style are not specified as a global or for each line being printed the printer supplies a default. If you care to share a little more complete code snippet I could see if what I did would fix your problem. My last issue is setting the default in the printer to legal, tractor feed, because Windows defaults to manual, letter.
Matthew
***************************************************************************
>I've nearly finished a conversion from 2.6 DOS to VFP. It was supposed to be >middle of the road between "quick and dirty" and full-blown re-write. The idea >was to use VFP forms to make the main data-entry forms pretty, but keep >the "procedural" code as unchanged as possible. (More on that in another >message.)
>This is one of the remaining problems:
>The invoices are printed by an old (almost unchanged) PRG, on pre-printed >tractor-fed dot-matrix forms. This code, when run in Fox 2.6 in a command >prompt window on a WinME computer, prints the invoice as expected. The same >code, run in VFP on the same computer, prints in a different font and is mis->aligned.
>The code is an old-fashioned
>SET DEVICE TO PRINT
>DO WHILE NOT EOF()
> ? and ?? commands
>ENDDO
>SET DEVICE TO SCREEN
>arrangement.
Opportunity is missed by most people beacuse it is dressed in overalls, and looks like work --- Thomas Edison