PDA

Click to See Complete Forum and Search --> : Crystal report formulas


nicholaschin
Oct 17th, 2005, 03:01 AM
hi there, i'm new in VB programming.
currently i'm working on a program that call a crystal report and generate report from a .rpt file
i check my .rpt file is ready and no error
how i define the CrystalReport.Formulas()?
after that, what is the means for CrystalReport.SelectionFormula?
and what is the differents?
cos although i define both formula already
but wen going to the part CrystalReport.action
will having error : 20510:Invalid formula name error.. :sick:
then the report is empty , no data for this selection :cry:
please advice..thanks

Hack
Oct 17th, 2005, 06:04 AM
Moved to reporting section.

Asgorath
Oct 17th, 2005, 08:17 AM
Formulas are part of report
this is a sample formula

{factura.preco} + ({factura.preco} * {factura.desconto} / 100)

Use SelectionFormula when you want to filter the information on the report using sql :

{factura.preco} > 100


Regards
Jorge