Download as pdf or txt
Download as pdf or txt
You are on page 1of 17

8/16/2019 Report designer Manual - 12.

Chapter 3

Chapter 3 . Report Design er 5.0u Tip

FAQ's &Useful Tip for Report Designer 5.0u


This Chapter summarizes the useful tips for Report Design er 5.0u through Q&A. The
questions are categorized into Create Report, View, Save and Print in each case.

1. Create Report

Q. Is it possible to create a table for Screen View, a table for Print or a table for Save as
Excel separately?

A. Yes. The shape of a report format may differ slightly according to the use of a table such
as Screen View, Print or Save as Excel. In this case, both a table for Screen View and a
table for Print(or a table for Save as Excel) should be drawn and then they should be
assigned as Background Object through Properties > Body Object Properties . And, the
table for viewing should be assigned for Exception Object for Printing Out or Exception
Object for Saving Excel . And, the table to printing or Save as Excel should be assigned for
Exception Object for Displaying. In this manner, you can create each table for Screen
View, Print or Save as Excel separately.

Q. Can a specific table be used for Repeated Table in a report in which the CrossTab is
used?

A. Yes. If CrossTab is checked in Table Document Report, all of tables on a report are
drawn as they have CrossTab properties. In case of creating multiple tables, if you want to
use a specific table for Repeated Table, not for CrossTab Table, you can assign the
corresponding table for Repeated Table by selecting Set as Repetit ion Table check box in
Table > Set Table Properties dialog box.

Q. What is the easy way to make a report for printing in Giro paper?

A. It is possible, by using Report Design er Viewer, to print a report in a specific Print Form
Paper (Giro paper, Payroll receipt layout etc.). If you use the image scanned by Report
Designer Editor for a background image, after you scan a Print Form Paper at the rate of
100%, it may be easier to create a report. As a Print Form image can be displayed on the
Create Report screen, it is much easier to insert a desired value into a specific location. And,
if you assign a scanned image for Background Object and Exception Object for Print ing

http://slidepdf.com/reader/full/report-designer-manual-12chapter-3 1/17
8/16/2019 Report designer Manual - 12.Chapter 3

http://slidepdf.com/reader/full/report-designer-manual-12chapter-3 2/17
8/16/2019 Report designer Manual - 12.Chapter 3

Chapter 3 . Report Design er 5.0u Tip

See Chapter 1 Using Report Designer Editor - 5.2.2.4 Dynamic query creation for
the detail of Dynamic Query creation function .

Q. Is it possible to refer to the value which is transferred from a script in Hyperlink dialog
box to /rp parameter?

A. Yes. If you refer to the value transferred from Script to /rp parameter, in case of using a
script in Properties > HyperLink Properties dialog box, it is desirable to use it in the same
form as :($1) as the same goes for referring to Field name of main query . For example, as
for Drilldown function, if you transfer a parameter value in a subform file, input a script as
follows.

Even if you can refer to the entry value of a parameter by using a function,
getparam(“$1”). However, it is recommended to use a form of :($1) rather than getparam()
function

Q. Is possible to assign a simplified name to a field in use of Summary of Database > Map
DataSet dialog box?

A. Yes. For example, to summarize


DailySalesFigure.SalesQuantity*DailySalesFigure.SalesPrice on Database > Map
Dataset dialog box by using Summary Method and to make total by using sum() Summary
Method from the corresponding value, usually enter as
sum(DailySalesFigure.SalesQuantity*DailySalesFigure.SalesPrice) . In this case, it is
clear that the long contents of the summary are not easy to be recognized.

But, if you use User Defined Field , a simple expression can be made . If a simple name for
corresponding summary on As si gn Vari able Tab is input, after making a summary on
Prepare Summ ary tab of Map Dataset dialog box, the corresponding name becomes the
name of User Defined Field of the summary. From the above
DailySalesFigure.SalesQuantity*DailySalesCredit.SalesPrice summary, if Amount is
input for User Define Field name, sum(Amount) can be input and used in case of figuring

83

http://slidepdf.com/reader/full/report-designer-manual-12chapter-3 3/17
8/16/2019 Report designer Manual - 12.Chapter 3

Chapter 3. Repor t Designer 5.0u Tip

