Last week to write a document about more than 90 tables in a database field, primary key, index and other information
And it's very urgent, and it's not going to work.
Handwriting is definitely dead.
No way, the whole procedure.
Pure JDBC provides an API for getting the table's primary key, index, and so on.
So there's a little hope.
The document is in general Word version of it, unfortunately with POI observation, can only read, writing is very difficult to use
COM that is the same reason.
It's a complete one.
No way, first into the HTML format, and then copied to Word,
Because it only involves tables and text, it is better to do so.
Halfway there are some problems, word inside the table requirements is a thin border, this CSS tuned for a half-day.
Later I said, basically the work of 80% to do with the program
The other is the boring code word,
To make a work of ...
Programmer's Cup. Better not to do the programmer, the thief ...
No gossip, on the code.
Connection con = null; BufferedWriter bw = NULL; try{bw = new BufferedWriter (New FileWriter ("f://gg.html")); String css = "<mce:style type=/" text/css/"><!--" + "table {Border-collapse:collapse;border:none;}" + "TD {Border:solid #000 1px gray;}" + "tr {border:black;}" --></mce:style><style type=/"text/css/" mce_bogus= "1" > "+" Table {border-collapse:collapse;border: none;} " + "TD {Border:solid #000 1px gray;}" + "tr {border:black;}" </style> "; Bw.write ("