report designer manual - 12.chapter 3

Upload: euelvis1045

Post on 06-Jul-2018

217 views

Category:

Documents


1 download

TRANSCRIPT

  • 8/16/2019 Report designer Manual - 12.Chapter 3

    1/17

    Chapter 3 . Report Designer 5.0u Tip

    8

    FAQ's &Useful Tip for Report Designer 5.0uThis Chapter summarizes the useful tips for Report Designer 5.0u through Q&A. Thequestions 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 asExcel separately?

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

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

    A. Yes. If CrossTab is checked in Table Document Report, all of tables on a report aredrawn as they have CrossTab properties. In case of creating multiple tables, if you want touse a specific table for Repeated Table, not for CrossTab Table, you can assign thecorresponding table for Repeated Table by selecting Set as Repetit ion Table check box inTable > 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 Designer Viewer, to print a report in a specific Print FormPaper (Giro paper, Payroll receipt layout etc.). If you use the image scanned by ReportDesigner Editor for a background image, after you scan a Print Form Paper at the rate of100%, it may be easier to create a report. As a Print Form image can be displayed on theCreate 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

  • 8/16/2019 Report designer Manual - 12.Chapter 3

    2/17

  • 8/16/2019 Report designer Manual - 12.Chapter 3

    3/17

    Chapter 3 . Report Designer 5.0u Tip

    83

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

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

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

    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 > MapDataSet dialog box?

    A. Yes. For example, to summarizeDailySalesFigure.SalesQuantity*DailySalesFigure.SalesPrice on Database > MapDataset dialog box by using Summary Method and to make total by using sum() SummaryMethod from the corresponding value, usually enter assum(DailySalesFigure.SalesQuantity*DailySalesFigure.SalesPrice) . In this case, it isclear 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 forcorresponding summary on Assign Variable Tab is input, after making a summary onPrepare Summary tab of Map Dataset dialog box, the corresponding name becomes thename of User Defined Field of the summary. From the aboveDailySalesFigure.SalesQuantity*DailySalesCredit.SalesPrice summary, if Amount isinput for User Define Field name, sum(Amount) can be input and used in case of figuring

  • 8/16/2019 Report designer Manual - 12.Chapter 3

    4/17

    Chapter 3. Repor t Designer 5.0u Tip

    84

    out a sum by using sum() function.

    cf. This function can not be performed in the reports using CrossTab because of thecharacteristics 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 Section Line Properties function shouldbe used to make the line of repetition section not to be displayed, and Table > Matrix > AddSummary Section function should be used to add summary section. And, it is desirable toset the condition, in which the line of repetition section is intended to be displayed, for theSummary Condition 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 makePrepare 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 toChapter 1 Using Report Designer Editor - 6.5.7 Set Repetition/Summary Section LineProperties. And, for the details of Summary Condition tab of Map Dataset dialog box, referto Chapte r 1 Using Report Designer Editor - 5.8.4 Summary Condit ion tab .

  • 8/16/2019 Report designer Manual - 12.Chapter 3

    5/17

    Chapter 3 . Report Designer 5.0u Tip

    85

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

    A. Yes. It is possible if you design a TableForm report with theSubpage. In the time ofdesigning the report in use of editor, if you refer to the Main Query Field Name in the SubQuery definiti on , you can perform it in a form of : (Main Query Field Name) . In the time ofexecution, subquery per Main Query is executed to create a report. To build Main - Subrelated 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() summaryfunctions. For the details of Loadimage() summary functions, refer to the Appendix 1Report Designer Summary .

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

    A. Check the File > Document properties whether report type is General document orTable document .

    As for General Document , one record is applied to one page. To view the multiple recordson the page repeatedly, it is required to change the report type into Table document .

    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 Repeatedtable, it should be defined as Sub query.

  • 8/16/2019 Report designer Manual - 12.Chapter 3

    6/17

    Chapter 3. Repor t Designer 5.0u Tip

    86

    Q. Even if page connection option is used from Subpage Table document, the pageconnection 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 pageshould be entered into the front page. For example, if the repeated table is located on the topof next page and the Text Frame object is located on its bottom part, the next page cannot beconnected to the front page. By moving the Text Frame located in the bottom of a page to theupper part or adding the subpage newly, the Text Frame object should be moved to thelocation.

    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 Report Designer Parameter Descr ip tion.

    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 beconsidered?

    A. To use IIF() and SUM() summary function and do a sum in summary section, SUM()summary function should be used in its outer part. It makes little difference for the case ofusing 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

  • 8/16/2019 Report designer Manual - 12.Chapter 3

    7/17

    Chapter 3 . Report Designer 5.0u Tip

    87

    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 checkingTable > 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 thenext page?

    A. It is required to assign MemoObject to the field. For the detailed features, See theChapter 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, eachcolumn of SELECT section is displayed on the field list of Database > Map Dataset dialogbox. However, in some case, the name of a column can not be brought if it is not simplecolumn name.

    In this case, if AS delimiter is used on SQL statement to redefine Column name or a check ismade for Bring column name by executing query on Database > Define Query dialogbox, the name of a column can be gotten normally.

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

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

  • 8/16/2019 Report designer Manual - 12.Chapter 3

    8/17

    Chapter 3. Repor t Designer 5.0u Tip

    88

    Q. When designing Table Document Report to use Subpage, what should be done to seeother 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 MainQueryfield. Otherwise, it is another solution to use summary function, setglobal() or getglobal() . Inother words, it is possible to save the value by using a summary function, setglobal() in thesummary 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 theprevious 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 UsingReport Designer Editor - 8.13 Connect Page option.

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

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

  • 8/16/2019 Report designer Manual - 12.Chapter 3

    9/17

    Chapter 3 . Report Designer 5.0u Tip

    89

    2. View Report

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

    A. Yes. Let us suppose that a location name is entered for inquiry condition through InquiryComboBox 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 inquirycondition . If any selection is not made for the first condition, every County Name can bedisplayed. In this case, the query definition for bringing the second inquiry condition is asfollows.

    SELECT distinct Address.CountryName

    FROM Address

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

    For the detailed functions of Inquiry Toolbar, See Chapter 1 Using Report DesignerEditor - 8.19 Edit Inquiry Toolbar.

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

    A. Yes. If you use script function, SortData() by Run Script in Al ign > HyperLinkProperties dialog box, a function of alignment can be applied. Two parameters are input forSortData() 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 descendingalignment. But, as for SortData() function, only main query field data can be aligned.

    For example, to set an alignment in ascending or descending sequence alternatelywhenever clicking specific cell of a table, display Al ignment > HyperLink dialog box afterselecting specific cell of a table. Select Run Script and enter a script as follows.

  • 8/16/2019 Report designer Manual - 12.Chapter 3

    10/17

    Chapter 3. Repor t Designer 5.0u Tip

    9

    For the details of the script functions, See Append ix 2 Report Designer – Scr ip tdescription.

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

    A. Because of several reasons, Mrd file or Data file cannot be downloaded on Webenvironment. Firstly, check the following matters. However, if a satisfactory solution is notfound, 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 onInternet 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

  • 8/16/2019 Report designer Manual - 12.Chapter 3

    11/17

    Chapter 3 . Report Designer 5.0u Tip

    9

    be brought from Report Designer Viewer, either.

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

    An abnormal file may be downloaded to a user’s PC due to temporary network problems anda normal version of corresponding file may not be downloaded newly due to a cashingfunction 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 callingSetHttpAccessType(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. Incase of carrying it into execution after adding HttpAccessType=1 to [Environment] sectionof 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 tochange the setup of Database Connection dialog box or Reporting Status dialog box. And,if you use SetMessageboxShow() Method, it is possible to control an output of Every AllError and Alert Information dialog box of RD OCX Viewer .

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

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

    A. Yes. Encoding parameter of FileOpen() Method is possible by using parameter encodingfunction in case of using Report Designer Server .

    For the details of parameter encoding function, See Chapter 2 Using ReportDesigner Viewer - 6.5 Parameter Encryption

  • 8/16/2019 Report designer Manual - 12.Chapter 3

    12/17

    Chapter 3. Repor t Designer 5.0u Tip

    92

    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 relativepath, 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 InternetExplorer and it is not supported in case it is run on the other programs. Also, Included FilePath, Sub Report File Path and Image File Path on LoadImage Method etc. to be used in areport 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 ismade on Viewer but dll loading error is caused in case of a display is made on Web. What isthe 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 OCXViewer Cab fil e including dll module to access Oracle or reinstall RD OCX Viewer byexecuting 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 toaccess 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 Reporting , MSXML 4.0 Act iveX Control should be installed on asystem. For XML Reporting , not only RD OCX Viewer Cab file but also MSXML 4.0 Cabfile should be distributed.

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

    A. Yes. Use SetNoDataDialogInfo() Method

  • 8/16/2019 Report designer Manual - 12.Chapter 3

    13/17

    Chapter 3 . Report Designer 5.0u Tip

    93

    For the detailed usage of Method, refer to the contents of corresponding Method 4.1.70SetNoDataDialogInfo on Append ix IV. Report Designer OCX Method, Properties, andEvent

    Q. The result of a report as for executing a report on Report Designer EXE Viewer isdifferent from the result of a report as for executing a report on OCX Viewer . What is thereason?

    A. In a normal case, the result of a report as for executing a report on Report DesignerEXE 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. Pleasecontact M2Soft office if the different result occurs when the versions are the same.

  • 8/16/2019 Report designer Manual - 12.Chapter 3

    14/17

    Chapter 3. Repor t Designer 5.0u Tip

    94

    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), Excelfile(*.xls), PDF file(*.pdf), Image file(*.tif, *.bmp, *.gif, *.jpg), PowerPoint file(*.ppt) and Wordfile(*.doc) etc. as for Report Designer 5.0u Viewer.

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

    A. Report Designer 5.0u provides very high converting ratio when it is converted intoExcel file. But, the following matters should be considered when creating a report, in case aconversion is made into Excel file in the same way as the screen viewed in Report DesignerViewer, 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 Framemay not be displayed in case make a report by drawing Text Frame on a table.

    2. Background image is not supported in Excel.

    In Excel, background image(an image assigned as background object under transparentlyprocessed 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 aresupported in Excel. From this, the colors on inquiry screen may be different from the colorson Excel. To synchronize the colors between Screen to be viewed and Excel, use onlycolors on Excel available in the time of creating a report.

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

    Report Designer draws all of objects with coordinates but Excel draws an object by a unit ofcell. So, when a conversion is made into Excel, a difference may be made between columnand row in due to a little positional difference even if both locations seem to be the sameexternally. Using Al ign by object function or Properties > Adjust Object Size/Location will make objects aligned exactly. Also, the number of columns and rows can be minimizedwhile being converted into Excel.

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

  • 8/16/2019 Report designer Manual - 12.Chapter 3

    15/17

    Chapter 3 . Report Designer 5.0u Tip

    95

    Worksheet used by Excel has a restriction with maximum columns of 65,536 and rows with256. When the mass reports are converted into Excel, the files are saved as an Excel file inblocks of 1000 pages . If a report with total 1500 pages is converted into Excel file, 2 Excelfiles are created. For a file name, it is saved as a number may be attached next to theassigned name of a file. For example, if a report with 1500 pages is assigned to beconverted 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 Designer, drawing objects such as Line, Curve , Polyline , Rectangle , RoundedRectangle , 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 ismade into PDF file by using Properties > Content Field , in the time of creating a report . Asfor a report with an Indexfield assigned when converting a report into PDF file on ReportDesigner Viewer, the Indexfield is assigned as Bookmark of PDF file. To create an indexwhen executing a report, use /rmaketree parameter.

    For the details of Assign Indexf ield, See Chapter 1 Using Report Designer Editor - 8.6 Defining content field

    Q. When a report is saved as Excel file, it is necessary not to display Excel Option dialogbox 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 currentformat, transfer 1 for an argument value.

    For the details of Method usage, refer to the contents of corresponding Method 4.1.89SetSaveExcelOption on Append ix IV. Report Designer OCX Method, Properties, andEvent .

  • 8/16/2019 Report designer Manual - 12.Chapter 3

    16/17

    Chapter 3. Repor t Designer 5.0u Tip

    96

    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 Designerparameter .

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

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

    Q. Page space is different by each page if a report is printed on rolled paper. Tosynchronize the space per page, what is a solution?

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

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

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

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

  • 8/16/2019 Report designer Manual - 12.Chapter 3

    17/17

    Chapter 3 . Report Designer 5.0u Tip

    97

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