| vbdox-forjp (1.0) | 2010-02-14 16:43 |
| このページは作成中です。後でチェックしてください(訳注:…と原文には書かれています。) |
1.0.34以降のVBDOXでは、レポートマネージャーやパーサを作成する際に、VBDOXのソースは必要としません。1.0以降のVBDOXではコンポーネント構造を持ち、以下のクラスを実装した外部ActiveXモジュールを使用しています。
新しいレポートマネージャの作成はとても簡単です。
例:
report.manager.list=VBDOXEXT.clsReportManager,VBDOXEXT.clsReportManagerEx, VBDOXEXT.clsReportManagerXML,VBDOXSAMPLE.clsSampleReportManager
今すぐに、VBDOXを起動して、あなたのレポートマネージャを選んで、何が起こるかを見ることができます。
以下はサンプルのレポートマネージャのソースコードです。
'*
'* Copyright (c) 2000, 2001 Mihayl Stamenov <michael.stamenov@web.de>
'*
'* This program is free software; you can redistribute it and/or modify
'* it under the terms of the GNU General Public License as published by
'* the Free Software Foundation; either version 2, or (at your option)
'* any later version.
'*
'* This program is distributed in the hope that it will be useful,
'* but WITHOUT ANY WARRANTY; without even the implied warranty of
'* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
'* GNU General Public License for more details.
'*
'* You should have received a copy of the GNU General Public License
'* along with this program; see the file COPYING. If not, write to
'* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
'*
''
' Sample Report Manager for VBDOX (VBDOXSAMPLE.clsSampleReportManager)
'
' @version VBDOX Version: 1.0.34 or later
' @author michael.stamenov
' @date 200011015
Option Explicit
Implements VBDOXCOR.IReportManager
Private dp As VBDOXCOR.IDocParser
Private Sub IReportManager_saveReport(fname As String, group As VBDOXCOR.clsGroup, _
docParser As VBDOXCOR.IDocParser)
Dim prj As VBDOXCOR.clsProject
Dim mdl As VBDOXCOR.clsModule
Dim entry As VBDOXCOR.clsEntry
Dim file As Integer
Set dp = docParser
file = FreeFile
Open fname For Output Access Write As file
' Print group name (may not exist)
Print #file, "<H1>"; group.getName; "</H1>"
For Each prj In group.projects
' Print project name
Print #file, "<H2>"; prj.getName; "</H2>"
For Each mdl In prj.modules
Print #file, "<H3>"; mdl.getName; "</H3>"
Print #file, "<P>"; dp.getModuleDescription(mdl); "</P>"
For Each entry In mdl.entries
Print #file, "<BR/>"; entry.getName; " - "; dp.getDescription(entry)
Next
Next
Next
Close #file
End Sub
' end of file
michael.stamenov@web.de へ連絡してください。
このドキュメントはVODOX(英)のサイトを元に作成しました
[PageInfo]
LastUpdate: 2010-03-14 16:43:32, ModifiedBy: daruma_kyo
[License]
GNU Free Documentation License
[Permissions]
view:all, edit:login users, delete/config:members