I am using VB6 withe Crystal8. To get the report to print to the printer I am using the report.Printout
Which works fine for simple reports.. But we have some reports that we pass the Parameters from VB into Crystal using
Report1.ParameterFields.Item(1).ClearCurrentValueAndRange
Report1.ParameterFields.Item(1).AddCurrentValue Passedfield
And others we pass the selectionformula into using:
report1.RecordSelectionFormula = "..select statement..."
Although these statements work when building with the Crystal preview form they seem to be being ignored when put with the Report1.PrintOutput Statement & we get the Parameters displaying to prompt the users for the data it is missing.
Does anyone know how to get this combination to work right?
Thanks
Wenda
Which works fine for simple reports.. But we have some reports that we pass the Parameters from VB into Crystal using
Report1.ParameterFields.Item(1).ClearCurrentValueAndRange
Report1.ParameterFields.Item(1).AddCurrentValue Passedfield
And others we pass the selectionformula into using:
report1.RecordSelectionFormula = "..select statement..."
Although these statements work when building with the Crystal preview form they seem to be being ignored when put with the Report1.PrintOutput Statement & we get the Parameters displaying to prompt the users for the data it is missing.
Does anyone know how to get this combination to work right?
Thanks
Wenda