Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printer outputs black boxes instead of text
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00587508
Message ID:
00588273
Views:
21
>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.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform