Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printer outputs black boxes instead of text
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00587508
Message ID:
00588273
Vues:
23
>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform