User manual LJZSOFT WDREPORTCOM

DON'T FORGET : ALWAYS READ THE USER GUIDE BEFORE BUYING !!!

If this document matches the user guide, instructions manual or user manual, feature sets, schematics you are looking for, download it now. Diplodocs provides you a fast and easy access to the user manual LJZSOFT WDREPORTCOM. We hope that this LJZSOFT WDREPORTCOM user guide will be useful to you.


LJZSOFT WDREPORTCOM : Download the complete user guide (372 Ko)

Manual abstract: user guide LJZSOFT WDREPORTCOM

Detailed instructions for use are in the User's Guide.

[. . . ] WDReportCom User Manual Version 1. 5 2009-08 Copyright© 2007-2009 LJZsoft Corporation All rights reserved Contents CHAPTER 1 INTRODUCTION. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1. 1 OVERVIEW. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1. 2 FEATURES. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 CHAPTER 2 INSTALLATION AND STARTUP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2. 1 SOFTWARE REQUIREMENTS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2. 2 INSTALLING WDREPORTCOM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2. 3 UNINSTALLING WDREPORTCOM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2. 4 WDREPORTCOM. DLL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2. 5 WORDREPORT. EXE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2. 6 RUN-TIME FILES. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 CHAPTER 3 QUICK START. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3. 1 LEARNING HOW TO USE WDREPORTCOM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3. 2 SAMPLE DATABASE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 3. 3 SAMPLES. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3. 4 CREATING A REPORT PROGRAMMATICALLY. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3. 5 CREATING A REPORT WITH WORDREPORT. EXE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 CHAPTER 4 REPORT TEMPLATES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4. 1 ABOUT REPORTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4. 2 ABOUT REPORT TEMPLATES. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4. 3 WORD BASIC CONCEPTS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4. 3. 1 Documents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4. 3. 2 Headers and Footers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4. 3. 3 Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4. 3. 4 Bookmarks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 -I- 4. 3. 5 Page Breaks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4. 3. 6 Graphics and Diagrams. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4. 3. 7 Inline Pictures and Floating Pictures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4. 3. 8 Charts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 4. 3. 9 Formatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 4. 3. 10 Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4. 4 TABLE REPORTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4. 4. 1 About Table Reports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4. 4. 2 Creating a Table for a Fixed Table Report. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4. 4. 3 Creating a Table for a Variable Table Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4. 4. 4 Formatting Cells. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 4. 4. 5 Irregular Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4. 4. 6 Referencing Cells . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4. 4. 7 Referencing Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4. 4. 8 Formatting Cells for Pictures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 4. 5 FORM REPORTS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 4. 5. 1 About Form Reports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 4. 5. 2 Creating Merge Fields or Quote Fields. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 4. 5. 3 Defining Ranges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 4. 5. 4 Formatting Fields for Pictures. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 4. 6 CHARTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 4. 6. 1 About Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 4. 6. 2 Creating a Blank Chart using Microsoft Graph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 4. 6. 3 Creating a Blank Chart using Microsoft Excel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 4. 6. 4 Referencing Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 CHAPTER 5 API REFERENCE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 A. 3 FORMATS FOR DATE/TIME VALUES. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 CHAPTER 10 LICENSE AND SUPPORT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 10. 1 LICENSE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [. . . ] The max nested level WDReportCom supports is 3. Example This example uses GetTableByBookmark method to get the table in the document. Set wdTable = mwdrpt. GetTableByBookmark (wdDoc, "MyTable") 5. 2. 11 GetChartByIndex Method Returns a Word. OLEFormat object that represents the Microsoft Graph chart or Microsoft Excel chart OLE object. Syntax object. GetChartByIndex(Document, Index) - 56 - object Required. For examples, chart 2 is the second chart in the document. Example This example uses GetChartByIndex method to get the object of the first chart in the document. Dim wdDoc As Word. Document Dim wdChartOLE As Word. OLEFormat Dim graChart As Graph. Chart Dim xlWorkbook As Excel. Workbook . . . . . . Set wdChartOLE = mwdrpt. GetChartByIndex(wdDoc, "1") If Left(wdChartOLE. ProgId, 11) = "Excel. Chart" Then Set xlWorkbook = wdChartOLE. object Else Set graChart = wdChartOLE. object End If 5. 2. 12 GetChartByBookmark Method Returns a Word. OLEFormat object that represents the Microsoft Graph chart or Microsoft Excel chart OLE object. Syntax object. GetChartByIndex(Document, Bookmark) - 57 - object Required. A string that represents the name of the bookmark that includes the chart. Example This example uses GetChartByBookmark method to get the object of the chart in the document. Dim wdDoc As Word. Document Dim wdChartOLE As Word. OLEFormat Dim graChart As Graph. Chart Dim xlWorkbook As Excel. Workbook . . . . . . Set wdChartOLE = mwdrpt. GetChartByBookmark(wdDoc, "Chart1") If Left(wdChartOLE. ProgId, 11) = "Excel. Chart" Then Set xlWorkbook = wdChartOLE. object Else Set graChart = wdChartOLE. object End If 5. 3 Events 5. 3. 1 BeforeConnect Event Occurs before a connection starts. Syntax - 58 - Private Sub object_BeforeConnect(UserID As String, Password As String, DataSource As String, Connection As ADODB. Connection) object The object is the WDReport object. A string that represents a data source name for the Example Private Sub mwdrpt_BeforeConnect(UserID As String, Password As String, DataSource As String, Connection As ADODB. Connection) Connection. ConnectionTimeout = 15 Connection. CursorLocation = adUseClient End Sub 5. 3. 2 TemplateOpen Event Occurs when a template document is opened. Syntax Private Sub object_TemplateOpen(ByVal Document As Word. Document) object The object is the WDReport object. Document An object variable that represents the Word. Document object to be opened. Example - 59 - Private Sub mwdrpt_TemplateOpen(ByVal Document As Word. Document) gstrFileName = Document. FullName End Sub 5. 3. 3 ReportComplete Event Occurs when all report generating process is completed. Syntax Private Sub object_ReportComplete(ByVal Document As Word. Document) object The object is the WDReport object. Document An object variable that represents the Word. Document object. Example Private Sub mwdrpt_ReportComplete(ByVal Document As Word. Document) ' Close the document and do not display the report when get errors If mintErrCount > 0 Then Document. Close End If End Sub 5. 3. 4 FunctionBeforeExectue Event Occurs before a function is executed. Syntax Private Sub object_FunctionBeforeExectue(ByVal FunctionNo As String, ByVal FunctionType As Integer, ByVal SQLNo As Long, ByVal SQLText As String) - 60 - object The object is the WDReport object. A string that contains the SQL statement. Example Private Sub mwdrpt_FunctionBeforeExectue(ByVal FunctionNo As String, ByVal FunctionType As Integer, ByVal SQLNo As Long, ByVal SQLText As String) frmWait. lblFunctionNo = FunctionNo frmWait. lblSQLCount = SQLNo End Sub 5. 3. 5 FunctionAfterExectue Event Occurs after a function is executed. Syntax Private Sub object_FunctionAfterExectue(ByVal FunctionNo As String, ByVal FunctionType As Integer, ByVal SQLNo As Long, ByVal ErrObj As ErrObject) object The object is the WDReport object. SQLNo A long that represents the number of SQL statements. ErrObj The Err object. Example Private Sub mwdrpt_FunctionAfterExectue(ByVal FunctionNo As String, ByVal FunctionType As Integer, ByVal SQLNo As Long, ByVal ErrObj As ErrObject) If ErrObj. Number <> 0 Then If FunctionType <> 0 Then 'Ignore errors of EXECSQL MsgBox ErrObj. Description, vbExclamation, App. ProductName mintErrCount = mintErrCount + 1 End If End If End Sub 5. 3. 6 FunctionProgress Event Occurs periodically during a function processing. Syntax Private Sub object_FunctionProgress(ByVal Progress As Long, ByVal RecordCount As Long) object The object is the WDReport object. Progress A long that indicates the number of records that have currently been processed. RecordCount A long that indicates the total number of records. - 62 - Example Private Sub mwdrpt_FunctionProgress(ByVal Progress As Long, ByVal RecordCount As Long) frmWait. lblRecordCnt. Caption = Format(Progress, "#, ##0") & " / " & Format(RecordCount, "#, ##0") End Sub 5. 4 Error Messages The following table lists the trappable errors for the WDReport Object. Value -2147221493 -2147221492 -2147221491 -2147221490 -2147221489 -2147221488 -2147221487 -2147221486 -2147221485 -2147221484 -2147221473 -2147221453 -2147221452 -2147221451 -2147221450 -2147221449 -2147221448 -2147221447 -2147221446 -2147221445 -2147221403 -2147221393 -2147221392 -2147221391 -2147221390 -2147221389 -2147221383 Description The file WrfFileName does not exist. Error in reading the file WrfFileName. " Report template file TemplateFileName does not exist. It is not a valid cell "" for the parameter "CELL". The range or copyrange should be Range. - 63 - -2147221382 Syntax error. Failed to parse grouprange. - 64 - Chapter 6 WRF Files 6. 1 Using WRF files 6. 1. 1 About WRF files Like WDReportGen, WDReportCom also can read a WRF file to generate a report. It contains information such as the name of the report template file, the name of the report file, the name of the log file, data sources, parameters and functions. The WRF file tells WDReportCom how to get data from data sources and how to put data into a report. [. . . ] d dd ddd dddd ddddd Display the day as a number without a leading zero (1 ­ 31). Display the date as a complete date (including day, month, and year), formatted according to your system's short date format setting. dddddd Display a date serial number as a complete date (including day, month, and year) formatted according to the long date setting recognized by your system. aaaa The same as dddd, only it's the localized version of the string. - 120 - w Display the day of the week as a number (1 for Sunday through 7 for Saturday). ww m Display the week of the year as a number (1 ­ 54). [. . . ]

DISCLAIMER TO DOWNLOAD THE USER GUIDE LJZSOFT WDREPORTCOM




Click on "Download the user Manual" at the end of this Contract if you accept its terms, the downloading of the manual LJZSOFT WDREPORTCOM will begin.

 

Copyright © 2015 - manualRetreiver - All Rights Reserved.
Designated trademarks and brands are the property of their respective owners.