Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object Reference in VB
Message
De
02/04/2001 16:21:28
 
 
À
02/04/2001 15:08:57
Shane Gilbert
Oklahoma State Department of Education
Norman, Oklahoma, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00490916
Message ID:
00491070
Vues:
9
Glad you got it working.
And thanks for posting your solution :)

>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.
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform