• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

printing XHTML document

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 21, 2003: Message edited by: Dirk Schreckmann ]
     
    reply
      Bookmark Topic Watch Topic
    • New Topic