out a sum by using sum() function.

cf. This function can not be performed in the reports using CrossTab because of the
characteristics of CrossTab table.

Q. Is it possible to print the line of Repetition Section according to a condition?

A. Yes. Table > Line > Set Repetiti on/Summary Sectio n Li ne Properties function should
be used to make the line of repetition section not to be displayed, and Table > Matrix > Add
Summary Section function should be used to add summary section. And, it is desirable to
set the condition, in which the line of repetition section is intended to be displayed, for the
Summary Conditi on on summary section, through Database > Map Dataset dialog box,
(for example, it will be the case in which a specific field value is changed.) and to make
Prepare Summary tab empty. If summary contents does not exist on summary section,
summary section is added as a line of a table, not its column.

For the details of Set Repetition/Summary Section Line Properties method, refer to
Chapter 1 Using Report Designer Edito r - 6.5.7 Set Repetition /Summary Secti on Line
Properties. And, for the details of Summary Condition tab of Map Dataset dialog box, refer
to Chapte r 1 Using Report Designer Editor - 5.8.4 Summary Condit ion tab .

84

http://slidepdf.com/reader/full/report-designer-manual-12chapter-3 4/17
8/16/2019 Report designer Manual - 12.Chapter 3

Chapter 3 . Report Design er 5.0u Tip

Q. Is it possible to make a report with the Master>Detail(or Main – Sub) structure? What is
the highest level for it?

A. Yes. It is possible if you design a TableForm report with theSubpage. In the time of
designing the report in use of editor, if you refer to the Main Query Field Name in the Sub
Query definiti on , you can perform it in a form of : (Main Query Field Name) . In the time of
execution, subquery per Main Query is executed to create a report. To build Main - Sub
related Report over 3 level of depth, use Sub Report method. The step is free from restraint
and refer to Chapter 1 Using Report Designer Editor - 8.16 Sub Report Pages.

Q. Can an image file be brought from Web URL when executing a report?

A. Yes. It is possible to assign Web URL to a parameter of Loadimage() summary


functions. For the details of Loadimage() summary functions, refer to the Appendix 1
Report Designer Summary .

Q. One record is displayed on one page. How multiple records can be displayed on one
page?

A. Check the File > Document properties whether report type is General document or
Table doc ument .

As for General Doc ument , one record is applied to one page. To view the multiple records
on the page repeatedly, it is required to change the report type into Table doc ument .

As for Table Document , it is required to view multiple records on the page repeatedly. But,
as for Table document using Subpage, sub query records are displayed on Repeated Table
with the Subpage Object property. One main query record is mapped in the whole Subpage.
So, as for the Table document with a SubPage, in case of mapping the data in the Repeated
table, it should be defined as Sub query.

85

http://slidepdf.com/reader/full/report-designer-manual-12chapter-3 5/17
8/16/2019 Report designer Manual - 12.Chapter 3

Chapter 3. Repor t Designer 5.0u Tip

Q. Even if page connection option is used from Subpage Table document, the page
connection is not successful. What is the solution for it?

A. To connect the front page to the next page, all of objects designed in the next page
should be entered into the front page. For example, if the repeated table is located on the top
of next page and the Text Frame object is located on its bottom part, the next page cannot be
connected to the front page. By moving the Text Frame located in the bottom of a page to the
upper part or adding the subpage newly, the Text Frame object should be moved to the
location.

Q. Is it possible to copy a specific string by blocking it after running a report?

A. Yes. The Report Designer Viewer can be run in Execution Mode or Edit Mode . And,
copying a string is possible in Edit mode basically. To copy String on Execution Mode,
/rbrowsingopt [1] parameter should be used. For the details of /rbrowsingopt parameter,
refer to the contents of Appendix 3 Repo rt Desi gner Parameter Descr ip ti on.

Q. As for File Access Method Report, can its field value include the Newline?

A. Yes. It is possible if VARCHAR is assigned for a field type in a field definition.

Q. When using IIF() and SUM() summary function for summing up, what should be
considered?

A. To use IIF() and SUM() summary function and do a sum in summary section,
summary function should be used in its outer part. It makes little difference for the case of
SUM()

