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

Data report - show method

Status
Not open for further replies.

jaha

Programmer
Jan 7, 2003
1
BA
I have created User Control, that, among others, also has the property: PRINTset that in appropriate formats is set as the relevant Data Report. Within the User Control code I can not envoke the method Show (it's not available) in order to show that report on the screen. Print Report and Export Report are available and work OK.

....
Private mPRINTset As DataReport
....
Public Property Get PRINTset() As DataReport
Set PRINTset = mPRINTset
End Property

Public Property Let PRINTset(ByVal vNewValue As DataReport)
Set mPRINTset = vNewValue
End Property
.....
mPRINTset.ExportReport ' That work! Ok.
mPRINTset.PrintReport ' That work! Ok.
mPRINTset.Show ' Doesn't work! Why??
....
 
Hi friend

Set mPRINTset.DataSource = RsTemp
mPRINTset.Show vbModal
Set mPRINTset = Nothing

'You must specify your record set of ADODB. Rstemp is the record set of mine.

If mprintset is your datareport. Then use this way. Hope fully this will work.

Best of luck

srinivas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top