Solved

vfp9 print report object only in preivew and only to print if printer prints color

Posted on 2011-02-17
2
391 Views
Last Modified: 2012-05-11
New to the report writer in 9. Need to print a chart only in preview mode only. Or when printed have the chart print only if the printer supports color. Biggest issue, want to see the chart when preview, but when the end user selects print from the toolbar. I don't want the chart to print on paper if the printer does not support color. Using VFP9.0 sp 2. on windows xp.
0
Comment
Question by:kpi_it
2 Comments
 
LVL 29

Accepted Solution

by:
Olaf Doschke earned 500 total points
ID: 34933795
I never did such a report with an optional object in preview but not for printing. In theory reportlistener enables you to create different outputs for preview and output, see OutputType property and OuptputPage() method.

Also see the help topic "Extending Reports at Run Time".

Nevertheless, I'd suggest you do a form showing a chart as a "preview" and two report versions with and wihtout the chart.

In regard to find out, if a printer can print color, I haven't found something helpful, but Windows API should have functions to determine printer settings and capabilities like color printer or b/w.

Bye, Olaf.
0
 

Author Closing Comment

by:kpi_it
ID: 36148689
Not quite what I was looking for but a possible solution never the less.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Can't Build Exe in VFP9 8 361
Shortcut keys don't work in VFP9 program. 14 329
Can a CDX FoxPro file be opened by another application 10 194
VISUAL FOXPRO 2 99
Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
One of the biggest threats in the cyber realm pertains to advanced persistent threats (APTs). This paper is a compare and contrast of Russian and Chinese APT's.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question