Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

print an html file as normal text  RSS feed

 
JayaSiji Gopal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i have a file like this:
<html>
<head>
<table>
<tr>
<td> One </td>
<td> Two </td>
<td> Three </td>
</tr>
</table>
</head>
</html>

when i give a print command of this file, the output tht i shd get is One Two Three on the paper (ie the html tags shd be omitted).

I know i can use the printing api to do this.

However, if anybody has worked on this, please provide me some code snippets to get started.

:roll:
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Y cld fltr t wth rgxp.
Nc t rd, sn't t?
 
JayaSiji Gopal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

wht r u trying to say? plz explain.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
U cld fltr it wth rgxp.
Nice too read, sn't t?
 
JayaSiji Gopal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

thnx for the help! i did write a program to do tht...
however, y am i nt able to include javax,print.* and javax.print.attribute.* packaeinto my prg?

the error is:

Error(5,1): cannot access directory javax\print; verify that directory is reachable from classpath and/or sourcepath
Error(6,1): cannot access directory javax\print\attribute; verify that directory is reachable from classpath and/or sourcepath
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!