Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object Reference in VB
Message
From
02/04/2001 15:08:57
Shane Gilbert
Oklahoma State Department of Education
Norman, Oklahoma, United States
 
 
To
02/04/2001 13:28:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00490916
Message ID:
00491036
Views:
8
I got it to work using a Collection:
Private Sub Class_Initialize()
    Set cReports = New Collection
    cReports.Add rptHTML, "rptHTML"
End Sub

Public Function printReport(reportName As String) As String
    Dim strFileName As String, oDataReport As DataReport
    strFileName = CreateTempFile("rpt")
    'need to set oDataReport equal to reportName object reference
    Set oDataReport = cReports.Item(reportName)
    
    oDataReport.ExportReport rptKeyHTML, strFileName, True, False, rptRangeAllPages
Now all I have to do is add the Datareport and one line of code to add it to the collection. Thanks for your help.
--Shane
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform