Professional Documents
Culture Documents
79
The file names in the above table may be different according to Report Designer version. For
example, in case of installing Report Designer 5.0u Unicode version, rdview50u.ocx will be
created as a file name of rdwiew50u.ocx.
EXE Viewer and OCX Viewer are different, as for installation and execution module, but
they are the same, as for a report output process.
Refer to Chapter. 8 Interoperating with Web for the details of OCX Viewer.
In order to view a final output while you are editing a report, select File>Preview on Viewer
or click Standard Toolbar>Preview on Viewer( ). The final report output interoperated
with the result data will be executed through Viewer.
The file name of the edited document file in Viewer has .mrd as an extension. If you click a
file with mrd extension, Viewer opens with the file.
80
Report area
You can see a report output in accordance with the defined page size.
Standard toolbar
Status information
Toolbar information
If you move a cursor onto Standard toolbar, a description of corresponding button
will be displayed.
Page
You can see the total number of pages in an output report and the number of pages
on the current window.
Time
You can see system time.
Inquiry Toolbar
If a report has the function of Inquiry Toolbar, it will be created at the right/bottom of
Standard toolbar.
81
82
2. File
2.1. Open/Close
2.1.1. Open
Report Designer Viewer can read files with mrd, mrr, and mrrml formats.
mrd file is a document prepared in Editor and an output is made as the result data are
mapped in the time of executing Viewer.
mrr file is the default save format of a final report output in Viewer.
mrrml file is Miraro 98 report file, in which mrr file is expressed in Markup Language.
2.1.2. Save
You can save a final report in Viewer in use of various types. The followings are its save
formats.
mrr
This is the self-format of Report Designer. The saved mrr file can be opened in Viewer and
Editor only.
mrrml file
mrrml stands for Miraro Markup Language as it is presented as Miraro 98 Document, that is,
mrr format file in Markup Language. mrrml file can be opened /saved in Viewer only.
Text file
Excel file
It is saved in Microsoft Excel 97 format. When you click Save, the following dialog box
appears.
83
When you click Keep the report format, an object is saved as its style or color is preserved
as shown below.
If you do not select Keep the report format, as shown below, the data in a cell of a report is
moved and saved in a cell of the same location in Excel file. However, only the data of a text
may be saved but the line or image of a table may not saved in it.
84
Word file
It is saved in Microsoft Word 97 Format. The matters about report type such as such as
object location, shape and color etc. are preserved and saved as they are.
PowerPoint file
It is saved in Microsoft PowerPoint 97 format. The matters about report type such as object
location, shape and color etc. are preserved and saved as they are.
PDF file
It is saved in PDF format. The matters about report type such as object location, shape and
color etc. are preserved and saved as they are.
Image file
When saving a report, only the specific pages in it will be saved as a file.
Select Current Page or Specific Pages. When you select Current Page, the page showing
on your monitor is saved as a file. When you select Specific Pages, if you enter Page
number or scope with comma(,) as a separator, the input page scope only will be saved.
85
2.4. Print
86
Printer
You can select a printer to use, clicking on Properties will allow you to set the printers
options.
If you check Multi Printer, you can set numbers of printers. Multi Printer Setting dialog box
allows you to select numbers of printers at the same time.
87
Page Scope
Set the number of pages to print. When you print several pages, you can print a report one
by one.
Print Option
Whole
Object only
Objects in the report are printed. Text in table or Text Frame is not printed
Data only
Only text in table or Text Frame is printed. But an object is not printed.
Print Method
You can set Black&White, Middle of Paper(Align the contents of a report in the middle of a
paper), and Double-Sided(Double-Sided Printing) printing function.
Pages in a Side
You can print numbers of pages in a side. 8 pages or less can be printed in a side.
Set to Paper
You can print a page to be fit for a selected paper size in Select Paper Size. And the
page may be enlarged or shrunk.
User Magnification
Regardless of the type of a paper selected, you can print a currently prepared
document with a defined magnification. If you set magnification to 50%, it will be printed
88
89
3. Find
Find what
Direction
If you want to find a string backward direction from a current page, check Backward. If
forward direction, check Forward.
Match case
3.2. Go to Page
90
91
4. View
4.1. Zoom In / Zoon Out
Regardless of a page size, you can see a page in a reduced or magnified view on the screen
by adjusting a zoom ratio. In order to see the full contents of a document or the contents of
one object in detail, you can adjust the zoom ratios. While holding <Ctrl>, if you roll your
mouse wheel, zoom ratios will change.
4.2. Others
Standard Toolbar
Status Bar
If you select View > Tree of Contents/Document List Window, it will be displayed or be
hidden.
92
5. Pop-up Menu
Report Designer Viewer provides pop-up menus. If you click the right button of your mouse
on the report output window, the following pop-up menu appears.
The type of a pop-up menu may be changed according to the characteristics of a report.
When you draw an editable report, Edit mode menu is added. In Edit mode, a variety of
menus for performing an editing function is added to the Pop-up menu.
93
In case you run a chart report through OCX Viewer, if you click the right button of your
mouse on a chart object, Change Chart menu will be added to the pop-up menu. The
Change Chart menu is for showing Chart Edit Toolbar. In EXE Viewer, the pop-up menu is
not necessary because the chart edit tool bar appears when you double click a chart object.
Refer to Appendix IV. RD OCX Method, Property, Event for the details of
ShowPopupMenu(), HidePopupMenu()
94
Refer to Ch 2.7.2 Document for the details of Modify final report or Enable memo on
final report.
In case of checking Modify final report for a report, you can input text into TextFrame /
Table and change TextFrame Properties in Report Designer Viewer.
Select Pop-up menu > TextFrame Properties or Edit Toolbar > TextFrame Properties,
the TextFrame Properties dialog box allows you to change the properties.
95
Enable memo on final report allows you to modify a report. You can add Text Frame, Line,
facet as well as text input into the report. It is also possible to edit the report, such as
moving object, copy, paste, inserting/deleting rows/columns of table.
You can check what kinds of edit function can be performed through Edit Toolbar or Pop-up
menu.
Edit Toolbar
In case of executing a report in which Edit Function is applied, the Edit Mode menu will be
added to the Pop-menu. When you select Edit Mode menu, the report goes into the edit
96
mode. At the moment, the Edit Toolbar appears under the standard Toolbar of Report
Designer Viewer.
When you display the Pop-up menu in, Execution Mode, instead of Edit Mode is added. If
you run the Execution Mode, you cannot edit the report any more and the Toolbar
disappears. At the moment, the edited report is saved as it looks on your screen.
When you execute a report applied the Edit Mode by /reditmode parameter, you can see
the Edit Toolbar as soon as Viewer runs. At the moment, you can edit the report.
Refer to Appendix III. Report Designer parameters for the details of /reditmode.
97
7. Parameter
Parameters allow you to apply external values to a report.
In case that Report Designer Viewer linked with Report Designer Editor, you should input
previously parameters into Enter Parameter dialog File > Enter Parameter Values of
Editor. In case of OCX Viewer, the parameter string is returned to the second parameter of
FileOpen() method to run a report.
98
Rdviewer_u.exe
This is a stand alone Execution Module. This can be interoperated with Report Designer
Editor and can be executed by itself.
Rdviewer50u.ocx
This is an Active X module, executed with embedding to other application programs, such
as Web (explorer), Visual Basic, Delphi and PowerBuilder.
OCX Viewer contains Setup file to distribute reports manually, Cab file to distribute
automatically. Cab file allows you to install automatically it on client systems. However
depends on systems, it cannot be installed automatically or it should not be installed. In this
case, you can install it with Setup.exe manually.
The result of executing a report is just same in both, EXE Viewer or OCX Viewer.
The next clause describes how to execute a report on Web with Internet Explorer (web
browser) embedded OCX viewer.
99
In order to distribute a report, the corresponding client system should have Report Designer
OCX Viewer.
There are two ways to install OCX Viewer.
Usually with Cab file, you can install OCX Viewer to client systems automatically.
As Cab files according to the report type, msxml, pdf, Barcode, Teechart Cab as well as
rdviewer.cab are provided. For example, in case that a report has charts, teechart.cab is
necessary for you to show Chart Area correctly of the report.
Upload the Cab file to Web path that able to access by URL.
There are two kinds of auto installation Cab file as shown below.
Use RD Cab
All files to be installed are compressed as RD Cab file format. Its file size is bigger then
SmartUpdate Cabs. Even if one of compressed files is changed, you need to install all files
again.
When you try to install them on client systems, Authentication window should be appeared.
Without Approval from users, you cannot install OCX Viewer on client systems.
SmartUpdate Cab has special functions that RD Cab has not. SmartUpdate can send only
updated files as compressed files because it manages each file to be installed. And it shows
the status of downloading files to users.
Use RD Cab
In order to upgrade RD OCX, you need to replace Cab File and to modify Version
Information of <OBJECT>Tag CODEBASE for using RD OCX.
Refer to Ch 8.2.1 RD OCX <OBJECT> for the details of modifying Version Information.
100
In order to define <OBJECT> tag for using RD OCX and to execute a report, edit HTML
including script to call RD OCX FileOpen() Method.
Requesting Report
In case that RD OCX is not installed on Client systems, with the information of <OBJECT>
tag, install RD OCX on systems. If the old version is installed already, it is updated to the
new version.
RD OCX requests download mrd file to reporting on web URL that set with the first input
value of FileOpen(),
Executing Report
With mrd file, parameter and data, RD OCX creates a report. At the moment, RD OCX
supports the fast report creation by page unit processing.
The following picture shows Web Reporting is completed by using RD OCX.
101
102
It is necessary to edit msxml 4.0 OBJECT when data source of a report is a XML document.
103
When <Object> tag is defined, always rdviewer50u.cab file should be defined finally.
104
105
Form File
This is a report file to be edit in Editor. Form file is located in Local or on Web path
accessible with URL. FileOpen() Method downloads Report form file on Web path, and
starts reporting. FileOpen() Method can open only one mrd file.
You should define parameters to be used at executing a report. According to the usage, it is
possible to use parameters mixed with other parameters.
Refer to Appendix III. Report Designer Parameter for the details of parameters.
106
provided
Methods or Event allows you to effectively do Web Reporting as you want.
Refer to Appendix IV. RD OCX Method, Attribute, and Event for the details of Usage
of provided Method, Event.
In order to encrypt string, you should use Process Method of RDEnc object. Two input
parameters of Process Method are String to be encrypted and Enckind. Its return value is
encrypted String. Enckind shows Encryption Method. One of values from 0 to 10 is used.
The following is an example for Active Server Page(ASP). In order to do Web Reporting,
RDEnc parameter encrypted with RDEnc is used for calling FileOpen Method.
107
In order to encrypt String, you should use Process Method of Enc object. Two input
parameters of Process Method are String to be encrypted and enckind. Its return value is
encrypted String. enckind shows Encryption Method. One of values from 0 to 10 is used.
The following is an example for Java Server Pages(JSP). In order to do Web Reporting,
parameter encrypted with Enc is used for calling FileOpen Method.
108
109