Académique Documents
Professionnel Documents
Culture Documents
‘Report Designer’
- Part 1. Basic report using database connection
DB - 2
Start Report Designer
Let’s Begin! Please follow the steps below
Click here
DB - 3
Report Designer Editor Layout
Report Designer Editor = Word Processor + SQL
Menu Bar
Tool Bar
Work Area
Project Management
Window
Status Bar
DB - 4
Create a New Report
Create a new report – Menu Bar or Tool Bar
DB - 5
Creating Report Dialog Box
File Definition / Report Form / DB Connection
File Definition
User Define
Create a report by the users’ preference
Wizard
Create a report according to pre-defined steps
Report Type
External Data
Select User Define – Table Form - ADO
FILE / XMLFILE
DB - 6
New Report
New Page on Work Area / Menu Activated
General Steps of
Creating Reports
2. Data Fetch
Create a report
according to steps above.
DB - 7
Drawing Report Form
Create objects – Text Frame, Table
1. Select an object to be
inserted
DB - 8
Drawing Report Form
Input text – Title, Header
Input Text
Title
1. Place a cursor where
Header you want to type in.
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.
DB - 9
Drawing Report Form
Edit Form
Selection Mode
Middle Alignment
Font Type
Center Alignment
DB - 10
Drawing Report Form
Edit Form
• Header Section
Header of a Table
• Repetition Section
Automatic Repetition Row
according to data
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
2. Select OLE DB Provider for ODBC Drivers 3. Use Data Source Name – Select M2Soft_e
DB - 13
Data Fetch
Select ‘Query Definition’ from Menu Bar
DB - 14
Data Fetch
Create a short SQL by using the Query Wizard
1. Select Table – ‘From’ Section 2. Select Column – ‘Select’ Section 3. Select Sorting – ‘Order By’ Section
DB - 15
Data Fetch
Verification of SQL and Viewing Record
SQL Result
DB - 16
Connect Data to the Form
Select ‘Connect to Dataset’ from Menu Bar
DB - 17
Connect Data to the Form
‘Connect to Dataset’ Dialog Box
DB - 18
Connect Data to the Form
Connect Data to the Form – 2 methods to connect.
DB - 19
Final Form - Basic
Final Form
Run Viewer
Run Viewer
DB - 20
Viewer Result
Result at Viewer
DB - 21
Memo
Memo
DB - 22
How to make a report using
‘Report Designer’
- Part2. Basic Report using File Connection
(Data File: All csv type Stream. txt, Web Script Language (e.g. asp, jsp, etc.) stream, ...)
File - 2
Start Report Designer
Let’s Begin! Please follow the steps below.
Click here
File - 3
Report Designer Editor Layout
Report Designer Editor = Word Processor + Data
Menu Bar
Tool Bar
Work Area
Project Management
Window
Status Bar
File - 4
Create a New Report
Create a new report – Menu Bar or Tool Bar
File - 5
Create a New Report Dialog Box
File Definition / Report Form / DB Connection
File Definition
User Define
Create a report by users’ preference
Wizard
Create a report according to pre-defined steps
Report Type
External Data
Select User Define – Table Form - File
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
Create a report
according to steps above.
File - 7
Creating Report Form
Create objects – Text Frame, Table
File - 8
Creating Report Form
Input text – Title, Header
Input Text
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.
File - 9
Drawing Report Form
Edit Form
Selection Mode
Middle Alignment
Font Type
Center Alignment
File - 10
Drawing Report Form
Edit Form
• Header Section
Header of a Table
• Repetition Section
Automatic Repetition Row
according to data
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
1. Local .txt file 2. FTP Server .txt file 3. Web Server .jsp file
File - 13
Data Fetch
Data File
Field Delimiter
File - 14
Data Fetch
Field Definition 1
1. Select ‘Field Definition’ Tab 2. Type in ‘Field delimiter’ and click Add 3. Edit Field Definition
•To use a data file, repeat above field definition steps for
each fields.
File - 15
Data Fetch
Field Definition 2
File - 16
Connect Data to the Form
Select ‘Connect to Dataset’ from Menu Bar
File - 17
Connect Data to the Form
Connect to Dataset Dialog Box
File - 18
Connect Data to the Form
Connect Data to the Form – 2 methods to connect
File - 19
Final Form - Basic
Final Form
Run Viewer
File - 20
Viewer Result
Result at Viewer
File - 21
How to make a report using
‘Report Designer’
- Part 3. Editing the report created
Sample Form
Use Form File created in Part1 & Part2 (using Database, Data Stream, XML File)
Form to create
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
Preparing summary :
BASIC - 4
Function 1 – Data Operation
Operation SaleAmount(SaleQuantity * SaleAmount)
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
BASIC - 5
Function 1 – Data Operation
Operation SaleAmount(SaleQuantity * SaleAmount) (Continue…)
SaleQuantity * SaleAmount
BASIC - 6
Function 1 – Data Operation
Operation SaleAmount(SaleQuantity * SaleAmount) – result
Next practice:
How to change font attribute
and color by condition
(when SaleAmount > 100)
BASIC - 7
Function 2 – Using ‘preparing summary’
Set print attributes by Sale Amount 1
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
Function 2 – Using ‘preparing summary’
Set print attributes by Sale Amount 2 - Result
Next practice :
If change only cell of Quantity,
use changeattr() instead of
changerowattr( )
BASIC - 9
Function 3 – subsum/total sum by ‘preparing summary’
Sub sum/total sum – sum by date 1
BASIC - 10
Function 3 – subsum/total sum by ‘preparing summary’
Sub sum/total sum – sum by date 2
2. preparing summary – set operation to get total sum by sum() in preparing summary
3. summary condition – select by SaleDate condition in ‘by field values’
sum(SaleQuantity * SaleAmount)
BASIC - 11
Function 3 – subsum/total sum by ‘preparing summary’
Sub sum/total sum – sum by date - Result
Sum by SaleDate
Next practice:
How to show sum by page
and total sum
BASIC - 12
Function 3 – subsum/total sum by ‘preparing summary’
Sub sum / total sum – Result sum by page and total sum
BASIC - 13
Function 3 – subsum/total sum by ‘preparing summary’
Sub sum / total sum – Result of sum by page and total sum
1st page • • •
Sum by
SaleDate
Sum by page
Total sum
BASIC - 14
Function4 – Text format
Text in sum/total sum 1
Merge cells
BASIC - 15
Function4 – Text format
Text in sum/total sum 2
BASIC - 16
Function4 – Text format
Text in sum/total sum 3
Text format
Edition
BASIC - 17
Function4 – Text format
Text in sum/total sum - Result
1st page • • •
BASIC - 18
Funtion5 – operation repetition data
Editing repetition of data – ‘merge cell’ / ‘use only once’
BASIC - 19
Funtion5 – operation repetition data
Editing repetition of data – Result of using ‘Merge cell’
Next practice:
How to break page by a specific
condition?
BASIC - 20
Function6 - Conditional Page Break
To break page by a specific condition
BASIC - 21
Funtion6 - Conditional Page Break
To break page by specification condition - Result
1st page
2nd page 3rd page • • •
BASIC - 22
Function7 – Set Table Attribute
Set Table Attribute
‘Table-Set Table Attribute’ can give options to number of repetition by page (control number of Record by page),
Cross-tab, table as multi level , draw blanks.
BASIC - 23
Function7 - Set Table Attribute
Set Table Attribute
BASIC - 24
Function7 - Set Table Attribute
Set Table Attribute - Result
1st page
2nd page • • •
• • • last page
BASIC - 25
Funtion8 - Detail option of summary section
Inserting a sum after blanks
BASIC - 26
Funtion8 - Detail option of summary section
Inserting a sum after blanks - Result
1st page
3rd page • • •
• • • last page
BASIC - 27
Summary – Form Editing
How to edit a form with Report Designer
Actual form to be made in a project might be more complex than example forms shown above
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
1 2Data
3Data
4
Form Edition Form
5
Creation Definition Connection (Menu/Function) Completed
Copyright ⓒ 2005 by M2Soft Co., Ltd. All rights reserved.
BASIC - 28
How to create a Report using
‘Report Designer’
-Part 4. Operating Report Designer with Web
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 - Sample Source 1
Basic - Definitions
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
Web Reporting - Sample Source 1
Basic - HTML Source
// RD OCX
// Definitions
// Auto-installation/auto-upgrade is supported
Web - 6
Web Reporting - Sample Source 1
Basic – Output Screen
Web - 7
Web Reporting - Sample Source 2
Advanced 1 - Definitions
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
Web Reporting - Sample Source 2
Advanced 1 - HTML Source
Web - 9
Web Reporting - Sample Source 2
Advanced 1 – Output Screen
Web - 10
Web Reporting - Sample Source 3
Advanced 2 - Definitions
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
Web Reporting - Sample Source 3
Advanced 2 - HTML Source 1 (Some parts are omitted)
// Organize
// components of
// menu to
replace // the
original RD
// OCX toolbar
Web - 12
Web Reporting - Sample Source 3
Advanced 2 - HTML Source 2 (Some parts are omitted)
Web - 13
Web Reporting - Sample Source 3
Output Screen of HTML Source 3
Web - 14
Web Reporting - Parameter Delivery
Parameter Delivering Method – By /rp
(Classifies the values of parameters by the delivered order)
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 Reporting - Parameter Delivery 1
Parameter Delivery (By /rp) – Query Definition
Web - 16
Web Reporting - Parameter Delivery 1
Parameter Delivery (By /rp) - WEB Source
// $1 $2 ...
Web - 17
Web Reporting - Parameter Delivery 2
Parameter Delivery 2 (By /rv) – Query Definition
Web - 18
Web Reporting - Parameter Delivery 2
Parameter Delivery 2 (By /rv) - WEB Source
Web - 19
Applied Cases
Applied Screen on WEB
Web - 20
Applied Cases
Source Code (JSP)
Web - 21
Memo
Memo
Web - 22