How to print hard copy on client when form submit

I am using JSP 1.2 and JSTL 1.0 .
I have a situation where JSP sends dynamic content
page to the client browser.
On this page is a submit button. When the client
clicks on submit, the content on that page gets printed
to the default printer connected to the client' computer.
Also the printer setup dialog should not appear when submit
is clicked.
Is there anyway to do it using only JSTL on JSP or Java code in servlet
without using any scripting language like Javascript ?
Thanks for your thoughts

JSP cannot give you access to the local O/S commands such as the printing API. The closest you can get is to use <form name="form1" method="POST" action="mythankyoupage.jsp" onSubmit="window.print()">
</form>Unfortunately, you can still not guarantee this behaviour, my IE6 pops up a print dialogue on this command, other user settings will behave differently.

Similar Messages

  • How to print hard copy of web site?

    I am getting audited by the State.  Not for cause just routine.  However they ask for a lot of things.  One is a complete web site printout.  I have never done this in Dreamweaver and my help is not finding the answer I need.  Could you help me?

    Would going on line, or just opening your local files in a browser, and then printing each page out as a PDF work? Not sure how printer-friendly your site is and you may have to play with output settings to prevent awkward page breaks, but that was the first thought that came to mind.
    If the text itself is all that matters, you might could copy the only the content--e.g., <h>, <p>, <ul>, <li>, etc., tags--(again from the browser) and paste into your word processor, not forgetting to include the page title. I'm guessing my first option would more easily satisfy this requirement, though.

  • How to print hard-coded data in multiple language in sapscript.

    Hi All,
    How to print hard-coded data in multiple language in sap-script, here the requirement is when printing the output
    we can see the window heading, description which are mostly hard-coded here I want to print these in both language as fallows,
    Goods to be delivered: = Morada de Entrega:
    Total net value excl. tax = Valor Total (IVA não Incluído)
    Description = Descrição
    Item = linha
    here I want to print in both languages like----       Goods to be delivered:/ Morada de Entrega:
    and the above headings in English are hard-coded.
    Kindly suggest me on this.
    Thanks in advance.
    Arun.

    Hi Arun,
    Use Standard text ade those text elements. Then use those in SAP script using different languages.
    Regards,
    Amitava

  • PO should be send to vendor (PDF)as soon it is approved and print hard copy

    Hi,
    I have 2 requirements as below
    1) The PO should be send to the vendor in PDF as soon as it is released to the e mail id of the vendor maintained in the vendor master. Also a hard copy of the PO should  get printed.
    2)if the PO does not require a approval ,PO should be send to the vendor as soon as it is saved & print hard copy.
    Hi gurus can you pl tell me the stepwise config to be made.
    KN

    Hi,
    I just came across your post about Sending PO to a vendor through e-mail with PDF attachement.
    I have a similar issue on hand.
    My Program name - Z_SAPFM06P
    Routine - ENTRY_NEU
    Form - Z_MEDRUCK
    My requirement : After creation of a PO, on click of 'Save' button, an e-mail needs to be sent to a given receipient.
    As of now, I have included the code in the routine - ENTRY_NEU and I'm facing probelms with the FM - SO_NEW_DOCUMENT_ATT_SEND_API1.
    Pls let me know what exactly is the codeand where to I need to include it. Pls tell me how to go about tis issue step-by-step.
    In general you will have to do the following:
    1) Set NAST-NACHA = 8 (Special function)
    2) Before OPEN_FORM (maybe in In enhancement spot) if NAST-NACHA = 8, then set itcpo-tdgetotf = 'X' (to get OTF back from CLOSE_FORM!)
    3) During CLOSE_FORM, if NAST-NACHA = '8', get OTF output from TABLES parameter OTFDATA
    4) Convert this OTF output to PDF using following sample code:
    data: I_PDF STRUCTURE  TLINE occurs 0,
            I_OTF i_otf LIKE itcoo OCCURS 0.
        CALL FUNCTION 'CONVERT_OTF'
             EXPORTING
                  format                = 'PDF'
                  max_linewidth         = 134
             IMPORTING
                  bin_filesize          = w_bytes
             TABLES
                  otf                   = i_otf
                  lines                 = i_pdf
             EXCEPTIONS
                  err_max_linewidth     = 1
                  err_format            = 2
                  err_conv_not_possible = 3
                  OTHERS                = 4.
    5) Send email with PDF attachment using the method(s) mentioned in one of these excellent blogs:
    /people/thomas.jung3/blog/2004/09/07/sending-e-mail-from-abap--version-46d-and-lower--api-interface
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    pherasath

  • Printing Hard Copy of Calendar from MacBook Pro

    Is there a way I can make a printed hard copy of a moth of my Calendar always being with the same weekday? My preference happens to be Monday, however I can not find any setting that takes care of the inconsistencies I am experiencing. For example a printout of December 2014 and January 2015 both starts with Tuesdays. I run OS X Yosemite, and the "problem" seem to have started with the OS X update.
    Any help and suggestions will be very much appreciated.

    Yes, you are misinterpreting it. What the message is saying is that any synced photos that you currently have on your iPad will be replaced with those that you have selected to sync to it - photos on your Mac will not be affected.
    Synced photos can't be deleted directly on the iPad, instead they are deleted by not including them in the next photo sync.

  • Help with printing hard copy from Acrobat PDF

    Copy created in InDesign and printed to Adobe PDF is OK on screen but printing hard copy with random chunks of text missing. Same on both my printers, doesn't happen with doPDF. Any ideas? Thanks

    I suspect that what you are asking is simply to print to a new PDF with print as image selected. You can also save as an image file and then open the images as a new PDF.

  • How would I transfer contact list to outlook or to file so I could print hard copy of it.

    Basically subject line says it all. I would like to export contact list from phone to outlook express and or to a file that i could print a hard copy of. Is this possible? I have a day planner program that is on my computer that I would like to add all contacts from my phone to.
    Solved!
    Go to Solution.

    If you don't have Outlook or Excel you are going to have to use ASCII to output the file to notepad when you set upSynchronization chose ASCII and chose Notepad as the place to output the file.

  • HT3529 how do i get a printed/hard copy of a text:sms conversation from my iphone 3g model No a1303

    How do I get a hard copy/print of a text/sms conversation

    If you have a PC: http://www.wideanglesoftware.com/touchcopy/index.php
    If you have a Mac: http://www.ecamm.com/mac/phoneview/

  • How to print SOAP request at client program when program calls web service.

    Hi friends,
    While calling a web service, I am getting following error: javax.xml.rpc.JAXRPCException: Failed to parse WSDL
    I believe it is due to an invalid parameter set for the request soap. I need to analysis this error. Can you help me to print SOAP request at client program when program calls web service.
    Is there any way to print SOAP request XML?
    Thanks.
    Jaykishan

    Is this question related to Oracle SOA suite? Which client are you using? Use SOAPUI to validate whether WSDL is correct.
    Regards,
    Anuj

  • PRINT HARD COPY OF LOGO FROM ALV

    I can view my logo from the top of an alv grid, but when trying to print a hard copy of the logo it does not show up on the printed piece of paper along with my headings and detail.
    Is it possible to get a hard copy on paper of the "LOGO" using ALV ?
    Please provide the code if this is possible.
    If not, what are my options Sapscript, Smart Forms,,,OTHER????
    Thanks for your advice/help in advance.

    Hi,
    i think logos are NOT printable.
    I Use logos in ALV in these ways:
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                I_LOGO             = 'ENJOYSAP_LOGO'
                IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
    OR
      CALL METHOD DG_DYNDOC_ID_LOGO->ADD_PICTURE
        EXPORTING
          PICTURE_ID = 'ENJOYSAP_LOGO'.
    In both cases the logo cannot be printed.
    Regards, Dietere

  • How to print 2 copy of same page in smartform

    Hi,
    I have a form having one page which contains Main and few other windows. I have a template in Main window. My requirement is to print two copy of this page whenever print pgm gets executed. I tried by copying FIRST page as DUPLICPAGE and put this as NExt page to FIRST page but it is not working. Can anybody please suggest how to achieve this.
    Rgds
    Sid

    Hi,
       One way without Coading...
    1. Go to txn. NACE... select your application (for Ex. "EF")... then click on "Condition Records" button
    2. Select your Output Types...(ex. NEU)....
    3. Go to Change condtion Record Screen. Select ur condtion then click on "communication" button..
    4. Under Print Output Check the field "Number of Message" here maintain 2...
    Regards
    GK

  • PLD - How to print 'Offic Copy' or 'Customer Copy' on Docuemnts

    While printing various Marketing documents,  I need to print a messge saying 'Office Copy' on the 1st copy of the Marketing document and 'Customer Copy' on the second copy of the Marketing document,  Is it possible to do this using the PLD??
    Thanks!!
    Dana

    Dana,
    The solution I am suggesting is my approach to your scenario.
    Create a User defined field in the Marketing Documents ..Title level by going to Manage User Fields window, choose Tools  > User-Defined Fields > Manage User Fields.
    It can be an alphanumic field.. Check Set Valid Values for Field and define
    Office Copy
    Customer Copy
    Map this field into your PLD template and print.
    Alternate Approach.
    Is to use the Printed field in the ORDR table to check if the copy of the first copy or Second Copy. 
    SAP Stored 'Y' on 'N' in this field and the same is available in the PLD .
    In the PLD of the marketing document.. Page Header area
    Add a Database field from ORDR - Sales Order...Field: Printed
    Add a formula field and in the Contents Tab of the Field properties window .. Add formula to Check the Value of the Database Field you Added (Printed) = "Original"
    Example: Field_203 == "Original"  (suppose field_203 is the printed field you added)
    Add another formula field referring to the same printed field (Field_203 == "Copy")
    Add two Text Fields with Text "Office Copy"  and "Customer Copy"
    The the Office Copy text field, add the first formula field (Field_203 == "Original") as the link field and similarly the second formula field to the "Customer Copy" text field.
    This way when you print the First time, the marketing document would evaulate the Printed field and Print Office Copy and the Second time onwards it will print customer Copy.
    Good luck
    Suda

  • How to print BAR CODE in SAP SMART FORMS

    Hi,
    I want to print inspection lot's BAR CODE in the smart form, but i dont know the way how to print this into the smartform.
    if anyone have any idea, please suggest me how to print this as it is urgent for me to complete the object.
    Thanks in advance.
    Best Regards,
    Abnish Jain

    Hello Abnish,
    Welcome to SDN.
    We are able to print barcodes from smartforms. Doing this way, we print barcodes on laser printers.
    We are also printing from sap to zebra printers using two ways:
    1. Download the data to an excel sheet, then creating a macro that opens the printer port and sending the commands to the printer through this "file". All this is done via vb script provided with excel)..
    2. The second way is creating a vbscript (an ascii file from sap) with the printer commands and then runing it using ws_execute.
    You need a barcode reader to read the barcodes, and this scanner acts like a keyboard, it sends the data scanned to the active field on screen. (which might be a notepad, word, excel or an input field or ... ).
    From 4.6c on, you can use smartforms to print barcodes without buying any barcode.dll software nor hardware extention like Bardimm on any laser/inkjet printer (Please Note that I haven't mentioned Zebra printers here!). To do this, you have to create a smartstyle -> character format with the desired barcode font (defined within sap). Then in the smartform, create a window, put the field and associate it the character format. That's all (I mean, that's all we do at least :-). I think, you have to consider the barcode specifications before sending the barcode value to the smartform (Just an example, if you're using 3 of 9, the code should start and end with an asterisk - '*' -) We're printing an interleaved 2 out of 5 barcode in our invoices due to a legal requirement, and we did it this way.
    3. If you have a barcode scanner, then you should not need reading the barcode into an ascii file to get the data read in an standard or custom screen field. You can read it directly to the field you want. (unless... you have complex data coded in the barcode - for example if you're using an ean-ucc 128 compliant code and you're sending several fields in a single code ... In this case, an interface is almost mandatory because you must interpret the data fields according to the ucc standard, split the code into several fields .... and .... pure programming logic ).
    To put it clear: if you have to read, for example, a barcode that holds the legal number of an invoice using a barcode scanner and this number should be sent to migo-> bktxt then you don't need an interface. The scanner itself acts like a fast operator entering the characters using a keyboard and filling in the field.
    We're reading barcodes in several places (when we finish each pallet, when we receive an invoice, and so on. Each case is a different screen. We arent using an ascii file to read these barcodes. Furthermore, we read the invoice legal number into migo bktxt field (Head Text).
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    Regards
    Naren

  • How to print the overflow entries in Smart Form

    Hi all ,
    I am having a problem regarding smart forms . I have 30 entries in may data base table . Bt while I am going to print these data in smart form table it is showing only 16 entries .How to print rest of the entries in smart form ? Can anybody give me any solution .
    Thanks,
    Regards,
    Swashrayee
    Edited by: Matt on Feb 20, 2012 10:15 AM

    Hi,
    Are you sure you are entering the data in the main window .
    If you are using the secondary window,there is no flow text display with page break. If you position a subwindow with the same name on several pages, the system displays the contents of this subwindow on each page. Text and data that do not fit into the subwindow are truncated and not displayed.
    In a main window you display text and data, which can cover several pages (flow text). As soon
    as a main window is completely filled with text and data, the system continues displaying the text
    in the main window of the next page. It automatically triggers the page break.

  • How to Print Text in the PLD when we select Type : Text

    Hi All
    I designed a PLD for Purchase Order which is working well but
    whenever we select type: Text and we enter some text in the row level for each item. when we see the PLD priview
    Items are displaying but the text below the items are not displaying
    it displays an empty row after each item
    How should i print text in the PLD
    I required in this following Format
    ITEMCODE  DESCRIPTION      QTY
    001              XYZ                      20
    this is capital Good Item
    002             PQR                        30 
    this is Raw Material
    In this above format
    I didnt get the text below the Items
    Can any one suggest the correct answer

    Thanks for your reply
    I already select the linetext field from table POR10 and kept it  in the PLD
    but i didnt get my required format
    after giving that line text field  iam getting
    in this way
    S.No.        ITEMCODE   DESCRIPTION  QTY
       1               001               XYZ                 20
    this is Capital Goods
      2                                                                 
    this is Capital Goods
    the text is repeating twice
    I Put the ItemDescription field  in POR1 and Line Text Field in POR10 in the same repetitve area

Maybe you are looking for