Report section in class

B

Belu33fr

Hi,
I dont know if it is the right forum for this question. It is a adp project.
I want gate the event "onformat" of a section of a report for general
purpose. In a new class (TestName) I write this:
dim withevents TestSection as section
public sub InitSection(Value as Section)
set TestSection=Value
end sub

In the report
Dim A as new TestName

in the openevent of the report
set A.InitSection=section(0)

1) In the VBA code editor, I can not access or define the onformat procedure
(onclic, ... are here but not onformat, on onprint and onretreat) but I can
access to the TestSection.onformat and define a name or an internal event
proc.

2) when I call the InitSection, the line "set Test..." returns an error:
this object cannot link this events (or something like)

Where I made wrong? Thanks for your help
 

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

Top