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

VB6 & CR8 & PrintOut with special needs

Status
Not open for further replies.

wendas

MIS
Apr 20, 2001
92
US
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
 
Never mind, this does work. I just had not quite crossed my i's & dotted my t's..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top