using Count() summary function instead of SUM() summary function. For the details of IIF()
summary function, refer to the Appendix 1 Report Designer Summary - IIF().

sum(if(Separator==1, Credits, 0)) // Correct use

iif(Separator==1, sum(Credits), 0) // Incorrect use

86

http://slidepdf.com/reader/full/report-designer-manual-12chapter-3 6/17
8/16/2019 Report designer Manual - 12.Chapter 3

Chapter 3 . Report Design er 5.0u Tip

Q. When editing a table on Editor, can the entire size of a Table be fixed?

A. Yes. It is possible to fix the entire size of every table within the document if checking
Table > Table Protect ion menu item.

Q. In case the contents to be applied to a field are so much, how can they be moved to the
next page?

A. It is required to assign MemoObject to the field. For the detailed features, See the
Chapter 1 Using Report Designer Editor - 8.2 Text Frame Properties .

Q. The name of a field, which is displayed on the Field List in Database > Map Dataset
dialog box, is not normal. What is the reason for it?

A. To check the query statement, display Database > Define Query dialog box. And, each
column of SELECT section is displayed on the field list of Database > Map Dataset dialog
box. However, in some case, the name of a column can not be brought if it is not simple
column name.

In this case, if AS delimiter is used on SQL statement to redefine Column name or a check is
made for Bring c olumn name by executing q uery on Database > Define Query dialog
box, the name of a column can be gotten normally.

Q. Can the line properties of a repeated section be changed in Table Document Report
according to the condition? For example, if a report is for Sales amount by each region , is
it possible to draw a bold solid line when the name of a region is changed?

A. Yes. Add Summary Sect ion and assi gn Summar y Condit ion, but make Prepare
Summary tab empty . If so, ,only the line of summary section is printed as the row of
summary section is not viewed, in case required conditions are satisfied.

87

http://slidepdf.com/reader/full/report-designer-manual-12chapter-3 7/17
8/16/2019 Report designer Manual - 12.Chapter 3

Chapter 3. Repor t Designer 5.0u Tip

Q. When designing Table Document Report to use Subpage, what should be done to see
other Subpage field?

A. The MainQuery field in each SubPage and the SubQuery field on the page can be seen.
Accordingly, it is desirable that the field to be seen in multiple pages is made as MainQuery
field. Otherwise, it is another solution to use summary function, s etglobal() or getglobal() . In
other words, it is possible to save the value by using a summary function, setglobal() in the
summary section of previous Subpage and see the value by using a summary function,
getglobal() on the corresponding SubPage. But, the next page can see the value in the
previous page, however, the previous page cannot see the value in the next page.

Q. Can 2 or more Repeated Tables to show separate data be used on one page?

A. Yes. It is possible if you design a Table Document report to use SubPage. Define query,
on each subpage, and map data by drawing a repetition table. To view each table in a page,
set Properties > Connect Page option . For the detailed features, See Chapter 1 Usin g
Report Designer Editor - 8.13 Connect Page opti on.

Q. Is it possible to display zero(0) on the cell, in which data cannot be mapped, as for
CrossTab report?

A. Yes. It is possible if you input zero(0) character on the cell when designing a report. If a
report is executed, zero(0) character will be displayed on the cell in which data cannot be not
mapped. If a character other than 0 is input, the corresponding character will be displayed.

88

http://slidepdf.com/reader/full/report-designer-manual-12chapter-3 8/17
8/16/2019 Report designer Manual - 12.Chapter 3

Chapter 3 . Report Design er 5.0u Tip

2. View Report

Q. As for Inquiry Toolbar, can the contents of the second Inquiry ComboBox be set to be
subordinate to selection conditions of the first Inquiry ComboBox?

A. Yes. Let us suppose that a location name is entered for inquiry condition through Inquiry
ComboBox in Inquiry Toolbar. If you enter a Country Name for the first inquiry condition,
only County Name subordinate to City Name may be displayed for the second inquiry
condition . If any selection is not made for the first condition, every County Name can be
displayed. In this case, the query definition for bringing the second inquiry condition is as
follows.

SELECT distinct Address.CountryName

FROM Address

#1# WHERE Address.CityName = ‘$1’

