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!

CR 10 cancel button (X) + SelectionFormula 1

Status
Not open for further replies.

smoky2

Programmer
Jan 31, 2005
10
DE
I am using VB 6 and in the past CR 4.6. So I am new to CR 10. I've two little problems to solve. Who can help me?

1.)After CRViewer1.ViewReport the report is shown. But I can't use the cancel button (X), which is shown left on top.
It is shown but looks like enabled = false.

2.)With CR 4.6 it was possible to filter:

If Antwort = vbYes Then
CrystalReport1.SelectionFormula = "{AbsListe.BlJ} = '" & Bilanzjahr & "' "
End If
How to filter with CR 10?
 
1) The "cancel" button you speak of isn't a cancel button at all. It's used to close any drill-down views or on-demand subreport views. The "main" report cannot be closed using that button.

2) You can still use the syntax you used to alter the record selection formula with, but you need to use a different property:

crRptObj.RecordSelectionFormula = "{AbsListe.BlJ} = '" & Bilanzjahr & "' "

I always suggest that developers who are new to the RDC download the RDC Browser utility. It lays out the object model quite well (it says it's for CR9, but the object models for 9 and 10 are almost identical):

-dave
 
Many Thanks! But now I’ve an additional Question:

My crystal report is integrated at frmMenue.frm (visible = false). If a special report at menue list is asked for (clicked), the blown up crystal report will be shown. At CR 4.6 there was a special cancel button integrated.

My question: Is it possible to integrate a cancel button into CR 10.0.Using the cancel button of frmMenue.frm, the whole program will be cancelled.
 
I think that once the report loading process is started, it can't be cancelled. I could be wrong, of course...

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top