• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

printing XHTML document

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to print no. of xhtml documents in one shot as we can see in browser using java code.
which class i can use ? anybody can give sample code?
-bhavin
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey... Maybe this can be answered better in the intermediate or advanced forums... Good luck...
------------
Vijay Silva.
<body1>
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Bhavin!
I'm not exactly sure I understand your question. Are you asking about how to print an xthml document from Java, so that the printed page appears as a web browser, such as Internet Explorer, would interpret it?
To start to get familiar with Java's printing API, you might want to take a look at a 5 part series of articles on printing in Java by Jean-Pierre Dub´┐Ż at JavaWorld.
  • Part 1
  • Part 2
  • Part 3
  • Part 4
  • Part 5

  • Note that JEditorPane can interpret and display HTML documents, but I've read that it only supports HTML up to version 3.2 and it doesn't interpret XHTML correctly. I've noticed a couple of commercial APIs for Java that can handle XHTML correctly, including one from grand-rapid developers.
    Perhaps someone over in the Swing / JFC / AWT forum has some ideas. I'm moving this thread there now...
    [ December 19, 2003: Message edited by: Dirk Schreckmann ]
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!