Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printer keeps defaulting to grayscale.

Status
Not open for further replies.

jlbsloan

Programmer
Mar 1, 2001
45
US
when printing bitmaps on a foxpro report the application keeps changing the printer setting to grayscale. Does anyone have any ideas on what is causing this? The code that runs the report is as follows:

report form formname to printer noconsole nooptimize
 
jlbsloan

What kind of printer is it? It may not be VFP's fault, but more either your printer or the the printer driver. Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first
 
I found the solution under a different post. The report stores the default printer info from the machine that you made it on. If it is a laser printer(black and white) then it will set a color printer's setting to grayscale when it is run. Here is the solution if anyone else needs it.

1.open the report in foxpro:
USE REPORTNAME.FRX
2.Locate the record that holds the printer info:
LOCATE FOR Objtype=1 AND Objcode=53
3.Remove the printer settings:
REPLACE Tag WITH ""
REPLACE Tag2 WITH ""
REPLACE Expr WITH ""
4.Close the report:
USE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top