Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2011-02-17
2
Medium Priority
?
428 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 30

Accepted Solution

by:
Olaf Doschke earned 1500 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

Python: Series & Data Frames With Pandas

Learn the basics of Python’s pandas library of series & data frames and how we can use these tools for data manipulation.

Question has a verified solution.

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

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…
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

721 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