Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get Java code into a Word document

 
Thomas Hawk
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a number of Java source files that I need to include in a technical document (MS Word format). Is there a tool that will take all the source files for a project and either create a new word document or import them into an existing word document? I would like to preserve the original source code formatting and it would be great if file name headings were automatically added to the word document, though I can live without this latter capability. Thanks for any help you all can provide.
 
Paul Clapham
Sheriff
Pie
Posts: 20955
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am fairly certain you could write a Word macro to get all the files with a certain extension in a certain directory and format them any way you liked.
 
Guru dhaasan
Ranch Hand
Posts: 126
Java Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use some extenral utilities like textpad and then try to copy form there to word
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic