Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I pass report names to CR object
Message
De
19/07/2004 09:36:57
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Rapports
Titre:
Can I pass report names to CR object
Divers
Thread ID:
00925729
Message ID:
00925729
Vues:
47
Right now I have something like this:

'Create instance of Display Form
Dim _RepoViewer As New DisplayForm
_RepoViewer.Show()

'-----------------------------------------------
'Crystal Report Variable
Dim oRpt As DeviceList
'Create an instance of the strongly-typed report object
oRpt = New DeviceList
'-----------------------------------------------

'Pass the populated datatable to the report
oRpt.SetDataSource(tblRepoList)

'Set the viewer to the report object to be previewed.
_RepoViewer.CrystalReportViewer1.ReportSource = oRpt

I would like to make this more universal by just passing it the report name. It looks like I need to change

Dim oRpt As DeviceList
oRpt = New DeviceList

into something like

Dim oRpt As myReportName
oRpt = New myReportName

but I don't know how to do this?

Can anyone give me a clue?

Thanks.
Répondre
Fil
Voir

Click here to load this message in the networking platform