nntp2http.com
Posting
Suche
Optionen
Hilfe & Kontakt

Re: Classi e Report

Von: Alessandro Baraldi (ik2zok@libero.it) [Profil]
Datum: 01.07.2008 08:55
Message-ID: <ff6efcaf-6a76-4e4d-8873-97facb79fe1b@f63g2000hsf.googlegroups.com>
Newsgroup: it.comp.appl.access
On 30 Giu, 16:15, a_a <butteri...@yahoo.it> wrote:
> Voglio associare una classe ad un insieme di report molto simili.
> Invece che scrivere lo stesso codice per ogni report, il codice
> starebbe solo nella classe.
>
> Il generico report nell'evento report open()  crea la classe e chiama
> il make della classe:
>
> 'class ReportDoc
> private withEvents  ReportDoc  as report
>
> Public Sub Make(ByRef rep As Report)
>     Set ReportDoc = rep
>     ReportDoc.OnNoData = "[Event Procedure]"
>     'section(0) is corpo
>     ReportDoc.Section(0).OnFormat = "[Event Procedure]"
> End Sub
>
> Come faccio a intercettare i vari eventi (corpo print/format, piè di
> pagina print/format, intestazione pagina print/format, ecc.) del
> report dalla classe?
> Si può fare?

Certo che si può fare...!

Seleziona nella Combo in alto a SX l'oggetto ReportDoc ed a Sinistra
avrai gli EVENTI...!

Ciao
@Alex

[ Auf dieses Posting antworten ]