How to Print in WDA using a Button. .

Hi Experts,
Can u Pls let me know how to print the displayed data from a table on a action button.
I have the req to take print of the ALV display from the webdynpro application.
Regards,
Rahul Sharma

Thanks for your reply Saurav,
Actually i am not calling any ALV, but i have a table display in my Application and i need to take print of the page with all the records in that table using a Button (on action). Pleas tell me the alternatives if u can.
Regards,
Rahul Sharma

Similar Messages

  • How to print PDF files using java print API

    Hi,
    I was goign throw lot of discusion and reading lot of forums related to print pdf files using java api. but nothing seems to be working for me. Can any one tell me how to print pdf files using java api.
    Thanks in advance

    Mike,
    Can't seem to get hold of the example described in your reply below. If you could let us have the URL to get then it would be great.
    My GUI application creates a pdf document which I need to print. I want to achieve this using the standard Java class PrinterJob (no 3rd party APIs I'm afraid, commercial restraints etc ..). I had a stab at it using the following code. When executed I get the pretty printer dialog then when I click ok to print, nothing happens!
    boolean showPrintDialog=true;
    PrinterJob printJob = PrinterJob.getPrinterJob ();
    printJob.setJobName ("Contract.pdf");
    try {
    if (showPrintDialog) {
    if (printJob.printDialog()) {
    printJob.print();
    else
    printJob.print ();
    } catch (Exception PrintException) {
                   PrintException.printStackTrace();
    Thank you and a happy new year.
    Cheers,
    Chris

  • How to print Pdf files using Adobe Reader

    How to print Pdf files using Adobe Reader

    Open the PDF file with File > Open... in Adobe Reader and print it with File > Print

  • How to print double sided using an HP photosmart printer

    How to print double sided using an HP photosmart printer

    Follow the instructions for your Printer?
    We don't even know which one, there must be hundreds of Photosmart models.
    Peter

  • How to disable the inputfield using radio button dynamically in module pool

    How to disable the inputfield on the screen using radio button dynamically in module pool.
    Please suggest .
            Thanks.
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:20 PM

    I got it thank you.
    LOOP AT SCREEN.
        if  screen-GROUP1 = 'LA1'.
           If RADIO1 = 'X'.
            SCREEN-INPUT = '0'.
            MODIFY SCREEN.
         ELSEIF RADIO2 = 'X'.
           screen-input = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:51 PM

  • How to Print Employee Photo using Smartform

    Dear All,
    I have requirement to print Employee photo using Smartform.
    Here I want to give breif backgorund to uploading employee image procedure,we are uploading employee Image using transaction code OAOH by providing Business Object PREL and Document Type HRICOLFOTO. Click on create button on second screen by providing employee Code XXXXXXX and infotype 0002  after click on enter button system ask path for uploading image file.After storing image we can see the employee image by using transaction code PA30 after passing employee code.
    These employee image  I want to print in Smartform layout.If any body have done this type of the requirement.Pl.explain me .
    Thanks ,
    Regards

    Hi ABAP Programmer,
    Refer this link
    i  want to retrieve a photo image of an Employee to display in smartforms
    Regards,
    Sravanthi

  • How to get current row using submit button ?

    Hello Friends ,
    Is there any way i can capture the value of current row by submit button ?
    Here is my requirement , i have seeded OAF screen and it has table region one of the column has radio button , the existing
    functionality is when ever the radio button is selected and click on submit button ( submit button attached on top of the table region )
    other oaf page is getting opened .
    Now i wish to restrict the navigation based on some condition , but i don't know how to get the current row using submit button .
    Note : there is no Fire Action event for radio button column ? I dont' know how orale is selecting a specific row
    Any suggestion please ?
    Regards ,
    Vamsi

    Thanks sushant for your response ,
    Well i have tried your approch , i am not getting values for current row .
    if (pageContext.getParameter("paApply") != null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject localOAViewObject1 = (OAViewObject)am.findViewObject("ProjectDatesVO");
    if(localOAViewObject1!=null) {
    Row DateVoROw = localOAViewObject1.first();
    RowSetIterator iterator = localOAViewObject1.createRowSetIterator("iterator");
    iterator.setRangeStart(0);
    iterator.setRangeSize(localOAViewObject1.getRowCount());
    for(int i=0; i<iterator.getRowCount(); i++)
    DateVoROw=iterator.getRowAtRangeIndex(i);
    String vacancyValue= DateVoROw .getAttribute("vacancyname).toString();
    Could you please let me know where i am going wrong
    Thanks again ,
    Vamsi

  • How to print a doc using  Reader 11.0.3.37

    I am unable to print a document using Adobe Reader 11.0.3.37.
    Any ideas about how to do so?

    When I try to print the doc, I selected the particular doc to print (copy), the ckicked on to "view document", and a gray screen populates without any graphics.
    The error message that I got, after one try, was to the effect that a problem existed in my security set-up. 
    I checked the security system software file and read that the Adobe Reader was installed and "running", yet I have not discovered what I need to do to get a print of the doc. 

  • How to print out answers using the form I created

    I created an application form for my company. People have submitted their applications, but I do not know how to print them out.
    Is there a way to copy the answers into the form and print that? Or something like that?
    I cannot just print the answers because it's over 100 pages and would be disorganized.
    I basically just need to know how to print out the form I created with the respondants answers.
    Thanks

    Here is what you can do...
    Open the form file
    Go to the View Responses tab
    Select the View menu in the upper right corner of the UI
    Select the Details View menu item on that menu
    The Details View pane will open on the right side of the window
    At the bottom of that pane there is a set of buttons
    The first button let's you print the detail view of the currently selected response
    The last button labeled Export will create a PDF file of the selected response
    Is that what you were trying to accomplish? I'll admit that we need to make print and export to PDF more discoverable and easier to get to - that was too many steps
    Randy

  • How to close Browser by using a button

    I want to close my browser window using a button in ADF JSF Page.
    How it can be done .... ?
    Regards
    MS Arain

    Thanks to all of you i got a hint from your guys which resolve the issue
    however i want to share how i have resolved this issue i may be wrong
    or there may be any easy alternative that is why i am sharing it.
    I adopted the following steps
    1. Add a New Command Button in my JSF Page
    2. Attached a client listener with the command button
    <af:commandButton text="Close &amp; Exit" id="cb8">
    <af:clientListener method="closeWindow" type="action"/> ---// This is the attachment syntax
    </af:commandButton>
    3. Define a closewindow java script as follows
    <af:resource type="javascript"> --// this is how we declare/define java script in ADF
    function closeWindow(actionEvent) {
    window.close();
    </af:resource>
    Regards
    MS Arain

  • How to print external file using ABAP program

    Hello
    I want to print an external file which is located in server (
    20.99.0.18\GUI\xyz\8.0QUALITY\QM_TS.DOC) .....i want to print these kind of files(which i have retrieved from table 'DRAW' field 'filep' )......i need to print these files using ABAP program.
    thank you
    Vikram.
    Message was edited by:
            Vikram Bojja

    extract the data and pass to script or smartform for printing

  • How do I print a topic using skin button?

    I have tried achieving this using the toolbarscripts01.js created by Willem Van Weeden on Peter Grainge's site. I've implemented .js in the skin for use with PDFs before, so I'm pretty sure I'm doing it right, but on click, nothing happens, when it should print. Script and instructions can be found here.
    http://www.grainge.org/pages/authoring/twisty/twisty.htm
    I'm using RH10 and outputting WebHelp.
    I should also mention that I first tried the method called Print Button for WebHelp on this page, but it didn't work either.
    http://www.grainge.org/pages/snippets/snippets.htm#print
    Has anyone else successfully created a print topic button in the skin nav bar? Any suggestions for alternatives or what I might be doing wrong?

    Neither of the scripts would be there unless they had been tried first.
    The first one has a Rh project set up that you can download. First please try that and confirm that it is working there.
    Are you testing on generated output rather than preview?
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to print multiple pages using Internet Explorer with af:showPrintablePageBehavior

    Hello,
    I am facing one issue with using af:showPrintablePageBehavior. I found similar posts and google pages, but unable to fix the issue. Most relevant post is,
    Print issues with af:showPrintablePageBehavior and Internet Explorer
    I have a page show in a af:popup. This page contain a Title in the top, af:outputText and a Print button below it. I have added af:showPrintablePageBehavior to Print button. I am using lots of data in the af:outputText. When I click on Print button, showPrintablePageBehavior is opening new browser window with multiple pages. But when I click on the Print Preview or Print, only first page is shown.
    I have tried the solution mentioned in above post but no luck.
        <f:verbatim>
            <style type="text/css">
                textarea {
                    width: 95%;
                    height: 350px;
                    overflow: auto;
                @agent ie {
                    af|document:maximized::printable {
                        position: static;
            </style>
      </f:verbatim>
      <af:panelStretchLayout bottomHeight="10%" startWidth="0%" endWidth="0%" topHeight="10%" inlineStyle="height: 100%; width: 100%">
      <f:facet name="top">
      <af:panelGroupLayout id="pnlGrpTitle"  layout="vertical" halign="center" inlineStyle="width: 100%;">
      <af:spacer id="titleSpacer" height="10px" />
      <af:label value="Title" inlineStyle="font-weight:bold; font-size: 16px; color:#000066; padding-left: 5px" id="dialogTitle" />
      <af:spacer id="titleSpacer2" height="20px" />
      </af:panelGroupLayout>
      </f:facet>
      <f:facet name="center">
      <af:panelStretchLayout bottomHeight="0" topHeight="0" startWidth="0" endWidth="0">
      <f:facet name="center">
      <af:panelStretchLayout bottomHeight="0" topHeight="25" startWidth="0" endWidth="0">
      <f:facet name="center">
      <af:panelGroupLayout id="pnlTextArea" layout="scroll">
      <af:outputText binding="#{mybean.tfdArea}" escape="false" id="tfdArea" />
      </af:panelGroupLayout>
      </f:facet>
      </af:panelStretchLayout>
      </f:facet>
      </af:panelStretchLayout>
      </f:facet>
      <f:facet name="bottom">
      <af:panelGroupLayout id="pnlGrpBottom" layout="vertical" halign="center" inlineStyle="width: 100%">
      <af:commandToolbarButton id="cbPrint" shortDesc="Print" icon="/images/print.png" inlineStyle="width: 40%" >
      <!--af:clientListener method="self.print" type="action"/-->
      <af:showPrintablePageBehavior />
      </af:commandToolbarButton>
      </af:panelGroupLayout>
      </f:facet>
      </af:panelStretchLayout>
    Any idea how to fix it?
    - Sujay

    Hello,
    I am facing one issue with using af:showPrintablePageBehavior. I found similar posts and google pages, but unable to fix the issue. Most relevant post is,
    Print issues with af:showPrintablePageBehavior and Internet Explorer
    I have a page show in a af:popup. This page contain a Title in the top, af:outputText and a Print button below it. I have added af:showPrintablePageBehavior to Print button. I am using lots of data in the af:outputText. When I click on Print button, showPrintablePageBehavior is opening new browser window with multiple pages. But when I click on the Print Preview or Print, only first page is shown.
    I have tried the solution mentioned in above post but no luck.
        <f:verbatim>
            <style type="text/css">
                textarea {
                    width: 95%;
                    height: 350px;
                    overflow: auto;
                @agent ie {
                    af|document:maximized::printable {
                        position: static;
            </style>
      </f:verbatim>
      <af:panelStretchLayout bottomHeight="10%" startWidth="0%" endWidth="0%" topHeight="10%" inlineStyle="height: 100%; width: 100%">
      <f:facet name="top">
      <af:panelGroupLayout id="pnlGrpTitle"  layout="vertical" halign="center" inlineStyle="width: 100%;">
      <af:spacer id="titleSpacer" height="10px" />
      <af:label value="Title" inlineStyle="font-weight:bold; font-size: 16px; color:#000066; padding-left: 5px" id="dialogTitle" />
      <af:spacer id="titleSpacer2" height="20px" />
      </af:panelGroupLayout>
      </f:facet>
      <f:facet name="center">
      <af:panelStretchLayout bottomHeight="0" topHeight="0" startWidth="0" endWidth="0">
      <f:facet name="center">
      <af:panelStretchLayout bottomHeight="0" topHeight="25" startWidth="0" endWidth="0">
      <f:facet name="center">
      <af:panelGroupLayout id="pnlTextArea" layout="scroll">
      <af:outputText binding="#{mybean.tfdArea}" escape="false" id="tfdArea" />
      </af:panelGroupLayout>
      </f:facet>
      </af:panelStretchLayout>
      </f:facet>
      </af:panelStretchLayout>
      </f:facet>
      <f:facet name="bottom">
      <af:panelGroupLayout id="pnlGrpBottom" layout="vertical" halign="center" inlineStyle="width: 100%">
      <af:commandToolbarButton id="cbPrint" shortDesc="Print" icon="/images/print.png" inlineStyle="width: 40%" >
      <!--af:clientListener method="self.print" type="action"/-->
      <af:showPrintablePageBehavior />
      </af:commandToolbarButton>
      </af:panelGroupLayout>
      </f:facet>
      </af:panelStretchLayout>
    Any idea how to fix it?
    - Sujay

  • How to print all columns using af:showPrintablePageBehaviour component ?

    Hi,
    JDev ver : 11.1.1.2.0
    I have 25 columns in my table and table is surrounded by panel collection.
    In panel collection toolbar facet I have added one command button and inside command button I have added af:showPrintablePageBehaviour compoent.
    I can able to see only 15 columns which are fits to entire browser window.
    How can I print all 21 columns using this in new browser window or any other way ?
    regards,
    devang

    Hi,
    showPrintable behavior only removes action components and beside of this renders the screen as you have it. If the screen you have doesn't show all of the columns then show printable behavior doesn't do either and you may need to look for alternative printing/reporting solutions
    Frank

  • How to print all pages using ALV from CL_SALV_TABLE?

    Dear friends,
    I have a report which displays a dynamic internal table using CL_SALV_TABLE. The display format is normal list.
    And since this dynamic internal table is big, I have divided it into a sub internal table which displays 10 columns in one page at one time. And each page is displayed using a customized button that I set as MyFunction.
    The problem is, when I click List->Print or Ctrl-P, the system will only send to spool the current page even though in the Print dialog box, I choose Print All option.
    Is there a way to rectify this? Thanks.

    Hi,
    Try this..code...the above FM expects purchasing organization..revised code below mentioned..
    please try..
    DATA: kdy_val(8) VALUE '/110'.
      SET PARAMETER ID 'LIF' FIELD 'VENDOR'.   " Pass the vendor
      SET PARAMETER ID 'KDY' FIELD KDY_VAL.
      CALL TRANSACTION 'XK03' AND SKIP FIRST SCREEN.
    Thanks
    Naren

Maybe you are looking for

  • Photo Orientation around the Compass

    When upgrading to the 3.0 for the iphone, I noticed when viewing photos, the orientation only works to 3 sides. If you viewing in a landscape mode, I can turn my iphone 180º, the photos will flip to match orientation. When viewing in portrait and tur

  • Why are my pics blurry after iCloud back up?

    I got my phone replaced at backed up at the apple store. After the back up I noticed my pics were blurry and I was not able to play the videos I had saved on my phone. Is there a way to fix this?

  • HT2480 Is there a way to clear the calendar invitations from the iPhone invite inbox when the Meeting is accepted by a delegate?

    I am running an Exchange / Outlook 2010 environment with many mobile users accessing email and calendars with iPhones.  Senior Executives have delegated their Calendars to Executive Assistants, who manage them mostly from Outlook.  When Meeting reque

  • P & l Account Type Creation

    Hi Friends,                 I am a beginner in FICO.I am having a problem while creating a GL account.The problem is that whenever I am creating a GL account of particular king, I am getting a message that there is no P & L account type for this part

  • Parameters for Auto reaction method

    Hi All, I have done BPM for monitoring a batch job and a service desk message is generating every time the job is cancelled, by using an auto reaction method. As the ticket is generating now, I want the job details also to come in the ticket. Like na