-
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
-
By oranged in forum VB Classic
Replies: 2
Last Post: 07-19-2006, 06:50 AM
-
By megamadhu in forum Java
Replies: 7
Last Post: 04-04-2005, 12:45 PM
-
By JamesOfOOST in forum Java
Replies: 1
Last Post: 02-26-2005, 08:34 AM
-
By malikmehmood in forum Database
Replies: 0
Last Post: 11-20-2000, 05:12 AM
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks