Solved

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

Posted on 2011-02-17
2
402 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Annoying text scroll in Textbox 10 105
how to find the name of database in use 5 208
VFP on Windows Server 2 379
Fox pro using the copy command 5 66
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…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…

749 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