>I have several legacy reports which were coded in FoxPro 2.5 for DOS in PRG
>files (as opposed to using the report designer). These reports employ the
>SET DEVICE TO PRINTER command to output all the @ ... SAY commands to the
>printer. For some reason, when I attempt to print these reports from within
>my VFP 6.0 application, all I get as output is black boxes where the data
>should be. If I redirect the report to a file, everything prints to the file
>just fine. What am I overlooking.
There is a KB article that explains this: I had gotten bitten by it myself before finding the article. The problem is that the printer is picking up the screen's (or form's) BackColor. Do something like:
lnOldColor = _SCREEN.BackColor
_SCREEN.LockScreen = .T.
_SCREEN.BackColor = RGB(255,255,255)
DO report.prg
_SCREEN.BackColor = lnOldColor
_SCREEN.LockScreen = .F.