Printer friendly version of a jsp page

Hi
i have a results.jsp page that displays certain data in a table format.I also have a print button on this page, which on clicking should bring up a new page with all teh data in the results page and should be printer friendly.How do I accomplish this.
Thanks.

http://www.javascriptkit.com/dhtmltutors/cssmedia.shtml
http://www.w3schools.com/css/css_ref_print.asp
http://www.w3schools.com/css/css_mediatypes.asp
http://webdesign.about.com/od/printerfriendly/
andi

Similar Messages

  • Opening a saved printer friendly version of a web page (PDF) opens a print dialog.

    On the web I asked to view a printer friendly version of the page which opened a PDF which I saved.  When I attempt to open the saved PDF it automatically brings up the print dialog. If I cancel the print it opens in Adobe Reader.  What can I do to open the file without the print dialog popping up

    Hi Stanley Trela,
    If you are on Windows, open up your application preferences, then go to the "Security (Enhanced)" category and deselect "Protected View". If you are on a Mac, unfortunately, the only workaround is to "print as image" - you can select that after clicking on the "Advanced" button on the print dialog.

  • Printer friendly version of a js page

    Hi
    i have a results.jsp page that displays certain data in a table format.I also have a print button on this page, which on clicking should bring up a new page with all teh data in the results page and should be printer friendly.How do I accomplish this.
    Thanks.

    http://www.javascriptkit.com/dhtmltutors/cssmedia.shtml
    http://www.w3schools.com/css/css_ref_print.asp
    http://www.w3schools.com/css/css_mediatypes.asp
    http://webdesign.about.com/od/printerfriendly/
    andi

  • JSP for Printer Friendly Version - urgent help

    Hi all,
    I have a JSP web application to collect student's homework. It needs to render the webpage to a printer friendly version with custom headings for easy print out by the teachers. The different submission should be printed out on seperate pages, but since the length of each homework is different, I cannot find a better way to reach the goal. Does any one have any ideas about this?
    Any input would be highly appreciated!
    Thanks.

    Yes, it's such a shame. If it hadn't been an urgent question there might have been some point in my answering it. Obviously too late now though...

  • I am running XP SP2 fully patched. I recently upgraded to 3.6.3 and since then, clicking on an icon that normally would open another windows (for example, a printer-friendly version of the current web page), nothing happens. In these situations, I have be

    I am running XP SP2 fully patched. I recently upgraded to 3.6.3 and since then, clicking on an icon that normally would open another windows (for example, a printer-friendly version of the current web page), nothing happens. In these situations, I have been forced to go to IE or Crome in order to accomplish what I need to do. Very frustrating. Also clicking in the slider area has no effect. "Page Up" and "Page Down" keys work. Holding down left mouse button on slider works. Also very frustrating. Can someone help
    == This happened ==
    A few times a week
    == Upgraded to 3.6.3.

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • Printer friendly version of a page

    Is there a way to display/print a printer friendly version of a page (without all the graphics, etc.)?
    Any ideas?
    bob

    Bob:
    Duplicate the page in iWeb but don't include it in the navbar, remove everything but what you want on it to print, name it "printpage" and publish. Go to your site and enter the URL: http://web.me.com/YourMMe_Account_Name/SiteName/printpage.html. Check to see that it is what you want.
    Open the site in iWeb and on the original page add a hyperlink titled "Printer Friendly Page" or something like that, select the text and use the Inspector/Link/Link pane to create a link to that printpage url as an external page and set it to open in a new window.
    To make the site more printer friendly set the page and browser background to white and remove any items that don't need to be printed. Also make sure any text is in a Web Safe Font and there's no drop shadow or other enhancement that would convert the text box to an image.
    OT

  • Printer Friendly Version

    I am currently designing a site where each page needs a
    printer friendly version. I thought about creating all the pages in
    a simple format using CSS and then linking a button from the
    complex page to the simple page.
    However, I have appeared on this forum before and have been
    encouraged to look at this article (I don't expect you busy people
    to read it!)
    Click Here To
    View Article
    The article sets a CSS document for the printer friendly
    versions. However, when I put a button into my non-printer friendly
    version (HTML) how do I make it create a new document with the new
    CSS rules? Would I have to use a CSS swapper?
    Thanks in advance.

    No buttons are needed.
    If you setup you page and CSS documents correctly, when a
    user chooses Print
    from their browser's menu, they'll get the print friendly
    version.
    "ForensicBop" <[email protected]> wrote in
    message
    news:f2adde$pv9$[email protected]..
    >I am currently designing a site where each page needs a
    printer friendly
    > version. I thought about creating all the pages in a
    simple format using
    > CSS
    > and then linking a button from the complex page to the
    simple page.
    >
    > However, I have appeared on this forum before and have
    been encouraged to
    > look
    > at this article (I don't expect you busy people to read
    it!)
    >
    http://alistapart.com/articles/goingtoprint
    >
    > The article sets a CSS document for the printer friendly
    versions.
    > However,
    > when I put a button into my non-printer friendly version
    (HTML) how do I
    > make
    > it create a new document with the new CSS rules? Would I
    have to use a CSS
    > swapper?
    >
    > Thanks in advance.
    >

  • I can't print printer friendly version on Ancestry.ca whereas Internet Explorer can.

    I have a family tree on ancestry.ca that can be printed on using a printer friendly version. I have used Firefox in the past with no problem printing, but recently when I tried to print, it would only print the first page. I went to print preview and it would only show the first page. All the rest were blank except for the headers and ancestry logo. When I emailed them with the problem, they suggested that either the web browser I was using or my antivirus program was the problem because they went into my account and everything seemed to be working properly. I tried Internet Explorer and everything worked fine. No problems printing. Fire Fox is my default browser and I prefer to use it but something has changed recently. I don't recall changing any settings so perhaps you could tell me what the problem is.

    Hi Bigggtommy, you wrote:
    <blockquote>When I click print (top left) it says "an error occurred while printing"
    </blockquote>
    Do you mean you can't even call up the Print dialog from the File menu without getting an error, or is that after calling up the dialog and clicking OK?
    When you select Print from the 3-bar menu, Firefox should call up Print Preview. So neither method is working for that.
    It seems that Firefox is having a severe issue with reading some metrics from your printer driver or has some other setting or program problem.
    In case one of your extensions is involved, could you test the page in Firefox's Safe Mode? That's a standard diagnostic tool to deactivate extensions and some advanced features of Firefox. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    Not all add-ons are disabled: Flash and other plugins still run
    After Firefox shuts down, a small dialog should appear. Click "Start in Safe Mode" (''not'' Reset).
    Any difference?

  • When attempting to print from a printer friendly version the print window is empty.

    When attempting to print from a printer friendly version the print window is empty. I have also noticed if I click on all programs and Acrobat.com the window that opens says unable to connect to the internet. I can even be on the internet and do it. I have downloaded the reader DC suggested under document to print. [personal information (email address) removed by moderator]

    Hi,
    Would you tell us the exact name of the application that you use?  What is your operating system?
    Is it "Adobe Acrobat Reader DC", "Adobe Acrobat Pro DC", or "Adobe Acrobat Standard DC" for desktop computers? 
    Or "Adobe Acrobat DC for iOS" or "Adobe Acrobat DC for Android" (for mobile devices)?

  • Regarding the printer-friendly versions of wiki articles...

    Hey, I just have a suggestion for the layout of the wiki. I don't see why the little translation/language box is needed for the printer-friendly versions of any of the articles. It's a minor complaint, really, but it gets on my nerves a little bit. I propose you get rid of it. (the categories at the bottom are also not very necessary for a printed article)
    Anyways, like I said it's just a suggestion, do with it what you will.

    is there a chance you could take a look at the css for printing and give me a patch? I agree with you about htem being unnecessary, but i'm not sure it's possible to get rid of the translation box because of the way it's set up. The categories are probably just a display:none somewhere.

  • How to print our custom message in jsp page

    i have used the below line, but its not displaying in jsp
    addFormException(new DropletException("Out Of Stock"));
    regards
    shya

    1. Make sure that your form handler extends GenericFormHandler (This FH defines formError and formExceptions Vector).
    2. When you add form exceptinos in your FH, set the formError flag as true.
    3. In the jsp, check for the form error flag, if it is set, iterate through the formExceptions vector and display the error message.
    Below is the sample code:
    <dsp:droplet name="/atg/dynamo/droplet/Switch">
         <dsp:param bean="MyFormHandler.formError" name="value"/>
         <dsp:oparam name="true">
         <dsp:droplet name="/atg/dynamo/droplet/ErrorMessageForEach">
         <dsp:param bean="MyFormHandler.formExceptions" name="exceptions"/>
         <dsp:oparam name="output">
         <dsp:valueof param="message" />
    </dsp:oparam>
    </dsp:droplet>
    </dsp:oparam
    </dsp:droplet>
    If it is not working even after the above steps, request you to provide some more details including your display logic in jsp.
    Edited by: Gopinath Ramasamy on Sep 12, 2012 5:06 PM

  • Printer-Friendly Page

    Hi,
    My JSP needs to generate a "printer-friendly" version of a page.
    1) As you know, the JavaScript print() method prints the page currently loaded in the browser. Can I, in my "Printer-unfriendly" page, have a Print button, which on click, calls a JSP/servlet, generates a "Printer-friendly" page BUT DOES NOT LOAD IN THE BROWSER, but prints? Or do I have to show the user the "Printer-Friendly" page before printing it?
    2) What are the points I need to take care in order to make an HTML page Printer-friendly?
    thanks

    Hi!
    I, just recently, made this kind of page you're talking about and didn't find a simple and good way of achieving this through anything but a simple print-friendly page.
    I did it using
    # body-onload triggers the print() function
    # through some logic (counting html lines) in the page I inserted the folowing html code to achieve
    page breaks in the printed document:
    <p clear=all style='page-break-before:always'>
    # After the print method I forwarded the client to another page (which will happen even if the user
    clicked cancel in the print dialogue)
    If you find a better way, I'd br glad to hear of it...
    /Rickard

  • Recursive Print in JSP page

    I have a tree like structure in my java code and I want to print the output in my JSP page. Any idea how to perform recursive print in a JSP page.

    Couldnt U just use a while loop something like the following...
    <table>
    <%
    while(tree.next()){
    %>
    <tr>
    <td><%=tree.getString("output") %></td>
    <td><%=tree.getString("output2") %></td>
    </tr>
    <%
    } %>
    </table>
    or your version of that...
    Assuming U have Ur tree.next returning a false when it gets to the end.
    Hope I helped.
    - meMyselfAndI

  • Printing a wide jsp page

    Hi Friends,
    I have a jsp page displaying some information.It is wide and I have to scroll side ways to see the complete page.Its 2 to 3 times the actual width of the screen.But when I take a print out only the part which is visible is printed and the remaining part which is to the side is truncated.Is there a way so that I can take a print out of the entire width of the page.
    Thanks in Advance for your help.
    (Anthony)

    Hi,
    Thanks for your time.
    I am using tables but the no. of columns in the table are more and it grows dynamically thus becoming a wide report.My requirement is to print the complete report however wide it is.
    please let me know if you have a solution
    thanks,
    Anthony

  • Printer friendly page for iViews?

    Hi Friends,
    I integrated few iView and assigned them to different roles and users in our portal.  Some of these iView are Web Dynpro iviews.
    I have a of question.... How should i enable a option for the users to view and print out the web dynpro iview result view in a printer friendly version...
    Thanks for your help
    Regards
    Mark

    Hi Mark,
    Try this <a href="https://www.sdn.sap.com/irj/sdn/thread?forumID=52&threadID=132542&messageID=1514704">thread</a>.
    Regards,
    Pooja.

Maybe you are looking for