Programmer's Write file lazy mode _ document

Source: Internet
Author: User

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 ("

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.