Hi Laura,
While I have never worked with ActiveReports just with CR I assume they
follow the same way of building them. I tell you this cause the explanatio
below is based on CR no on ActiveReports.
CR create a class named like the report you create, if you create a report
named Report1 you will get two files:
Report1.rpt which contains the data needed by the designer and I assume the
report itself, and other named Report1.cs this is the code used in your
program, there you have a Report1 class that derived from Report which is
the abstract base class.
After all this explanation what I think is happening is that you are not
creating a new instance of the report, just using the name of the report
which is a type ( class )
You have to create an instance first:
Report test = new Report1();
Again, remember that the above is valid for CR but I can bet that it's what
you are seeing
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Laura Carr" <an*******@discussions.microsoft.com> wrote in message
news:5b****************************@phx.gbl...
Im sorry im really new to coding and im not 100% sure what
you mean here. How do I create a reference to an instance
of a Test class and where abouts should I do this. Thanks
so much for your help.
-----Original Message-----
Laura Carr <an*******@discussions.microsoft.com> wrote: Test is the name of the Report file (Test.rpx).
Ah. In that case, the problem is that you're trying to
use an instanceproperty as if it were static. You'll need a reference to
an instanceof the Test class.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
.