For the detailed functions of Inquiry Toolbar, See Chapter 1 Using Report Designer
Editor - 8.19 Edit Inquir y Toolb ar.

Q. Is a function to be capable of aligning specific data supported in view screen of a


report?

A. Yes. If you use script function, SortData() by Run Script in Al ign > HyperLink
Properties dialog box, a function of alignment can be applied. Two parameters are input for
SortData() function. The name of a field to be aligned is input, as for the first parameter. And,
as for the second parameter, 1 is input for ascending alignment, 0 is input for descending
alignment. But, as for SortData() function, only main query field data can be aligned.

For example, to set an alignment in ascending or descending sequence alternately


whenever clicking specific cell of a table, display Al ig nment > HyperLink dialog box after
selecting specific cell of a table. Select Run Script and enter a script as follows.

89

http://slidepdf.com/reader/full/report-designer-manual-12chapter-3 9/17
8/16/2019 Report designer Manual - 12.Chapter 3

Chapter 3. Repor t Designer 5.0u Tip

For the details of the script functions, See Ap pend ix 2 Report Desi gner – Scr ip t
description.

Q. In case FileOpen() Method is executed on Web environment, Mrd file/ Data file cannot
be downloaded. What should be done to solve this?

A. Because of several reasons, Mrd file or Data file cannot be downloaded on Web
environment. Firstly, check the following matters. However, if a satisfactory solution is not
found, please contact M2Soft’s main office.

1. Check if a path of Mrd fi le or Data file is correct or not.

Check if a file path used on FileOpen() Method is correct or not, by entering the path on
Internet Explorer’s address window to check the corresponding file to be downloaded or
displayed regularly in a screen. If a file cannot be brought from Internet Explorer, it cannot

http://slidepdf.com/reader/full/report-designer-manual-12chapter-3 10/17
8/16/2019 Report designer Manual - 12.Chapter 3

Chapter 3 . Report Design er 5.0u Tip

be brought from Report Designer Viewer, either.

2. Delete all t he temporary i nternet f iles and execute a report again.

An abnormal file may be downloaded to a user’s PC due to temporary network problems and
a normal version of corresponding file may not be downloaded newly due to a cashing
function of Internet Explorer. In this case, after executing Delete File(including offline items)
in Tools>Internet Option dialog box of Internet Explorer, execute a report again.

3. Check if a prox y server is used or not.

Even if you use a proxy server, Mrd file or Data file may be downloaded. But, in some cases,
RD OCX Viewer should be set differently according to a type of proxy server. after calling
SetHttpAccessType(0) Method before calling FileOpen() Method on Web environment,
execute a report again. A default value of HttpAccessType as for RD OCX Viewer is 1. In
case of carrying it into execution after adding HttpAccessType=1 to [Environment] section
of rdviewer50_u.ini file, the result may be the same.

Q. Is it possible not to pop up a dialog box when executing a report on web environment?

A. Yes. If you use SetReportDialogInfo() Method of RD OCX Viewer , it is possible to


change the setup of Database Connectio n dialog box or Reporting Status dialog box. And,
if you use SetMessageboxShow() Method, it is possible to control an output of Every All
Error and Alert Information dialog box of RD OCX Viewer .

For the detailed usage of Method, refer to Ap pend ix IV. Report Designer OCX
Method, Properties, Event-4.1.86 SetReportDialogInfo and section 4.1.67
SetMessageboxShow.

Q. Server’s path or parameter value is disclosed through View Source on Web Page. Is a
method to prevent it?

A. Yes. Encoding parameter of FileOpen() Method is possible by using parameter encoding


function in case of using Report Designer Server .

For the details of parameter encoding function, See Chapter 2 Using Report
Designer Viewer - 6.5 Parameter Encry pti on

http://slidepdf.com/reader/full/report-designer-manual-12chapter-3 11/17
8/16/2019 Report designer Manual - 12.Chapter 3

Chapter 3. Repor t Designer 5.0u Tip

Q. Is relative path supported when executing FileOpen() Method on web environment?

