Using JEditorPane to Print HTML


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1

Thread: Using JEditorPane to Print HTML

Hybrid View

  1. #1
    Join Date
    May 2006
    Posts
    1

    Question Using JEditorPane to Print HTML

    Hello,

    I am trying to use JEditorPane to print out an HTML page. I found some handy dandy Java classes to help me out, but I'm having one problem. I send the HTML text line by line to the JEditorPane, then print it out from a PrinterJob. When it prints out, everything is formatted correctly, except that I get a line of greater than (>) symbols all the way down the left hand side of the page. I thought that maybe it wasn't working with the tags correctly, but if that were true, wouldn't all of the formatting (bold, new lines, etc.) be incorrect? Someone please help me out.

    Thanks in advance,
    Doug A.

    EDIT:Never mind. All I had to do was replace the <br/> tags in my HTML code with <br>. This thread can be closed.
    Last edited by sprspike; 05-11-2006 at 11:16 AM.

Similar Threads

  1. quick basic codes conversion
    By oranged in forum VB Classic
    Replies: 2
    Last Post: 07-19-2006, 06:50 AM
  2. printing html and images with JEditorPane
    By megamadhu in forum Java
    Replies: 7
    Last Post: 04-04-2005, 12:45 PM
  3. JEditorPane and HTML
    By JamesOfOOST in forum Java
    Replies: 1
    Last Post: 02-26-2005, 08:34 AM
  4. Stored Procedure (Want looping in Cursor)
    By malikmehmood in forum Database
    Replies: 0
    Last Post: 11-20-2000, 05:12 AM
  5. Replies: 2
    Last Post: 03-24-2000, 01:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center