Solved

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

Posted on 2011-02-17
2
365 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
Comment Utility
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
Comment Utility
Not quite what I was looking for but a possible solution never the less.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
A procedure for exporting installed hotfix details of remote computers using powershell
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now