A. Yes. Form file path and data file path used in FileOpen() Method can use the relative
path, on the basis of on the basis of the corresponding web page path using FileOpen()
Method. But, the relative path is supported only when RD OCX Viewer is run on Internet
Explorer and it is not supported in case it is run on the other programs. Also, Included File
Path, Sub Report File Path and Image File Path on LoadImage Method etc. to be used in a
report file can use the relative path, on the basis of the corresponding form file path.

Q. When executing a report on how to access Oracle , it is normal in case of a display is


made on Viewer but dll loading error is caused in case of a display is made on Web. What is
the solution?

A. An error is caused because dll module to access Oracle may not be installed in a system.
As dll module for accessing Oracle used on Viewer may be installed during the installation of
Editor, running on Viewer is possible. To solve this problem, download newly RD OCX
Viewer Cab fil e including dll module to access Oracle or reinstall RD OCX Viewer by
executing RD OCX Viewer Setup fi le on OCX folder of RD installation CD.

Contact M2Soft office to receive RD OCX Viewer Cab file including dll module to
access Oracle .

Q. If a report for a method to access XMLFILE is run, errors are caused on some PCs.
What is the solution?

A. To perform XML Reporti ng , MSXML 4.0 Act iveX Contr ol should be installed on a
system. For XML Reporting , not only RD OCX Viewer Cab file but also MSXML 4.0 Cab
file should be distributed.

Q. If there is no data, the message window for ‘Unable to find data' can be made not to be
displayed?

A. Yes. Use SetNoDataDialogInfo() Method

92

http://slidepdf.com/reader/full/report-designer-manual-12chapter-3 12/17
8/16/2019 Report designer Manual - 12.Chapter 3

Chapter 3 . Report Design er 5.0u Tip

For the detailed usage of Method, refer to the contents of corresponding Method 4.1.70
SetNoDataDialogInfo on Append ix IV. Report Designer OCX Method, Properti es, and
Event

Q. The result of a report as for executing a report on Report Design er EXE Viewer is
different from the result of a report as for executing a report on OCX Viewer . What is the
reason?

A. In a normal case, the result of a report as for executing a report on Report Designer
EXE Viewer is the same as the result of a report as for executing a report on OCX Viewer
The version difference between EXE Viewer and OCX Viewer may be the reason. Please
contact M2Soft office if the different result occurs when the versions are the same.

93

http://slidepdf.com/reader/full/report-designer-manual-12chapter-3 13/17
8/16/2019 Report designer Manual - 12.Chapter 3

Chapter 3. Repor t Designer 5.0u Tip

3. Save Report

Q. Can a report be converted into the other file format?

A. Yes. A report can be saved with a format such as Miraero file(*.mrr), Text file(*.txt), Excel
file(*.xls), PDF file(*.pdf), Image file(*.tif, *.bmp, *.gif, *.jpg), PowerPoint file(*.ppt) and Word
file(*.doc) etc. as for Report Desig ner 5.0u Viewer.

Q. A report has been converted into Excel file but its screen is different from the screen to
have been viewed. What is the reason?

A. Report Design er 5.0u provides very high converting ratio when it is converted into
Excel file. But, the following matters should be considered when creating a report, in case a
conversion is made into Excel file in the same way as the screen viewed in Report Designer
Viewer, due to the characteristics of Excel program.

1.Multilayer i s not supported In Excel.

In excel, as Multilayer (to put the other object over an object) is not supported, Text Frame
may not be displayed in case make a report by drawing Text Frame on a table.

2. Background image is not s upported in Excel.

In Excel, background image(an image assigned as background object under transparently


processed table or object) is not supported. Accordingly, in case background image is used,
an image is displayed on the cell when a conversion is made into Excel file. In this case,
background image can be assigned as an exceptional object when it is saved into Excel file.

3. Only 40 colors are supported in Excel.

In Report Designer, all RGB colors are supported but Excel support only 40 colors are
supported in Excel. From this, the colors on inquiry screen may be different from the colors
on Excel. To synchronize the colors between Screen to be viewed and Excel, use only
colors on Excel available in the time of creating a report.

4. An object i s drawn i n a unit o f cell in Excel.

Report Designer draws all of objects with coordinates but Excel draws an object by a unit of
cell. So, when a conversion is made into Excel, a difference may be made between column
and row in due to a little positional difference even if both locations seem to be the same
externally. Using Al ign by obj ect fu ncti on or Properties > Adjust Object Size/Location
will make objects aligned exactly. Also, the number of columns and rows can be minimized
while being converted into Excel.

