Report page format

Hi all,
I am new to Oracle reports...I have created a report using Oracle reports. There are many columns in that report and I want to set the page format to landscape Permanently for that report. Could you pls guide me how to do that
Thanks

Hi Jagjit,
You can set the orientation at the section level on the report. Go to the Object Navigator > Paper Layout > Header or Main or Trailer Section > Property Inspector > Orientation > Landscape.
Also see Report Builder Help on "Orientation Property", and "Changing Orientation".
Navneet.

Similar Messages

  • Report Page Formating ?

    when a user prints a report some of the data get carried over to the next page and page 1 has empty white space gap. So all the data in 21 page report gets shifted over.
    Is there a solution to this issue so that data can when printed can be concise on each
    page without leaving a empty white space on each every other page.
    Currently end user are logging on to Thin Client which is on a Web Browser is connected to Application server and then Database server with data being retrieved on local intranet. ????????
    So the report is being called off a web browser.
    null

    Hi,
    Place the fields next to each other in report design. Set appropriate width. While exporting in Export window select following format from dropdown
    Microsoft Excel 97-2000 Data only (XLS)
    click OK
    then in Excel Format Options window select
    Excel Format 'Custom: Data is exported according to selected options' radio button. There are three radio buttons.
    In Column Width select 2nd radio button
    Column width based on objects in the : Details (there is dropdown for this)
    And at the end there 8 check boxes. Out of 8 you have to select 4
    check - Export object formatting
    check - Maintain relative object position
    check - Simplify page headers
    check - show group outlines
    Hope this helps.

  • New Page Format implentation in Sap Scripts and Reports

    Hi,
       I want to print Report details and also some of the SAP Script details on the paper size of 350MM width and 310MM Height in the PORTRAIT format.
       So i created new page format with these dimensions.
       How i can use this for reports. So i can set these parameters while taking output from Report.
       Pls specify if any configuration required for this.
    Thanks in Advance,
    Regards,
    Pavan.

    In SAPscript, you set the Page Format for the document in the "Page Format" field of the "Basic Settings" page of the documents "Header" information. The popup list of this field will show all available formats in your system, so this is a ggod way to make sure your new format is set up properly.
    For reports, page format is set either with the LINE-SIZE addition to the REPORT and NEW-PAGE commands, or through the PARAMETERS addition to the NEW-PAGE command. When you use LINE-SIZE the print system picks the format for you, based on the available formats in the systems.
    I don't remember if there is an activation step for Page Formats, or if saving is all you have to do.

  • How does the system get the page format in reports

    Hi to all experts,
    where does the report gets the page format while print how do default the page format to the report while printing...
    please help

    Hi Mohamad,
    For printing reports by default it ill take the page format assigned to the printing device like (locl), in print preview,
    u can check the same in Transaction : SPAD.
    there click on output devices ->click on devices which u r using-->
    click on last tab->field(TRAY1)--->there u can find the page format for tht printer.
    U can change that as per ur requirement.
    i hope it ill sovle ur prob.
    Regards,
    Niranjan.G

  • Page Format for landscape/legal paper for ALV Grid report

    Hi!
    I have a request to set up a particular ALV Grid report as a background job with the report output printing on legal-size paper with landscape orientation.  We currently don't have any reports set up to print on legal size paper.  What do I need to do to set this up?  We currently use X_58_170 or X_65_255 which print on letter-size paper.  I cannot seem to find a page format for landscape legal other than LEGAL which seems to be available only for SAPscript or Smart Forms.  Any help will be greatly appreciated.
    Best Regards,
    Nik von Ruden
    Edited by: Nik Von Ruden on Oct 8, 2010 1:11 AM

    Hi,
    Thanks for you reply.
    I cannot control left and right margin in PDF. Also, it is a PDF file so eventhough somehow you are able to change left and right margin, the content does not adjust itself to fit the legal page (as it does in word or excel).
    Let me know if there is any other option.
    Thanks,
    RS

  • How do I run query per report page?

    I have a report with two subreports which both need queries to run on the fly per supplier(per report page).  All the other subreports on the page as well as the main report queries are loaded in advance before the report and includes all records needed for all suppliers.  However, these two querys that I'm trying to have run per report though can only be loaded one at a time because of the way these queries are formated (it allows a bar graph to show a label for only the current supplier on the x-axis and all other suppliers will display a "" for x-axis label, effectively only showing one legend label per report).  I already have the necessary parameter needed for the report(Pm-Supplier) so how can I run an oracle query on the fly per report page? 
    Eric
    Query 1:
    select vendor,supplierloc,commodity,ip from (select c.Vendor, q.supplierloc, c.commodity,SUM (q.indexpoints+q.lateindexpoints) AS ip
    FROM qa_occ q, glovia_prod.c_vencom@GL7TEST c
    where q.occdate BETWEEN TO_DATE ('4/1/2006', 'mm/dd/yyyy')
    AND TO_DATE ('3/9/2007', 'mm/dd/yyyy')
    and c.vendor=q.supplier
    and (upper(trim(foundby)) not like '%MARKET%' or foundby is null)
    and (upper(trim(foundby)) not like '%TRIAL%' or foundby is null)
    and (upper(trim(rank)) not like '%MARKET%' or rank is null)
    and (upper(trim(rank)) not like '%TRIAL%' or rank is null)
    and nvl(void,'N') = 'N'
    and q.supplier= @SUPPLIER
    GROUP BY C.vendor,q.supplierloc,c.commodity) qa
    union
    select '' as vendor,supplierloc,commodity,ip from (select c.Vendor, q.supplierloc, c.commodity,SUM (q.indexpoints+q.lateindexpoints) AS ip
    FROM qa_occ q, glovia_prod.c_vencom@GL7TEST c
    where q.occdate BETWEEN TO_DATE (@BegDate, 'mm/dd/yyyy')
    AND TO_DATE (@EndDate, 'mm/dd/yyyy')
    and c.vendor=q.supplier
    and (upper(trim(foundby)) not like '%MARKET%' or foundby is null)
    and (upper(trim(foundby)) not like '%TRIAL%' or foundby is null)
    and (upper(trim(rank)) not like '%MARKET%' or rank is null)
    and (upper(trim(rank)) not like '%TRIAL%' or rank is null)
    and nvl(void,'N') = 'N'
    and q.supplier<> @SUPPLIER
    GROUP BY C.vendor,q.supplierloc,c.commodity) qa
    order by commodity,ip desc
    Query 2:
    select c.name as name,c.vendor,c.ven_loc, SUM(q.indexpoints+q.lateindexpoints) as ip
    from qa_occ q,glovia_prod.ven_loc c
    WHERE q.occdate BETWEEN TO_DATE (@BegDate, 'mm/dd/yyyy')
    AND TO_DATE (@EndDate, 'mm/dd/yyyy')
    and (upper(trim(q.foundby)) not like '%MARKET%' or q.foundby is null)
    and (upper(trim(q.foundby)) not like '%TRIAL%' or q.foundby is null)
    and (upper(trim(q.rank)) not like '%MARKET%' or q.rank is null)
    and (upper(trim(q.rank)) not like '%TRIAL%' or q.rank is null)
    and q.supplier is not null
    and nvl(q.void,'N') = 'N'
    and q.supplier=@SUPPLIER
    and q.supplier=c.vendor
    and q.supplierloc=c.ven_loc
    GROUP BY c.name,c.vendor,c.ven_loc
    union
    select '' as name,c.vendor,c.ven_loc, SUM(q.indexpoints+q.lateindexpoints) as ip
    from qa_occ q,glovia_prod.ven_loc c
    WHERE q.occdate BETWEEN TO_DATE (@BegDate, 'mm/dd/yyyy')
    AND TO_DATE (@EndDate, 'mm/dd/yyyy')
    and (upper(trim(q.foundby)) not like '%MARKET%' or q.foundby is null)
    and (upper(trim(q.foundby)) not like '%TRIAL%' or q.foundby is null)
    and (upper(trim(q.rank)) not like '%MARKET%' or q.rank is null)
    and (upper(trim(q.rank)) not like '%TRIAL%' or q.rank is null)
    --and q.supplier is not null
    and nvl(q.void,'N') = 'N'
    and q.supplier=c.vendor
    and q.supplierloc=c.ven_loc
    and q.supplier <> @SUPPLIER
    GROUP BY c.name,c.vendor,c.ven_loc
    ORDER BY ip DESC

    You can't, CR considers each subreport as a separate report and therefore it makes a new connection and runs the SQL for the subreport.

  • Display image in report page but just a link if file is not an image

    Hello,
    I've been working on displaying an image in a report page but need to add some logic.
    I would like to be able to call the image using a Region Source of type SQL instead of the HTML Expression. The reason for this is because I need to use logic to determine if the file is an image or not and to determine wether to show a thumbnail or just a link. I did find a "GET_BLOB_FILE_SRC" Function on the internet that suggests that I could do this but I need some help in making it work in my application.
    Here it is as a Region Source of type SQL:
    SELECT ID,
    NAME,
    CASE WHEN NVL(dbms_lob.getlength(document),0) = 0
    THEN NULL
    ELSE CASE WHEN attach_mimetype like 'image%'
    THEN '<img
    src="'||apex_util.get_blob_file_src('P4_DOCUMENT',id)||'" />'
    ELSE '<a
    href="'||apex_util.get_blob_file_src('P4_DOCUMENT',id)||'">Download</a>'
    end
    END new_img
    FROM TEST_WITH_BLOB
    If anyone can help me with this that would be appreciated.
    Thanks
    LEH

    John,
    The problem is that I do not know how to use the "GET_BLOB_FILE_SRC Function". I never got it to work but the HTML Expression did work for me. If you know how the GET_BLOB_FILE_SRC Function works then that would be helpful. I don't think it would be helpful if I posted my example on apex.oracle.com. But here is the information I have on the GET_BLOB_FILE_SRC Function.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    GET_BLOB_FILE_SRC Function
    As an alternative to using the built-in methods of providing a download link, you can use the APEX_UTIL.GET_BLOB_FILE_SRC function. One advantage of this approach, is the ability to more specifically format the display of the image (with height and width tags). Please note that this approach is only valid if called from a valid Oracle Application Express session. Also, this method requires that the parameters that describe the BLOB to be listed as the format of a valid item within the application. That item is then referenced by the function.
    See Also:
    "About BLOB Support in Forms and Reports" in Oracle Application Express Application Builder User's Guide
    Syntax
    FUNCTION GET_BLOB_FILE_SRC (
        p_item_name           IN VARCHAR2 DEFAULT NULL,
        p_v1                  IN VARCHAR2 DEFAULT NULL,
        p_v2                  IN VARCHAR2 DEFAULT NULL,
        p_content_disposition IN VARCHAR2 DEFAULT NULL)
        RETURN VARCHAR2
    Parameters
    Table 1-28 describes the parameters available in GET_BLOB_FILE_SRC function.
    Table 1-28 GET_BLOB_FILE_SRC Parameters
    Parameter Description
    p_item_name
    Name of valid application page ITEM that with type FILE that contains the source type of DB column.
    p_v1
    Value of primary key column 1.
    p_v2
    Value of primary key column 2.
    p_content_disposition
    Specify inline or attachment, all other values ignored
    Example
    As a PLSQL Function Body:
    RETURN '<img src="'||APEX_UTIL.GET_BLOB_FILE_SRC('P2_ATTACHMENT',:P2_EMPNO)||'" />';
    As a Region Source of type SQL:
    SELECT ID,
           NAME,
           CASE WHEN NVL(dbms_lob.getlength(document),0) = 0
                THEN NULL
                ELSE CASE WHEN attach_mimetype like 'image%'
                          THEN '<img
    src="'||apex_util.get_blob_file_src('P4_DOCUMENT',id)||'" />'
                          ELSE '<a
    href="'||apex_util.get_blob_file_src('P4_DOCUMENT',id)||'">Download</a>'
                          end
            END new_img
       FROM TEST_WITH_BLOB
    The previous example illustrates how to display the BLOB within the report, if it can be displayed, and provide a download link, if it cannot be displayed.Thanks
    LEH

  • Changing Oracle Report Output Format at runtime

    Dear All,
    I've custom Oracle Report in Oracle Apps., and would like to give the users an option to select the output format (XML, TEXT, PDF, etc.) whilst submitting the request.
    As a SYSADMIN, we can modify the Output Format value of the concurrent program(Oracle Report in this case) to one we like.
    But I would like the user to select this output format option at runtime, rather then hard coding at SYSADMIN level. For that I've to create a Value Set with the desired report output format options, and attach this to the concurrent program.
    My question is, how we can make the desired output format to work at runtime?
    If any one can help?
    Thanks,
    Sandeep

    Hi Steve,
    I couldn't get it...???
    I'm running an Oracle Report in Oracle Apps. release 11.5.9
    The default output format of this report is TEXT, which is defined in its concurrent program.
    This report is submitted using standard request submission screen, and after successful completion we can view the output by pressing "View Output" button on "Requests" screen. This will open an another window and we can view the output page by page. Using "Tools>Copy File..." menu option, we can view the same output in IE window.
    Now, how does your resolution fits here and how can I view the same report in XML format?
    Many Thanks,
    Sandeep

  • "Output could not be issued" when using custom page formats

    Dear all,
    I created a custom page format using SPAD. Its dimension is 7.5cm x 10cm (190mm x 254mm). I also created this page format in windows and set as the default paper size in my printer. However, when trying to print a smartform using this size, the message "Output could not be issued" is given. When I use the standard paper sizes (e.g., LETTER, DINA4), the form prints OK.
    Can you point me to the direction to solving this?
    Thank you!
    Kyle

    Issue resoved.
    For those who are encountering the same problem, here's what I did. I tested the smartform by itself and it reported the specific error: the page format is not supported in device type SWIN. I added it in another device type SAPWIN. This was just a simple miscommunication between the admins and the developer. I added the format in SWIN and everything works fine.
    Kyle

  • Setting Report Page Size in Ecplise Designer 1.0

    Hello all,
    I am trying to use Crystal Reports for Eclipse V1.0, and when using the ReportDesigner, I can't find a way to set the size of the report page I am laying out.  by default, it seems to be an 8.5 x 11 inch page, but it defaults to Landscape mode.  Anyone know how to change the layout of a report to be Portrait format?
    Thanks,
    Matt

    Upgrade to version 2 and Test again.
    Also check the sample applications from above tabs.

  • Multiple page format for single smartforms

    We have a requirement to get the output in different page formates for a smartform.
    How to achieve this???

    suppose you r using a program to print the smartform.
    Just check this program.
    REPORT z_sf_demo1 .
    PARAMETERS p_bukrs LIKE ekko-bukrs.
    DATA: fm_name TYPE tdsfname.
    DATA: ssfctrlop LIKE ssfctrlop.
    Function to get the function name to run SMART FORM.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = 'ZJAYRA_DETAIL'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    fm_name = fm_name
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    To pass parameters for CONTROL_PARAMETERS
    ssfctrlop-no_open = ' '.
    ssfctrlop-no_close = 'X'.
    CALL FUNCTION fm_name
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    control_parameters = ssfctrlop
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    bukrs = p_bukrs
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    To pass parameters for CONTROL_PARAMETERS
    ssfctrlop-no_open = 'X'.
    ssfctrlop-no_close = ''.
    ssfctrlop-startpage = 'PAGE2'.
    Function to run SMART FORM from third page to last page.
    CALL FUNCTION fm_name
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    control_parameters = ssfctrlop
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    bukrs = p_bukrs
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ssfctrlop-no_open = 'X'.
    ssfctrlop-no_close = ''.
    ssfctrlop-startpage = 'PAGE3'.
    Function to run SMART FORM from third page to last page.
    CALL FUNCTION fm_name
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    control_parameters = ssfctrlop
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    bukrs = p_bukrs
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    I have also sent a mail to your gmail id regarding the details of my program.
    Hope your query will be solved.
    <b>Rewards pioint for helpful answers.</b>
    Regards,
    Abhay.

  • Composer Process Report XML Format

    Hi,
    We generated 'Process Report' -- XML format in Oracle BPM Composer. After generating saved content in a xml file. When tried to open this file, getting error message like not in proper xml format etc., Have we missed any thing in installing or configuring Composer. pleased suggest.
    -- Thanks .... Murthy

    @trevorbutler -  Could you send us what version of Ant you're using and a  sample of how you're using the <junit> Ant task?  Additionally,  can you validate that the example you gave for the JUnit output is from  the <junit> Ant task and not the <junitreport> task?  Could you also let us know which version of JUnit you used with Ant, just in case?
    FWIW - The XML output that you see from running tests in JUnit via the <junit> Ant task is output that has been defined without specification by the folks at Apache Ant.  There has been a lot of discussion on standardizing the output amongst the folks at TestNG, the Maven Surefire plugin and others, but I haven't seen anything standardized come out of that.  Here is a wiki page that has some of that discussion http://wiki.apache.org/ant/Proposals/EnhancedTestReports.  t's also important to note, that the aggregate results of the <junitreport> task contain a slight variation on the output produced by the <junit> task.  Consequently, we have to emulate the lowest common denominator that we know will work with the tools out there that parse the XML output associated with an xUnit framework (e.g. - Ant tasks, CI server, etc).  This being said, we rely on the community to keep us up to date with variations that we may have missed or for which need to update.  It's not so much that we've decided to exclude any particular elements from the output, we just need help fine tuning as time goes on.
    Thanks for the help.
    -Brian

  • Causing a Report page to be opened in Excel or MS Word

    Hello Every body
    I want to redirect an HTMLDB Report page to an excel spread sheet or MS Word
    in read only mode and with an order to directly send content to printer.
    Can any body tell me how to procede ?
    thanks in advance
    sidaty

    I'm not sure if something like this might help...
    Using SQL/XML you can build a view that is compliant with the Excel 2K3 Spreadsheet ML XML Schema. You can then folder the rows in the view as documents in the XML DB repository. When you open one of these documents in Excel Excel will treat it as worksheet.
    The missing piece here would be can you embed an macro in excel that will force the document to print when it's opened...
    set define off
    set echo on
    create or replace view DEPARTMENT_WORKBOOK_XML of xmltype
    with object id
       substr
         extractValue
           object_value,
           '/Workbook/Worksheet/Table/Row[@ss:Index="2"]/Cell[@ss:Index="8"]/Data/text()',
           'xmlns="urn:schemas-microsoft-com:office:spreadsheet"
            xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"'
         1,32
    as
    select xmlroot
             xmlconcat
               xmlPI(NAME "mso-application",'progid="Excel.Sheet"'),
               xmlElement
                 "Workbook",
                 xmlAttributes
                    'urn:schemas-microsoft-com:office:spreadsheet' as "xmlns",
                    'urn:schemas-microsoft-com:office:office' as "xmlns:o",
                    'urn:schemas-microsoft-com:office:excel' as "xmlns:x",
                    'urn:schemas-microsoft-com:office:spreadsheet' as "xmlns:ss",
                    'http://www.w3.org/TR/REC-html40' as "xmlns:html"
                 xmlElement
                   "DocumentProperties",
                   xmlAttributes('urn:schemas-microsoft-com:office:office' as "xmlns"),
                   xmlForest
                     USER as "Author",
                     USER as "LastAuthor",
                     '2002-10-11T15:47:35Z' as "Created",
                     'Oracle Corporation' as "Company",
                     '11.5703' as "Version"
                 xmlElement
                   "OfficeDocumentSettings",
                   xmlAttributes('urn:schemas-microsoft-com:office:office' as "xmlns"),
                   xmlElement("DownloadComponents"),
                   xmlElement
                     "LocationOfComponents",
                     xmlAttributes('file://' as "HRef")
                 xmlElement
                   "ExcelWorkbook",
                   xmlAttributes('urn:schemas-microsoft-com:office:excel' as "xmlns"),
                   xmlForest
                     '8835' as "WindowHeight",
                     '14220' as "WindowWidth",
                     '480' as "WindowTopX",
                     '60' as "WindowTopY",
                     'False' as "ProtectStructure",
                     'False' as "ProtectWindows"
                   xmlElement("HideHorizontalScrollBar")
                 xdburiType('/home/SCOTT/Workbooks/Styles.xml').getXML(),
                 xmlElement
                   "Worksheet",
                   xmlAttributes(d.DEPARTMENT_NAME as "ss:Name"),
                   xmlElement
                     "Table",
                     xmlAttributes
                       '11' as "ss:ExpandedColumnCount",
                       ( select '' || 14 + count(*) || '' from HR.EMPLOYEES e where e.DEPARTMENT_ID = d.DEPARTMENT_ID) as "ss:ExpandedRowCount",
                       '1' as "x:FullColumns",
                       '1' as "x:FullRows"
                     xmlElement("Column",xmlAttributes('25' as "ss:Width")),
                     xmlElement("Column",xmlAttributes('75' as "ss:Width")),
                     xmlElement("Column",xmlAttributes('60' as "ss:Width", '1' as "ss:Span")),
                     xmlElement("Column",xmlAttributes('5' as "ss:Index", '75' as "ss:Width")),
                     xmlElement("Column",xmlAttributes('100' as "ss:Width", '1' as "ss:Span")),
                     xmlElement("Column",xmlAttributes('8' as "ss:Index", '100' as "ss:Width")),
                     xmlElement("Column",xmlAttributes('60' as "ss:Width")),
                     xmlElement("Column",xmlAttributes('60' as "ss:Width")),
                     xmlElement("Column",xmlAttributes('75' as "ss:Width")),
                     xmlElement
                       "Row",
                       xmlAttributes('2' as "ss:Index"),                
                       xmlElement
                         "Cell",
                         xmlAttributes('2' as "ss:Index", '3' as "ss:MergeAcross", '2' as "ss:MergeDown",'DepartmentName' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Department : ' || DEPARTMENT_NAME )
                       xmlElement
                         "Cell",
                         xmlAttributes('7' as "ss:Index", 'Caption' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'ID :' )
                       xmlElement
                         "Cell",
                         xmlAttributes('8' as "ss:Index", 'Bold' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), d.DEPARTMENT_ID )
                     xmlElement
                       "Row",
                       xmlAttributes('4' as "ss:Index"),                
                       xmlElement
                         "Cell",
                         xmlAttributes('7' as "ss:Index", 'Caption' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Location :' )
                       xmlElement
                         "Cell",
                         xmlAttributes('8' as "ss:Index", 'Bold' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), STREET_ADDRESS )
                     xmlElement
                       "Row",
                       xmlAttributes('5' as "ss:Index"),                
                       xmlElement
                         "Cell",
                         xmlAttributes('8' as "ss:Index", 'Bold' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), CITY )
                     xmlElement
                       "Row",
                       xmlAttributes('6' as "ss:Index"),                
                       xmlElement
                         "Cell",
                         xmlAttributes('8' as "ss:Index", 'Bold' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), STATE_PROVINCE )
                     xmlElement
                       "Row",
                       xmlAttributes('7' as "ss:Index"),                
                       xmlElement
                         "Cell",
                         xmlAttributes('8' as "ss:Index", 'Bold' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), POSTAL_CODE )
                     xmlElement
                       "Row",
                       xmlAttributes('8' as "ss:Index"),                
                       xmlElement
                         "Cell",
                         xmlAttributes('8' as "ss:Index", 'Bold' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), COUNTRY_NAME )
                     xmlElement
                       "Row",
                       xmlAttributes('10' as "ss:Index"),                
                       xmlElement
                         "Cell",
                         xmlAttributes('7' as "ss:Index", 'Caption' as "ss:StyleID"),
                      xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Manager :' )
                       xmlElement
                         "Cell",
                         xmlAttributes('8' as "ss:Index", 'Bold' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), m.FIRST_NAME || ' ' || m.LAST_NAME )
                     xmlElement
                       "Row",
                       xmlAttributes('12' as "ss:Index"),                
                       xmlElement
                         "Cell",
                         xmlAttributes('2' as "ss:Index", 'BoldRight' as "ss:StyleID"),
                         xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Employee ID')
                       xmlElement("Cell", xmlAttributes('BoldLeft' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'First Name')),
                       xmlElement("Cell", xmlAttributes('BoldLeft' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Last Name')),
                       xmlElement("Cell", xmlAttributes('BoldLeft' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Email Address' )),
                       xmlElement("Cell", xmlAttributes('BoldCentered' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Phone Number' )),
                       xmlElement("Cell", xmlAttributes('BoldRight' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Hire Date')),
                       xmlElement("Cell", xmlAttributes('BoldRight' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Job Title')),
                       xmlElement("Cell", xmlAttributes('BoldRight' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Salary')),
                       xmlElement("Cell", xmlAttributes('BoldRight' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"), 'Commission'))
                     xmlElement
                       "Row",
                       xmlElement("Cell",xmlAttributes('2' as "ss:Index", 'BodyDefault' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID"))
                     ( select xmlAgg
                                xmlElement
                                  "Row",
                                  xmlElement
                                    "Cell",
                                    xmlAttributes('2' as "ss:Index", 'BodyDefault' as "ss:StyleID"),
                                    xmlElement("Data", xmlAttributes('Number' as "ss:Type"),  e.EMPLOYEE_ID)
                                  xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"),  e.FIRST_NAME)),
                                  xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"),  e.LAST_NAME)),
                                  xmlElement("Cell", xmlAttributes('BodyDefault' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"),  e.EMAIL )),
                                  xmlElement("Cell", xmlAttributes('BodyRight' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"),  e.PHONE_NUMBER )),
                                  xmlElement("Cell", xmlAttributes('HireDate' as "ss:StyleID"), xmlElement("Data", xmlAttributes('DateTime' as "ss:Type"),  to_char(to_char(e.HIRE_DATE,'YYYY-MM-DD"T00:00:00.000"')))),
                                  xmlElement("Cell", xmlAttributes('BodyRight' as "ss:StyleID"), xmlElement("Data", xmlAttributes('String' as "ss:Type"),  j.JOB_TITLE)),
                                  xmlElement("Cell", xmlAttributes('Currency' as "ss:StyleID"), xmlElement("Data", xmlAttributes('Number' as "ss:Type"),  e.SALARY)),
                                  xmlElement("Cell", xmlAttributes('Percent' as "ss:StyleID"), xmlElement("Data", xmlAttributes('Number' as "ss:Type"),  e.COMMISSION_PCT))
                         from HR.EMPLOYEES e, HR.JOBS j  
                        where e.DEPARTMENT_ID = d.DEPARTMENT_ID
                          and e.JOB_ID = j.JOB_ID
                     xmlElement
                       "Row",
                       xmlElement("Cell", xmlAttributes('2' as "ss:Index", 'TableBottom' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('TableBottom' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('TableBottom' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('TableBottom' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('TableBottom' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('TableBottom' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes('TableBottom' as "ss:StyleID")),
                       xmlElement("Cell", xmlAttributes
                                            'SalaryTotal' as "ss:StyleID",
                                            'SUM(R[-' || ( select '' || count(*) || '' from HR.EMPLOYEES e where e.DEPARTMENT_ID = d.DEPARTMENT_ID) || ']C:R[-1]C)' as "ss:Formula")
                       xmlElement("Cell", xmlAttributes('TableBottom' as "ss:StyleID"))
                   xmlElement
                     "WorksheetOptions",
                     xmlAttributes('urn:schemas-microsoft-com:office:excel' as "xmlns"),
                     xmlElement
                       "Print",
                       xmlElement("ValidPrintInfo"),
                       xmlElement("HorizontalResolution",96),
                       xmlElement("VerticalResolution",96),
                       xmlElement("NumberOfCopies",0)
                  xmlElement("DoNotDisplayGridlines"),
                     xmlElement("Selected"),
                     xmlElement
                       "Panes",
                       xmlElement
                         "Pane",
                         xmlElement("Number",1),
                         xmlElement("ActiveRow",1),
                         xmlElement("ActiveCol",1)
                     xmlElement("ProectedObjects",'False'),
                     xmlElement("ProectedSecenarios",'False')
             ),VERSION '1.0'
      from HR.DEPARTMENTS d, HR.LOCATIONS l, HR.COUNTRIES c, HR.EMPLOYEES m
    where d.LOCATION_ID = l.LOCATION_ID
       and l.COUNTRY_ID = c.COUNTRY_ID
       and d.MANAGER_ID = m.EMPLOYEE_ID
    show errors
    create or replace trigger DEPARTMENT_WORKBOOK_DML
    instead of INSERT or UPDATE or DELETE on DEPARTMENT_WORKBOOK_XML
    begin
    null;
    end;
    show errors
    pause
    declare
      targetPath varchar2(1024) := '/home/SCOTT/Workbooks';
      xmlText CLOB :=
    '<Styles xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:x="urn:schemas-microsoft-com:office:excel">
              <Style ss:ID="Default" ss:Name="Normal">
                   <Alignment ss:Vertical="Bottom" ss:Horizantal="Left"/>
                   <Borders/>
                   <Font/>
                   <Interior ss:Color="#FFFFFF" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="Caption">
                   <Font x:Family="Swiss" ss:Bold="1" ss:Italic="1"/>
              </Style>
              <Style ss:ID="Bold">
                   <Font x:Family="Swiss" ss:Bold="1"/>
              </Style>
              <Style ss:ID="BodyDefault">
                   <Alignment ss:Vertical="Bottom" ss:Horizantal="Left"/>
                   <Borders>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Font/>
                   <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="TableBottom">
                   <Alignment ss:Vertical="Bottom" ss:Horizantal="Left"/>
                   <Borders>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Bottom" ss:LineStyle="Double" ss:Weight="3"/>
                   </Borders>
                   <Font/>
                   <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="SalaryTotal">
                   <Alignment ss:Vertical="Bottom" ss:Horizantal="Left"/>
                   <Borders>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Bottom" ss:LineStyle="Double" ss:Weight="3"/>
                   </Borders>
                   <Font/>
                   <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
                   <NumberFormat ss:Format="_(&quot;$&quot;* #,##0.00_);_(&quot;$&quot;* \(#,##0.00\);_(&quot;$&quot;* &quot;-&quot;??_);_(@_)"/>
                   <Protection/>
              </Style>
              <Style ss:ID="HeadDefault">
                   <Alignment ss:Vertical="Bottom" ss:Horizantal="Left"/>
                   <Borders/>
                   <Font/>
                   <Interior ss:Color="#00CCFF" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="HireDate">
                   <Alignment ss:Vertical="Bottom" ss:Horizontal="Right"/>
                   <Borders>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Font/>
                   <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
                   <NumberFormat ss:Format="[ENG][$-409]mmmm\ d\,\ yyyy;@"/>
                   <Protection/>
              </Style>
              <Style ss:ID="DepartmentName">
                   <Alignment ss:Vertical="Center" ss:Horizontal="Left"/>
                   <Borders>
                        <Border ss:Position="Bottom" ss:LineStyle="Double" ss:Weight="3"/>
                        <Border ss:Position="Left" ss:LineStyle="Double" ss:Weight="3"/>
                        <Border ss:Position="Right" ss:LineStyle="Double" ss:Weight="3"/>
                        <Border ss:Position="Top" ss:LineStyle="Double" ss:Weight="3"/>
                   </Borders>
                   <Font x:Family="Swiss" ss:Bold="1" ss:Size="18"/>
                   <Interior ss:Color="#FFCC00" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="BoldCentered">
                   <Alignment ss:Vertical="Bottom" ss:Horizontal="Center"/>
                   <Borders>
                        <Border ss:Position="Top" ss:LineStyle="Double" ss:Weight="3"/>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Font ss:Color="#FFFFFF" x:Family="Swiss" ss:Bold="1"/>
                   <Interior ss:Color="#0000FF" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="BoldLeft">
                   <Alignment ss:Vertical="Bottom" ss:Horizontal="Left"/>
                   <Borders>
                        <Border ss:Position="Top" ss:LineStyle="Double" ss:Weight="3"/>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Font ss:Color="#FFFFFF" x:Family="Swiss" ss:Bold="1"/>
                   <Interior ss:Color="#0000FF" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="BoldRight">
                   <Alignment ss:Vertical="Bottom" ss:Horizontal="Right"/>
                   <Borders>
                        <Border ss:Position="Top" ss:LineStyle="Double" ss:Weight="3"/>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Font ss:Color="#FFFFFF" x:Family="Swiss" ss:Bold="1"/>
                   <Interior ss:Color="#0000FF" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="BodyCentered">
                   <Alignment ss:Vertical="Bottom" ss:Horizontal="Center"/>
                   <Borders>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Font x:Family="Swiss"/>
                   <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="BodyLeft">
                   <Alignment ss:Vertical="Bottom" ss:Horizontal="Left"/>
                   <Borders>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Font x:Family="Swiss"/>
                   <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="BodyRight">
                   <Alignment ss:Vertical="Bottom" ss:Horizontal="Right"/>
                   <Borders>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Font x:Family="Swiss"/>
                   <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
                   <NumberFormat/>
                   <Protection/>
              </Style>
              <Style ss:ID="Currency" ss:Name="Currency">
                   <Borders>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
                   <NumberFormat ss:Format="_(&quot;$&quot;* #,##0.00_);_(&quot;$&quot;* \(#,##0.00\);_(&quot;$&quot;* &quot;-&quot;??_);_(@_)"/>
              </Style>
              <Style ss:ID="Percent" ss:Name="Percent">
                   <Borders>
                        <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
                        <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
                   </Borders>
                   <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/>
                   <NumberFormat ss:Format="0%"/>
              </Style>
         </Styles>';
      res boolean;
    begin
      if (not dbms_xdb.existsResource(targetPath)) then
        res := dbms_xdb.createFolder(targetPath);
      end if;
      targetPath := targetPath || '/' || 'Styles.xml';
      if dbms_xdb.existsResource(targetPath) then
        dbms_xdb.deleteResource(targetPath);
      end if;
      res := dbms_xdb.createResource(targetPath,xmlText);
    end;
    commit
    pause
    declare
      cursor getDepartments is
        select ref(d) XMLREF,
               substr
                 extractValue
                   object_value,
                   '/Workbook/Worksheet[1]/@ss:Name',
                   'xmlns="urn:schemas-microsoft-com:office:spreadsheet"
                   xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"'
                 1,32
               ) NAME
          from DEPARTMENT_WORKBOOK_XML d;
      res boolean;
      targetFolder varchar2(1024) :=  '/home/SCOTT/Workbooks/Departments';
    begin
      if dbms_xdb.existsResource(targetFolder) then
         dbms_xdb.deleteResource(targetFolder,dbms_xdb.DELETE_RECURSIVE);
      end if;
      res := dbms_xdb.createFolder(targetFolder);
      for dept in getDepartments loop
        res := DBMS_XDB.createResource(targetFolder || '/' || dept.NAME || '.xml', dept.XMLREF);
      end loop;
    end;
    commit
    pause
    quitThe above example assumes user SCOTT (yeah I know !), and that user SCOTT has access to the HR schema and write access to an xdb repository folder called /home/SCOTT. It will create a document for each DEPARTMENT containing the employees for that department.

  • Setting Isolate Report/Page sections and Isolate Group sections using SDK

    Hi all,
    Has anyone exported the report to CSV format, by setting Isolate Report/Page sections and Isolate Group sections programmatically. If so, to which object should i set, and what are the methods to do
    this ? The CSV exported report contains lots of these sections, along with the actual data, so i am
    trying to suppress these other data in the exported file.
    I am using BOE SDK.
    cheers
    Nithy

    Hi Nithy,
    RAS SDKs may help you to achive your task.
    I would suggest you to see setGroupSectionsOption and setReportSectionsOption of CharacterSeparatedValuesExportFormatOptions class given in RAS APIs.
    Anu

  • Formatting OBPM Process Report HTML Format

    Hi All,
    We have developed few processes in Business Process Composer and generated the Process Report HTML format. We found these reports need to be formatted as per our business need and are looking a way to alter/modify the format/layout for these HTML reports. Can any one please suggest how do we configure/alter/format the HTML at source level.
    Can any one suggest how to save the generated HTML report.
    --- Murthy

    Hi,
    When I run report( over 28000 pages) with same data set in linux environment then report still run normally.
    I can run this report in win2k3 env developer, but my customer can't run it(my customer also use application server 10gr2 in win2k3), number user of my customer is about 150 user.
    It isn't still work if I redirect report to another output. And I view Application Server -> Report Server then I see one job is running for a long time.
    Report Engine:
    Initial Engines (initEngine)     2
    Maximum Engines (maxEngine)     2
    Minimum Engines (minEngine)     1
    Maximum Jobs Before Shutdown (engLife)     50
    Maximum Idle Before Shutdown (maxIdle) (minutes)     30
    Cache Size (MB)     150
    Idle Timeout (minutes)     20
    Maximum Connections     20
    Maximum Queue Size     1000
    Trace Options: none
    Trace Mode: trace_replace
    Best regards
    Thanks.

Maybe you are looking for