How to print a form in a UIX page

I want to print a form in a UIX page? I have tried a lot of methods,but they did not work.I only want to print the contents in the form ,not including the contents of the page title ,tab bar,etc. Can someone tell me?Thank you!

Yu -
You'll want to use the "printable" facet when rendering your page. The following sample page contains a button which allows the user to view the "printable" version of the page. It uses the <showFacet> event handler to switch to the printable facet:
<?xml version="1.0" encoding="UTF-8"?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
      xmlns:ui="http://xmlns.oracle.com/uix/ui"
      xmlns:data="http://xmlns.oracle.com/uix/ui"
      xmlns:ctrl="http://xmlns.oracle.com/uix/controller">
<content>
  <pageLayout xmlns="http://xmlns.oracle.com/uix/ui">
  <tabs>
    <tabBar>
    <contents>
       <link text="Hello"/>
       <link text="World"/>
    </contents>
    </tabBar>
  </tabs>
  <pageButtons>
    <pageButtonBar>
    <contents>
      <button text="Show Printable Page" ctrl:event="showPrintable"/>
    </contents>
    </pageButtonBar>
  </pageButtons>
  <contents>
    <text text="Printable area"/>
  </contents>
  </pageLayout>
</content>
<handlers>
  <!-- Use the showFacet event handler to switch over to
       the "printable" facet -->
  <event name="showPrintable">
    <showFacet name="printable"/>
  </event>
</handlers>
</page>Andy

