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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PRINTING COLOR IMAGES AND GET BLACK AND WHITE WITH VISUAL FOXPRO 1

Status
Not open for further replies.

VictorFRodriguez

Programmer
Jan 20, 2001
51
DO
thread184-877591
I have discovered a partial solution to this problem.
Open the report wiriter as you open a dbf file.
Let's say
USE myreport.frx
browse fields expr
You will see somthing like this:
DRIVER=winspool
DEVICE=Bullzip PDF Printer
OUTPUT=BULLZIP
ORIENTATION=0
PAPERSIZE=1
SCALE=100
ASCII=100
COPIES=1
DEFAULTSOURCE=1
PRINTQUALITY=600
COLOR=1
YRESOLUTION=600
TTOPTION=2
COLLATE=1


Change COLOR = 1 to 2
Save the report. That is all
 
Well, or uncheck "save printer environment" and let this setting be under control of the current printer picked by SET PRINTER TO NAME NameOfaWindowsPrinter.

Any embedded information only is good for a client always in the same environment. A report with no specific printer settings, of course, could be printed black&white, if you have set the current printer that way. But that doesn't come as a surprise.

The situation with something like a PDF printer may be a good and valid exception to the rule, but I think most still prefer to use reports without any binding to anything special, as long as it prints fine with usual paper widths. The same report can even run in letter, A4 or legal format as long as you don't use any specifics and I'd always opt for that case, so remove any EXPR settings. or - as it's now simpler - uncheck "Save printer environment", then you neither have Color=1 nor 2 nor 0, the printer settings determine that. That's also what users typically want. They change their printer settings, as they might not have color ink anymore and then don't expect an application or a specific report of it to override that.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top