Using the same report.aspx page for multiple reports?

D

David Lozzi

How can it be done? I was thinking something like this:

Select Case request.querystring("report")
Case "Report1"
dim rpt as new Report1
Case "Report2"
dim rpt as new Report2
and so on....

But VS.NET errors saying rpt is not defined. I have about 14 reports to display and I was hoping to use one aspx file to handle them all. Is this possible???

Thanks!!
 
C

Curt_C [MVP]

is Report1, or Report2, etc, referenced?


--
Curt Christianson
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com


How can it be done? I was thinking something like this:

Select Case request.querystring("report")
Case "Report1"
dim rpt as new Report1
Case "Report2"
dim rpt as new Report2
and so on....

But VS.NET errors saying rpt is not defined. I have about 14 reports to
display and I was hoping to use one aspx file to handle them all. Is this
possible???

Thanks!!
 
C

Clamps

your rpt loses scope



| The as new Report1 Report, etc are existing reports.
|
| --
| David Lozzi
| Web Applications/Network Specialist
| Delphi Technology Solutions, Inc.
| dlozzi(remove-this)@delphi-ts.com
|
|
| "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
| | > is Report1, or Report2, etc, referenced?
| >
| >
| > --
| > Curt Christianson
| > Site: http://www.Darkfalz.com
| > Blog: http://blog.Darkfalz.com
| >
| >
| > | > How can it be done? I was thinking something like this:
| >
| > Select Case request.querystring("report")
| > Case "Report1"
| > dim rpt as new Report1
| > Case "Report2"
| > dim rpt as new Report2
| > and so on....
| >
| > But VS.NET errors saying rpt is not defined. I have about 14 reports to
| > display and I was hoping to use one aspx file to handle them all. Is this
| > possible???
| >
| > Thanks!!
| >
| > --
| > David Lozzi
| > Web Applications/Network Specialist
| > Delphi Technology Solutions, Inc.
| > dlozzi(remove-this)@delphi-ts.com
| >
| >
| >
|
|
 
J

James

dim rpt as object
Select Case request.querystring("report")
Case "Report1"
rpt = new Report1
Case "Report2"
rpt = new Report2
and so on....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top