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

Chart - Black & White/Colour - setting dynamically

Status
Not open for further replies.

Eddie1979

Programmer
Oct 7, 2004
8
GB
I have a Crystal Report (v9) which includes some charts, called by a VB app which collects and passes the parameters. I can set the charts to black and white or colour at design time, but I need a way of setting this at run time.

If I create a report with 2 embedded subreports (one in colour, the other in B&W) is it possible to suppress an object (such as a subreport) using formulas? i.e. the VB app passes a boolean variable to the report, and the report uses this variable to suppress one of the two subreports.

Has anyone come across something similar? It is important in this case to have both colour and Black & White as options, as the reports could be printed out on any kind of printer.

Many thanks,
Edward. :)
 
You would need to use a Parameter rather than a formula.
You could then conditionally suppress the section holding each subreport dependent on the user input to the Parameter.

The Param could have two Default values eg B&W or Colour.

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top