5. A limit is p laced on the size of Excel wor ksheet.

94

http://slidepdf.com/reader/full/report-designer-manual-12chapter-3 14/17
8/16/2019 Report designer Manual - 12.Chapter 3

Chapter 3 . Report Design er 5.0u Tip

Worksheet used by Excel has a restriction with maximum columns of 65,536 and rows with
256. When the mass reports are converted into Excel, the files are saved as an Excel file in
blocks of 1000 pages . If a report with total 1500 pages is converted into Excel file, 2 Excel
files are created. For a file name, it is saved as a number may be attached next to the
assigned name of a file. For example, if a report with 1500 pages is assigned to be
converted into the name of a file, test.xls , test_01.xls file and test_02.xls file are created.

6. When being converted into Excel file, drawing object i s not converted.

For Report Design er, drawing objects such as Line, Curve , Polyline , Rectangle , Rounded
Rectangle , Circle/Ellipse , Rhombus , Parallelogram , Polygon , Quadratic Prism ,
Cyllinder which are drawn through Draw menu are not converted when a conversion is

made into Excel file.

Q. Is Bookmark available while a report is converted into PDF file?

A. Yes. It is possible to assign the field to be used as Bookmark, when a conversion is


made into PDF file by using Properties > Content Field , in the time of creating a report . As
for a report with an Indexfield assigned when converting a report into PDF file on Report
Designer Viewer, the Indexfield is assigned as Bookmark of PDF file. To create an index
when executing a report, use /rmaketree parameter.

For the details of As si gn Indexf ield, See Chapter 1 Using Report Designer Editor -
8.6 Defini ng cont ent field

Q. When a report is saved as Excel file, it is necessary not to display Excel Option dialog
box and to save it with the current format. What should be done for it?

A. Call SetSaveExcelOption() Method before executing a report. To maintain the current


format, transfer 1 for an argument value.

For the details of Method usage, refer to the contents of corresponding Method 4.1.89
SetSaveExcelOption on Append ix IV. Report Designer OCX Method, Pro perti es, and
Event .

95

http://slidepdf.com/reader/full/report-designer-manual-12chapter-3 15/17
8/16/2019 Report designer Manual - 12.Chapter 3

Chapter 3. Repor t Designer 5.0u Tip

4. Print Report

Q. Can executing a report and printing it be done at the same time?

A. Yes. Use /rop (Open and Print) parameter. To print the multiple reports sequentially, use
/rwait parameter. For the details of parameter, See Appendix III. Repor t Desig ner
parameter .

Q. The bar code of a report printed from Report Designer cannot be recognized by a bar
code reader. What is a solution?

A. At first, confirm the type of bar code created by Report Designer is supported by bar
code reader. If the size of bar code is too small, recognizing ratio from bar code reader is
reduced. Check the size of bar code printed whether it is too small and test after making the
size of bar code bigger.

Q. Page space is different by each page if a report is printed on rolled paper. To


synchronize the space per page, what is a solution?

A. Assign a vertical size of rolled paper by using /rpaperlength parameter. For the details
of /rpaperlength parameter, See Appendix III. Report Des igner parameter .

Q. Can a starting point for a print (coordinate) be adjusted when printing a report in use of a
printer?

A. Yes. It is possible to assign the horizontal or vertical numerical value required for a
change of location in the time of printing by using /rpxpos , /rpypos parameter. For the
details of a parameter, See Appendix III. Repor t Designer param eter .

What should be done to enable a print as Print dialog box is not displayed?
Q.

96

http://slidepdf.com/reader/full/report-designer-manual-12chapter-3 16/17
8/16/2019 Report designer Manual - 12.Chapter 3

Chapter 3 . Report Design er 5.0u Tip

A. Call CMPrint() method in the time of printing. For running a record and starting its print
at the same time, it may be possible to use /rop parameter. For the details of the usage of a
method, See Append ix IV. Repor t Desig ner OCX Method, Pr opert ies, Event .

97

http://slidepdf.com/reader/full/report-designer-manual-12chapter-3 17/17

You might also like