Similar Messages

  • How to print a form with digital signatures

    I created a form that was signed digitally and submitted electronically. When I look in my summary table, the signature shows, but when I create a pdf of the form, the signature does not show. How can I print the forms with the digital signature showing?

    Yu -
    There is no need to post the same question repeatedly - this does not affect how quickly we can respond.
    Merging with:
    How to print a form in a UIX page and
    how to print a form in a UIX page?
    Andy

  • How to print HR form

    Hi,
    how to print HR form..(not smartform or sapscripts)
    i.e how to connect the form to the program and where to write the program.
    <b>as we do it in sap scripts ,SE38 for program to connect SE71 layout program..</b>
    Cheers,
    Raghavesh
    Message was edited by:
            Raghavesh Reddy

    Hi Raghavesh,
         I think you are taking about the HRFORM name that we give in the Report RPCALCU0 in the HRFORM..
    If this is the case then you can use the transaction 'HRFORM'..
    In this you can find some Examples.
    Reward points if it solved your problem.
    Regards,
    Kiran I

  • How To Print Field Value in TOP-OF-PAGE During Line Selection.

    How To Print Field Value in TOP-OF-PAGE During Line Selection when double click on field.

    (If my memory serves me well (not used for long time ago)
    Assign values to system fields sy-tvar0 - sy-tvar9, they will replace the placeholders "&0" through "&9" in the list headers and column headers.
    TOP-OF-PAGE DURING LINE-SELECTION.
         WRITE: / 'Interactive Report &3'.
      WRITE record-vbeln TO sy-tvar3.
    Regards,
    Raymond

  • How to print the Actual Check on 1st Page if line items are more for F110_p

    Hi,
    How to print the Actual Check on 1st page if the line items are more in F110_PRENUM_CHCK script. The standard script is printing at the last page of line items.
    I tried using
    IF &PAGE& EQ '1 '
    /E 545 --> text element
    ENDIF
    but it is of no use.
    Please let me know if anyone knows. Thanks in Advance.

    Hi Krishna,
    I guess, there is no other possible way to acheive this without modifying the standard driver program. Why because? in you driver program you check window will be called only on the last page... but before you change your driver program give a try like shown below....
    Not sure, but give a try... In the first page you will be printing some void check try to replace the code inside the text element of void check with original check and make all the check void... note: in this text element, be sure you write two conditions...
    IF &PAGE& = 1.
    **PRint all check values..
    ELSE.
    ***Print void values
    ENDIF.
    Close the thread if your question is answered.
    Regards,
    Sairam

  • How to print header in first and last  page only in SAPSCRIPT

    Hi!
    How to print header in first and last  page only in SAPSCRIPT,
    in between pages,  I need to print all line items in MAIN window only .
    Thanks in anticipation!
    Aki.

    Hi All,
    Thanks for your early update...but my requirement here is
    I have two pages (FIRST , NEXT ) First is having Header, Main and Footer
    NEXT is having Main and Footer ..I am printing PO here..let us think that my PO is having 20lines items , let us assume that it takes five pages...
    Now how application is printing is ..first set of data is printing in FIRST page and remainiang data distributed to 4 pages printing in NEXT page ..but what my requirement is , I need fifth page print on FIRST page, instead of NEXT page... Ultimately I need last set of data always print in FIRST ie out of 5 pages 1st print on FIRST 2nd 3rd 4th print on NEXT and 5th print again on FIRST .
    hope you this will clear you.
    Thanks!

  • How to get the form reference in .js page from .jsp page

    hi
    i have written one form in jsp page omething like:-
    <html:form action="/shopping" onsubmit="return false;">
    can anybody tell me,how to get the form reference in .js page from .jsp page ,
    i have tried:-
    var formRef = document.forms[0];
    butits not working.
    Thanks.

    Its very simple......y cant u prefer google...Bad
    c this example...
    function submit()
    alert("textbox"+ document.forms[0].name.value);//to get textbox value in js
    document.forms[0].submit();//to submit jsp page using js
    <html:html>
    <html:form action="/shopping" onsubmit="submit()">
    <html:text property=name>
    learn to search in google..
    </html:form>
    </html:html>

  • How to import user defined class in UIX page?

    Does anyone know how to import user defined class in UIX page so that the class can be called in the javascript in the UIX ?
    Thks & Rgds,
    Benny

    what you are referring to is not javascript.
    it is JSP scriptlets. These are very different.
    In order to keep a strict separation between View and Controller, it is not possible to run arbitrary java code from within your UIX code.
    However, you can run java code from within a UIX event handler; see:
    http://otn.oracle.com/jdeveloper/help/topic?inOHW=true&linkHelp=false&file=jar%3Afile%3A/u01/app/oracle/product/IAS904/j2ee/OC4J_ohw/applications/jdeveloper904/jdeveloper/helpsets/jdeveloper/uixhelp.jar!/uixdevguide/introducingbaja.html
    event handler code is run before the page is rendered.

  • How to print adobe form immediately without preview?

    Hi, Experts.
    I made a WD4A using Interactive Form control
    and the app is working fine and displays Adobe Form.
    But I meet a new client needs on how to print immediately without display the form.
    My client says that "I don't wanna see the form and just print form immediately when I click the print button".
    I think there are some option parameters for solving those problem...
    Plz. Help.
    Regards Junha.

    Hello Junha,
    you need to send the pdf to spool. There's a function module for it as far as I know. Can't remember the
    name at the moment and having no access to a SAP system. A good way to find it would be searching
    for SPOOL and PDF in the name.
    Best regards,
    Thomas

  • How to print Adobe Forms without the black/gray backgrounds in the side columns

    How can we print Adobe Forms without the black/gray backgrounds in the side columns? We are wasting a lot of ink printing out these forms and would like to have simply black ilnes to distinguish columns and black lettering, but no background colors.  Any help would be appreciated. Thanks.

    I am not positive what you are printing from but I am thinking it is from the View Responses tab with a response row selected and then shown in "Detail View" and that the column of field names has a dark grey background...
    To change the color of the column headers select the row of headers (do this by clicking on the first dark grey header field and then scroll to the last one and shift+click on the last one), then in the "Text" tools change the text color to Black and the Fill color to white:
    (Selected the header cells)
    Changed the text/font color to black and the fill color to white
    Now you can see the detail view does not have the dark grey.
    Thanks,
    Josh

  • SAPScript: How to print mutiful forms in one program?

    Dears,
    I want to print invoice in my program, And one invoice number should print one form.
    My question is : if there is a internal table contains 10 different invoice number, and I want to print 10
    forms. Is that means, I should use FM 'OPEN_FORM' 10 times?       
    If do, I would have to fill the popup dialogue window 10 times.
    Anybody who have good ideas about this problem?     Thank a lot.
    Sincerely yours,
    Julie

    I suppose you want to print several sapscripts in one spool
    In that case you need to use START_FORM END_FORM
    It would be something like this
    OPEN_FORM
    Loop at invoices.
    START_FORM
    ENDFORM
    endloop.
    CLOSE_FORM

  • How to print a standard text of 3 pages in the script output?

    Hi all,
    I want to print a standard text as an include in the script output.
    But the standrad text is of 3 pages conataining continuous (some terms and condtitions) text.
    But while executing driver program, I am getting a STOP messgae pop-up saying 'Output is continuous or contains too many pages (>4)'.
    How to get the standard text of 3 pages in the output. The standard text is to be printed at the bottom of the output.
    Thanks,
    Sachin

    Hi ,
    To display standard texts you have to create a include in your script below is the syntax for that:
    INCLUDE name OBJECT name ID name PARAGRAPH name LANGUAGE   name
    Include command is used to include standard text in a form.the text 
    should be already defined by using transaction SO10.
    Here name is the name of text
    ID is used to classify text e.g. SDVD (SD related text) , ST (Standard text)
    OBJECT is used to specify type of object it an be TEXT , DOKU
    LANGUAGE is used to specify language like EN ,if ommited than logon
      language is used
    PARAGRAPH is used to specify the paragraph like C
    e.g. /:INCLUDE mytext OBJECT TEXT ID ST LANGUAGE EN
             Here the standard text created in SO10 with name mytext is
             included in the form in language EN (English)
    Please let me know if you have still any confusion.
    Thanks
    Narendra Vikram Vishwakarma

  • How to print a field on the last page of Smartform?

    HI FRIENDS,
    I NEED TO PRINT ONLY ONE FIELD IN LAST PAGE OF FORM SMARTFORM
    HOW DO I CHECK last page. I tried WITH THE FIELDS OF TABLE
    SYSF BUT NOT worked.
    Thank you.
    ROGERIO VAZ

    Hi,
    Goto the conditions tab of that window and enable the check box for Only after the end of main window.
    This will surely print your field in the last page.
    try this and get back to me if any issues.
    Regards,
    Anand.

  • How to print a field on the last page of Smartform with more  of 2 pages?

    HI FRIENDS,
    I NEED TO PRINT ONLY ONE FIELD IN LAST PAGE OF FORM SMARTFORM
    HOW DO I CHECK last page. I tried WITH THE FIELDS OF TABLE
    SFSY BUT NOT worked.      
    The form has  more of  2 pages.
    Thank you.
    ROGERIO VAZ

    Hi ,
    You dont have to hard code anything to achieve this functionality,
    just create a window and in that window define a text element to print
    that variable.In the conditions tab of that window check the check box
    "only after end of main window".i think you might have used a main window,
    so irrespective of the no of pages the smartform prints,it always displays that
    field in the last page of the smartform.
    regards,
    srikanth.

  • ADOBE: How to print a table only on uneven pages and a text on the back?

    Hi, I am looking for a clear document on how to use pagination and the Odd and Even pages.
    We need to print a table over several pages, but the table should only appear on Odd pages. The even pages should be skipped. On the even (back) pages we need to print "Terms and Conditions". Is that possible? Can it be done without scripting?
    We are using ADOBE version 8.1
    In the file properties, double sided is switched on, and version set to 8.1 and higher.
    I created two Master pages, a FrontPage with ContentArea1and a BackPage with ContentArea2.
    FrontPage is used for uneven pages, BackPage is used for the even pages. The masterpages are printed correctly (alternating properly).
    One page was created for the table, totals etc.:
    ITEMS: contains item data (table with header and footer). Place is "On Odd Page". After "Goto page BackPage", so there is always one page with the text. And if the table needs to be paginated it goes to BackPage with overflow leader "Conditions".
    What should happen is that on the front pages the item table is printed. If there are too many lines then it should continue on page number 3 then 5 etc. All the even pages should display text only.
    What actually happens is that the item table also gets printed in the content area for the Condition text...
    The best I could achieve is to decrease the contenta area of the back page. To force pagination. But still it prints one table record in the (very small) content area of the back page before paginating to the next page (front page again). If it only would not do that, it would be fine.
    Cheers,
    Edwin.

    Fixed it... After a lot of creating, deleting, playing around with pagination and the inevitable cursing...
    I have created 5 pages:
    1. FirstPage
         - Odd/Even: Odd (Front) Pages
         - Placement: First page (In page set)
    2. FrontPage (For Odd pages)
         - Odd/Even: Odd/Front Pages
         - Placement: Rest of Pages
    3. BackPage (For Even pages)
         - Odd/Even: Even (Back) Pages
         - Placement: Rest of Pages
    4. LastPage
         - Odd/Even: No Odd/Even Restrictions
         - Placement: Last page (In page set)
    5. DummyPage
         - Odd/Even: Blank pages
    The 'Terms and conditions' are located on the BackPage and LastPage (as a text).
    The table that is printed is (of course) located on a normal page (flowed subform).
    Pagination tab: Placement = Following previous, and After = "Continue filling parent". No overflow... Basically, it's all default.
    The table lines will now start on the first page and if there are more lines than can be printed on this page, it will continue in the next content area. That will be on the FrontPage.
    The trick is that each master page must have a content area (mandatory). Except for Blank pages, but these cannot be used... Blank pages would only be used once, after the first page.
    What I discovered is that you can drag a content area away from the Master page and attach it to a different master page.
    Logically, if there is no content area on a page, then data cannot be printed there. So, I created a Dummypage. On this page I dumped the content areas from the LastPage and the BackPage. As a result, content cannot be printed anymore on the back of pages. Only the standard text (a text field) is printed there. When the data from the table is overflowing, it will automatically overflow from the FirstPage to the next content area. Which is located on the FrontPages only.
    The DummyPage is NOT used anywhere.
    The result is that the records can only be printed on the content areas that exist on the First and Front pages. The back pages are now skipped.
    Duplex printing is now working correctly, and the text is printed on the back of all the pages.
    Cheers,
    Edwin.

Maybe you are looking for