Académique Documents
Professionnel Documents
Culture Documents
Report Designer
- Part 1. Basic report using database connection
File Definition
User Define
Report Type
System OS
Table Form
Windows 95 / 98 / ME / 2000 / XP
Database Connection
Sales List
Data Source
M2Soft_e.mdb (Automatically set
when installing RD)
DB - 2
DB - 3
Menu Bar
Tool Bar
Work Area
Project Management
Window
Status Bar
DB - 4
DB - 5
File Definition
User Define
Create a report by the users preference
Wizard
Create a report according to pre-defined steps
Report Type
DB Connection
Databases
External Data
FILE / XMLFILE
Copyright 2005 by M2Soft Co., Ltd. All rights reserved.
DB - 6
New Report
New Page on Work Area / Menu Activated
General Steps of
Creating Reports
1. Drawing Report Form
2. Data Fetch
3. Connect Data to the Form
Create a report
according to steps above.
DB - 7
Table
Text Frame
DB - 8
Input Text
Title
Header
If a cursor is in Selection
mode, only an object will
be selected.
Change to Text Frame
mode or simply double
click on a place where you
want to type in to
enter text correctly.
Copyright 2005 by M2Soft Co., Ltd. All rights reserved.
DB - 9
Selection Mode
Font Type
Middle Alignment
Center Alignment
Font Size
Select Multiple Object by
Shift + Mouse Click
DB - 10
Repetition Section
Blue Line : Above Header Section
Below Repetition Section
DB - 11
Data Fetch
Select Connect Database from Menu Bar
DB - 12
Data Fetch
Connect Database Dialog Box and Database Connection Message
1. Create a Connecting String
5. Confirm Successful
Database Connection
DB - 13
Data Fetch
Select Query Definition from Menu Bar
DB - 14
Data Fetch
Create a short SQL by using the Query Wizard
DB - 15
Data Fetch
Verification of SQL and Viewing Record
SQL Result
DB - 16
DB - 17
Report Form
DB - 18
DB - 19
Run Viewer
Run Viewer
DB - 20
Viewer Result
Result at Viewer
DB - 21
Memo
Memo
DB - 22
File Definition
System OS
User Define
Report Type
Table Form
Windows 95 / 98 / ME / 2000 / XP
Database Connection
Sales List
Choosing a right Report type in Report Designer is
crucial to present data correctly.
File
Data Source
Sale_199802.txt
File - 2
Click here
File - 3
Menu Bar
Tool Bar
Work Area
Project Management
Window
Status Bar
File - 4
File - 5
File Definition
User Define
Create a report by users preference
Wizard
Create a report according to pre-defined steps
Report Type
DB Connection
Database
ADO / RDAGENT / NET
External Data
FILE / XMLFILE
Copyright 2005 by M2Soft Co., Ltd. All rights reserved.
File - 6
New Report
New Page on Work Area / Menu Active
General Steps of
Creating Reports
1. Creating Report Form
2. Data Fetch
3. Connect Data to the Form
Create a report
according to steps above.
File - 7
Table
Text Frame
File - 8
Input Text
1. Place a cursor where
you want to type in
Title
Header
2. Type In
If a cursor is in Selection
mode, only an object will
be selected.
Change to Text Frame
mode or simply double
click on a place where you
want to type in to
enter text correctly.
Copyright 2005 by M2Soft Co., Ltd. All rights reserved.
File - 9
Selection Mode
Font Type
Middle Alignment
Center Alignment
Font Size
Select Multiple Object by
Shift + Mouse Click
File - 10
Repetition Section
Blue Line : Above Header Section
Below Repetition Section
File - 11
Data Fetch
Select File Connection from Menu Bar
File - 12
Data Fetch
Enter a path of a data file to be loaded
File - 13
Data Fetch
Data File
Field Delimiter
Field1 Field2
Field3
Copyright 2005 by M2Soft Co., Ltd. All rights reserved.
File - 14
Data Fetch
Field Definition 1
1. Select Field Definition Tab
File - 15
Data Fetch
Field Definition 2
1. Select Field Definition Tab
File - 16
File - 17
Report Form
File - 18
File - 19
Run Viewer
File - 20
Viewer Result
Result at Viewer
File - 21
System OS
Windows 95 / 98 / ME / 2000 / XP
File Definition
User Define
Form type
Table Form
Sample Form
Use Form File created in Part1 & Part2 (using Database, Data Stream, XML File)
Form to create
Edit the list form using functions and menu
Please refer to the Manual for more details.
BASIC - 2
Edit Form
Data editing and Print editing
Data editing
Perform sub sum/ group sum/ total sum by using a summary functions to Data Source
Print editing
Conditional print control, Cell merge control, show empty form without data, etc.
BASIC - 3
Using function
Add Functions to the form created by previous steps
- sum by date(by customer/product), sum by page, total sum
- Page Break by specific condition ( by SaleDate)
- control number of repetition + draw blanks
Preparing summary :
amount =SaleQuantity * SaleAmount
BASIC - 4
1. Add row after locate SaleQuantity column, Add row by clicking insert right side button
2. Summary check after selecting repetition of row, in connect to dataset dialog box
click summary check box to enable preparing summary tab
Summary
Insert right side
Copyright 2005 by M2Soft Co., Ltd. All rights reserved.
BASIC - 5
SaleQuantity * SaleAmount
BASIC - 6
Next practice:
How to change font attribute
and color by condition
(when SaleAmount > 100)
Copyright 2005 by M2Soft Co., Ltd. All rights reserved.
BASIC - 7
Iif(DaySale.SaleQuantity*DaySale.SaleAmount>100,
changerowattr(DaySale.SaleQuantity*DaySale.SaleAmount, FA@FC, B@255,0,0),
DaySale.SaleQuantity*DaySale.SaleAmount)
Copyright 2005 by M2Soft Co., Ltd. All rights reserved.
BASIC - 8
BASIC - 9
BASIC - 10
sum(SaleQuantity *
SaleAmount)
BASIC - 11
Sum by SaleDate
Next practice:
How to show sum by page
and total sum
Copyright 2005 by M2Soft Co., Ltd. All rights reserved.
BASIC - 12
BASIC - 13
Sum by
SaleDate
Sum by page
Total sum
the last page
Copyright 2005 by M2Soft Co., Ltd. All rights reserved.
BASIC - 14
Merge cells
BASIC - 15
BASIC - 16
Text format
Edition
BASIC - 17
pages
BASIC - 18
BASIC - 19
Next practice:
How to break page by a specific
condition?
Copyright 2005 by M2Soft Co., Ltd. All rights reserved.
BASIC - 20
BASIC - 21
3rd page
BASIC - 22
BASIC - 23
BASIC - 24
BASIC - 25
BASIC - 26
BASIC - 27
Actual form to be made in a project might be more complex than example forms shown above
1. Complex SQL to get desired data sets.
Works fine as long as SQL syntax from the database is correct.
2. Complex form of tables and layout may be used.
Powerful and easy to use Table Editing functions will be useful for users
Just by using the previous steps, users can create most report form they might need.
But Report Designer offers more powerful functions and methods for power users.
Form
Creation
Data
Definition
Data
Form Edition
Connection (Menu/Function)
Form
Completed
BASIC - 28
Form File
Developer creates a form file by Report Designer Editor
The following report is created by choosing database as a report creating method and default
as a report decorating method. Form files which created by Report Designer would have mrd as an extension.
For web reporting, form developer first needs to create a mrd file then upload it to the server (WAS) via FTP.
The mrd file would be called via URL on the web.
Web - 2
Preview
Resulted report by pressing Run Viewer menu from editor
(Screen result by running rdviewer.exe)
The following is a screen shot, running mrd on rdviewer.exe. You can get the same result on the web,
only running on activeX control instead of rdviewer.exe is different.
Web - 3
System Architecture
System Architecture of Report Designer for Web Reporting
Web - 4
Web reporting means showing the produced final report as it is embedded in web browser (IE)
using Report Designer ActiveX control (OCX). (Plug-in Style)
Report Designer ActiveX is defined in an object tag of web source.
Report Designer ActiveX provides about 80 APIs and you may use them by writing you own
codes in JavaScript or VB Script.
Web reporting is defined by FileOpen method and the method takes a mrd file path value and
parameter values of user inquiry conditions as its arguments.
Default output form size is auto-adjusted according to the size of Report Designer ActiveX
control within a web browser.
Web - 5
// RD OCX
// Definitions
// Auto-installation/auto-upgrade is supported
Web - 6
Web - 7
Improving the look and feel of the final output screen provided to end users can be done by
some of properties and methods provided by Report Designer ActiveX.
Web - 8
// additions
Web - 9
Web - 10
Since the top toolbar of Report Designer ActiveX is a bit crude, you can hide it and put nicely
designed customized menu button images to reshape the look and feel of the toolbar.
Web - 11
// Organize
// components of
// menu to
replace // the
original RD
// OCX toolbar
Web - 12
//
//
//
//
Web - 13
Web - 14
You may give various values of parameters as a second argument to the FileOpen method for
such as user inquiry values, printing options or database information.
You can use approximately 100 types of inner classification parameters provided by Report
Designer to classify the values of parameters with different properties. You can use them in
conjunction with others. (Refer to the manual or help for the details of inner classification
parameters)
The following 2 samples demonstrates the two ways of passing user inquiry values to the inner
query of mrd.
- /rp : maps the values of parameters passed by a /rp classification parameter according to the
delivering order
- /rv : maps the names of inner defined variables with the names of parameters passed by a /rv
classification parameter
Copyright 2005 by M2Soft Co., Ltd. All rights reserved.
Web - 15
Web - 16
//
$1
$2
...
Web - 17
Web - 18
Web - 19
Applied Cases
Applied Screen on WEB
Web - 20
Applied Cases
Source Code (JSP)
Web - 21
Memo
Memo
Web - 22