How to print data using JSP

I have a jsp/html page. Which has some data and I want to print the data of that page using jsp.Means I want to display the page and an option which will ask whether user wants to print the page or not. And if the user select print option then it will print the displayed page using printer.
Please help me how I can proceed.
Regards,
Sundeep Mohanty

Yes
window.print will print the current displayed page
also...it wuill not print directly...but will open the print dialog box of ur default printer i guess.

Similar Messages

  • How can we store xml data using jsp

    hai,
    Can anyone please explain in brief how to store xml data using jsp. Also if possible please explain by specifying the code.
    regards,
    Praveen Vinnakota.

    [email protected] wrote:
    how can we publish Labview data using the web?
    You could use shared variables and publish them to the network or use data sockets.
    Kudos always welcome for helpful posts

  • How to print Data Model in Report??

    Do anyone know how to print Data Model??
    Thanks your help.
    - Frank

    Hi Venkat,
    Thanks alot.... i am checking the appendix k.
    I want to know that if i want to customize the report as per the client requirement,
    can you please let me know which template i will use if i required remittence advice as well as check print data on the layout.
    The following is the list of field i required:
    Vendor ID
    Check Date
    Check number
    invoice date
    invoice/ CR memo number
    invoice description
    invoice gross amount
    invoice discount amount
    invoice net amount
    total gross amount
    total discount amount
    total net amount
    logo
    company name and info
    bank name and info
    check number
    check amount spelled out
    check date
    check amount numeric
    payee name
    CEO signature
    MICR check number
    MICR routing number
    MICR bank account number
    mailing return address
    mailing address
    Venkat it would be great help if you please let me know the exact process to be follow for check printing report.
    I worked on bi publisher report in 11i, but in 12i the process is bit different.
    also if you have any template ready can you please send me on my mail id ... i forwarded you the test mail from my official id or on [email protected]
    Looking forward to your kind response.
    Regards
    Ratnesh

  • How to print date & time in photos

    Thanks for the help.
    I need to print either photos with time and dates in them... or the Bridge contact sheet with date and time info.
    The final printed image will be used in court to photo document evidence.
    Do I have to do a screen capture or is there some other way?
    My camera will not allow me to imprint time and date.
    I'm using CS4 on both Windows and Mac.
    Thanks again in advance for the taking the time to help.
    Dances With Pixels
    I may have sent this twice, but I'm new to this and this is my first time trying to post.

    Thank you for taking the time to respond.  Much appreciated. 
    And will follow up on your suggestions.
    Date: Tue, 10 Aug 2010 23:55:31 -0600
    From: [email protected]
    To: [email protected]
    Subject: How to print date & time in photos
    I think there are (various) Scripts about for that.
    For example addExifDate1.5.jsx:
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1346521
    One should be able to adapt it to include the time.
    You could ask in the Photoshop Scripting Forum or http://www.ps-scripts.com/
    >

  • How to print date & time stamp on photos?

    How to print date & time stamp on photos?

    Three methods:
    File>process multiple files>labels. Be sure to uncheck "same as source", or the originals will be overwritten. It is best to work on duplicate files, esp. while learning.
    Use the horizontal or vertical type tool to add the information manually to each picture file
    If the same information is to be applied to several pictures, e.g. a copyright notice, use  of a brush made in PSE is very efficient

  • How to print date in cheque box in sapscript??

    Hello Guru,
    We have developed or design new form for cheque printing in sapscript
    how to print date in cheque box in sap.
    1
    6
    1
    2
    2
    0
    1
    1
    thanks in advance.
    Thanks & Regards
    Richa

    hi,
    If your requirement is to display date with box,first create a Box by using following syntax
    *   &sy-datum&
    /:  BOX XPOS '0' CH YPOS '3.65' LN WIDTH '77.50' CH HEIGHT '4.5' LN FRAME '10' tw
    then adjust the box size according to your requirement by changing xpos,ypos,width and height
    with regards
    Edited by: naresh bammidi on Dec 16, 2011 8:00 AM

  • How to run exception using JSP?

    How to run exception using JSP?

    Why would you need the <%%> between the if else blocks? Even if you attempt to write some data within the blocks in java, you will still get an error. For example, this is illegal:
    if(done)
        System.out.println(true);
    System.out.println("Hello World");
    else
        System.out.println(false);
    }The compiler is expecting the 'else' to be directly after the body of the if. If it encounters anything else, it will complain. So you cannot do this in jsp either, regardless if it's a different technology, it's the same compiler.

  • How to export data in JSP to MS excel

    hi frens..
    anyone out there knows how to export data in JSP to Ms excel .. i already add this code inside my jsp..
    <%@ page contentType="application/vnd.ms-excel" %>i need to retrieve the data from the database to excel.. it's something like a report display in the excel.

    set the response type as....
    response.setContentType("application/vnd.ms-excel");
    U must be geting the data from the database...
    get the data ...
    rs=st.executeQuery(sql);
    where sql is ur query and use it as usual....

  • How to print date/time in report page footer?

    Hi
    I have a report which users can print as PDF.
    However, I like to display current date/time in report footer.
    I can see the Page Footer in section but can't figure out how to print date/time there.
    Thanks for help.

    hi movilogo
    Please try this.
    Create hidden item P1_DATE
    Create On load process in page 1 and put this code
    begin
    :P1_DATE:=TO_CHAR(SYSDATE,'DD-MON-YYYY HH:MM:SS');
    end;
    Open your region in Page 1 put this code in Footer area
    *&P1_DATE.*
    Refresh your page.
    you will get the output like this.
    16-SEP-2009 11:09:17
    thanks
    Mark Wyatt

  • A relative synced my iphone with his laptop without me knowing. It had a passcode on the phone but the sync still worked. I have since found out he is quite IT knowledgeable and has been known to track other peoples phones.  How is this data useful to him

    A relative synced my iphone with his laptop without me knowing. It had a passcode on the phone but the sync still worked. I have since found out he is quite IT knowledgeable and has been known to track other peoples phones that he wants to know information about.  How is my data useful to him and can he restore this data on another iPhone and run it parallel to mine? I have had people send me messages which I have not received. These have been screen shot to me later including time and I have just not got them. I had 4 weeks worth of messages go missing from my phone..I know that he synced my phone because his work laptops I'd came up in my settings. Also if the above can be done can he change the settings on my actual phone and access my location without placing tracking software on my phone.  Can someone please help here as I can't restore a backup to my phone for obvious reasons and refuse to change my number because of this loser.

    Connect the device to the computer.
    In iTunes, select the content desired to sync.
    Sync.
    This is all described in the User's Guide, reading it may be a good place to start.

  • How to print data in CCMMDDYY

    how to print data in the following format
    "CCMMDDYY"

    hi
    good
    yes you can very much print in that format, just follow this process
    1-declare 4 strings
    2-store all the different type of data in different variables
    3-concatenate them and store them in a different variable
    4-display tht varibale which contain that concatenate value
    thanks
    mrutyun^

  • How to print Barcode using SAPscript?

    hello, everyone.
    I have some questions.
    now, I have to print some doc. that described by barcode in sapscript form.
    so, try to test in t-code so10
    input value SAPSCRIP-BARCODETEST, ST, EN.
    and click 'print-preview'
    result is correctly output in pint privew.
    but when I print dis priviewed doc. disappeared barcode image.
    is this O.K??
    I have to do something?? (Add DLL file, barcode font or etc....)
    I don't know how to print barcode using SAPScript. anybody solve this problem.please.
    p.s this system is SAP ECC 6.0 only ABAP.
    printer setting is front-end print.

    hello, everyone.
    I have some questions.
    now, I have to print some doc. that described by barcode in sapscript form.
    so, try to test in t-code so10
    input value SAPSCRIP-BARCODETEST, ST, EN.
    and click 'print-preview'
    result is correctly output in pint privew.
    but when I print dis priviewed doc. disappeared barcode image.
    is this O.K??
    I have to do something?? (Add DLL file, barcode font or etc....)
    I don't know how to print barcode using SAPScript. anybody solve this problem.please.
    p.s this system is SAP ECC 6.0 only ABAP.
    printer setting is front-end print.

  • How to print documents using correspondence types?

    Sir/Madam,
    I am in the process of preparing the End User document for "How to print documents using correspondence types?  on client request.Plz give me the required stuff to prepare that.This is an urgent requirement.help me ASAP.
    Thanks in advance
    Regards
    Sap Guru
    [email protected]

    Hi
    use t.codes, FB12 & F.64
    Award points if it is useful
    Regards,
    A.Anandarajan

  • How to write printing function using JSP?

    dear all,
    i want to add a printing function in my project but i do not know how to do it? could anyone teach me how to do it?
    thanks
    eric

    salut eric,
    you can do it this way :
    1 - create a html link in your code to this javascript
    function : (I am using Struts, but you can write it in
    pure html
    <html:link href="#bodyStart"
    onclick="openWindowForPrinting()"
    titleKey="msg.status.print">      <bean:message
    key='app.print' />
    <script language="JavaScript">
    <!--
    window.open = SymRealWinOpen;
    //-->
    </script>
    </html:link>
    >
    >
    2 - here is the javascript function : it open a window
    with the "print.jsp" page.
    function openWindowForPrinting(){
    window.open('/your_project/pages/common/print.jsp','',
    'left=150, top=150 , status=no, directories=no,
    toolbar=no, menubar=yes, location=no, scrollbars=yes,
    resizable=yes, dependant=yes');
    3 : here is the print.jsp page : You have only to
    create a session variable called
    "currentBodyRelativeLocation", which content the
    relative URL to the page you want to print (for
    example, the boby of the current page).
    <%@ taglib uri='/WEB-INF/tlds/perso.tld'
    prefix='perso' %>
    <html>
    <head>
    <perso:csslink page='${cssRelativeLocation}' />
    </head>
    <body onload="var SymTmpWinOpen = window.open; window.open = SymWinOpen; printPage();; window.open = SymTmpWinOpen;">
    <body>
    <jsp:include page="${currentBodyRelativeLocation}"/>
    </body>
    <script language="JavaScript">
    <!--
    window.open = SymRealWinOpen;
    //-->
    </script>
    </html>
    <script language='javascript'>
    function printPage(){
    window.print();
    window.close();
    </script>
    hai,
    i'm not very understand how is your code work. when i write html code, do i need to mind about this code: "msg.status.print" ? what is this code mean?
    i have too much question on this thing. would you mind to be further explain to me? or is it any reference for me to refer? i'm really new to write printing function on JSP.
    i never write this function before. i'm feel so lost.....:(
    thanks again
    eric

  • How to print report from JSP Page

    Hi Everybody,
    I am developing a simple project in JSP with MS Access. I hav some tables and reports for them. I hav a JSP page which gets inputs from user and save it in the table. Its working fine. But my problems are,
    1) I hav a button called "SAVE & PRINT" in that bottom of the page, if i click that button, the currently entered data has to save in the table and the same data has to print from the MS Access report. I dont know how to print this report from JSP page.
    2) Another button called "REPRINT". If i click that button, it has to ask a number to print the report page, that number is nothing but a field in that report.
    Could anyone help me to solve this problem.

    Hi Everybody,
    I am developing a simple project in JSP with MS Access. I hav some tables and reports for them. I hav a JSP page which gets inputs from user and save it in the table. Its working fine. But my problems are,
    1) I hav a button called "SAVE & PRINT" in that bottom of the page, if i click that button, the currently entered data has to save in the table and the same data has to print from the MS Access report. I dont know how to print this report from JSP page.
    2) Another button called "REPRINT". If i click that button, it has to ask a number to print the report page, that number is nothing but a field in that report.
    Could anyone help me to solve this problem.

Maybe you are looking for

  • IPad 2 Restore - Apps Will NOT Install

    I have recently been having intermittent problems with my home button being unresponsive on my iPad 2.  I decided I would try a restore to see if this would resolve the problem.  The home button issue may be better (more time will tell) but whoa did

  • ICloud available for Windows Vista, but not Snow Leopard???

    I have Multipal Macs with the Core Duo chipset that can not run LION and no $$$$ to upgrade hardware right now.  WHY does Windows VISTA get iCloud suport but I who can't upgrade to LION do not? I understand leaving out Leaopard, but SNOW too?

  • Jheadstart 10.1.2. used witj jdev 10.1.3

    Hello All, Can I use jheadstart 10.2.3 in combination with jdev 10.1.3? Regards, Menk Slot

  • Mapping and global container?

    I have to map single different field IN_F1 to three output fields.. 1) map the input field value IN_F1 to output field value OUT_F1 2) a) based on the INPUT field value , conditionally map incremental numbers to OUT_F2. For example, if IN_F1 is 'X',

  • How to do Service GRR Reverse / Cancel through ML81N

    Hi, When i m reversing the Service GRR through ML81N, we are facing the below mentioned error: - 617 Acquisition value negative in area 01 . Kindly help me... Regards...