Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Servlet Print the document
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Krishnan R
Print the document
0 Answer(s)      a year and 10 months ago
Posted in : JSP-Servlet


I tried to print web page.I am using the below specified code. It working fine. But Internet Explorer doesn't support code. I want do some other modification. Please help.

<script>
function printpage()
{
var printWindow = window.open('test', 'Print Window', 'height=600,width=1000');
        printWindow.document.write('<html><head><title>Print Window</title>');
        printWindow.document.write('</head><body >');
       printWindow.document.write('</body></html>');
        printWindow.document.close();
        printWindow.print();}
}
</script>

<input type="button" value="Print this page" onclick="printpage()" />

Advertisement
View Answers

Related Tutorials/Questions & Answers:
Print the document
Print the document  I tried to print web page.I am using the below...() { var printWindow = window.open('test', 'Print Window', 'height=600,width...;Print Window</title>'); printWindow.document.write('</head>
Print the document
Print the document  I tried to print web page.I am using the below...() { var printWindow = window.open('test', 'Print Window', 'height=600,width...;Print Window</title>'); printWindow.document.write('</head>
Advertisements
print
print  How to print JFrame All Componant?   Please visit the following link: http://www.roseindia.net/java/example/java/swing/Print.shtml
Print
into the stream and, as opposed to print() method, gets you to the new line after the text
include' a HTML document in another document.
include' a HTML document in another document.  I'm trying to `include' a HTML document in another document...Is there a way to do
open document
open document  open a word document using jsp   Please go through the following link: Java Read word document file The above link will provide an example that will read the document file using POI library in java
Finding an ID Value and Print the Element Text
value and Print the Text in a DOM document . The Methods which are used... Finding an ID Value and Print the Element Text   ... = doc.getDocumentElement():-allows direct access to the root of the DOM Document. Node node
HTML document
HTML document  How do I link to a location in the middle of an HTML document
PDF document
PDF document  hello, How to Open a PDF document on iPhone??   You can use these There's a whole toolkit built in which lets you render PDF pages to a UIView. Check out: CGPDFDocumentCreateWithURL
print a form of *
print a form of *   * *** ***** ******* ********* ******* ***** *** *   Post the format properly
print the newline
print the newline  Why doesn?t the following code print the newline properly? <?php $str = ?Hello, there.\nHow are you?\nThanks for visiting.?; print $str; ?>   Hi friends, Inside the single quotes \n (newline
print numbers
print numbers  1234 123 12 1234   1234 123 12 1234
print the sequence
print the sequence  how can I write the code by using for loop to produce this following statement: 10,9,8,7,6,5,4,3,2,1,buzz! please, help me
date print
date print  how can i print the date in jsp page in the following formate month-date-year. (example. march 8 2012
date print
date print  how can i print the date in jsp page in the following formate month-date-year. (example. march 8 2012
Print a statement
Print a statement  hello what would we output for this statement System.out.println ("5"+"A" + 3);   hello output will be 5A3
diamond print
diamond print   print the pattern 1 2 3 4 5 6 7 8 9 10 11 12
Document Type Definition
Document Type Definition  What is Document Type Definition
print initials
print initials  How to print initials of a name without using arrays?   Hi Friend, You can try the following code: import java.util.*; public class InitialName { public static void main(String[] args
Print command
Print command  Can I use System.out.println command in Struts form bean or Struts action class. I am using Struts 1.3.8 but when I write this command. It does not work. Please reply me as soon as possible. Thanks.   
To print initials
To print initials  import java.util.Scanner; class initials { String a ; int e ; char f ; int b ; int c ; char d; Scanner sc = new Scanner(System.in); void main
HTML document's background color
HTML document's background color  How to set a HTML document's background color
open word document
open word document  how to open a word document ??   Please go through the following link: Java Read word document file The above link will provide an example that will read the document file using POI library in java
open word document
open word document  how to open a word document ??   Please go through the following link: Java Read word document file The above link will provide an example that will read the document file using POI library in java
open word document
open word document  how to open a word document ??   Please go through the following link: Java Read word document file The above link will provide an example that will read the document file using POI library in java
xml document parsing
xml document parsing   Hi Guys, Xml document has been inserted into the database,how do i parse the xml document stored in database,so that xml document can be retrieved on to JSP file using jdbc/odbc connection. Please help me
how to print pdf format
how to print pdf format  Hi every body iam doing school project iam using backend as oracle front end java .how to print student marks list...*"%> <% Document document=new Document(); PdfWriter.getInstance(document
Write String in Word document
Write String in Word document  How to read and write strings in word document
Html framed document
Html framed document  How do I change the title of a framed document
Java program for printing document
Java program for printing document  can u send me the java program for printing the office document? email: ibrahimbest@gmail.com
interpreted as part of my document
interpreted as part of my document  How can I show HTML examples without them being interpreted as part of my document
Advertisements
 

 

 

DMCA.com