Cov txheej txheem:

Kuv yuav nruab poi li cas?
Kuv yuav nruab poi li cas?

Video: Kuv yuav nruab poi li cas?

Video: Kuv yuav nruab poi li cas?
Video: Kuv Yog Poj Laib Xwb - Lyna Lee Official MV 2024, Kaum ib hlis
Anonim

Rau nruab POI , download tau ib pob ntawm Jar cov ntaub ntawv los ntawm official site pog .apache.org/download.html thiab siv hauv daim ntawv thov. Hauv qab no yog qhov tsawg kawg nkaus yuav tsum tau Jars. Peb kuj tuaj yeem teeb tsa kev vam meej hauv maven qhov project. Nws xav tau cov ntaub ntawv jar uas siv los khiav daim ntawv thov.

Ib yam li ib tug yuav nug, Kuv yuav rub tawm POI API li cas?

Download Apache POI

  1. Mus rau Apache POI cov kev pabcuam thiab nyem rau ntawm 'Download' ntawm sab laug zaub mov.
  2. Koj yuav tau txais qhov tseeb version ntawm no.
  3. Nyem rau ntawm ZIP cov ntaub ntawv los pib rub tawm.
  4. Nyem rau ntawm qhov txuas tseem ceeb nyob rau sab saum toj ntawm nplooj ntawv.
  5. Xaiv lub xov tooj cua khawm rau 'Txuag Cov Ntaub Ntawv' thiab nyem OK.

Qhov thib ob, POI thawv ntaub ntawv yog dab tsi? Apache POI yog API nrov uas tso cai rau cov programmer tsim, hloov kho, thiab tso tawm MS Office cov ntaub ntawv siv Java program. Nws yog qhov chaw qhib tsev qiv ntawv tsim thiab faib los ntawm Apache Software Foundation los tsim lossis hloov kho Microsoft Office cov ntaub ntawv siv Java program.

Ib yam li ntawd, tib neeg nug, Kuv yuav nruab Apache POI li cas?

2 Teb

  1. Download tau qhov tseeb tso tawm ruaj khov: Apache POI 3.16-FINAL faib,
  2. qhib koj qhov project dab noj hnub,
  3. Java Built Path > Libraries > Ntxiv JARs sab nraud,
  4. Tom qab ntawd rho tawm cov ntaub ntawv zip koj downloaded thiab mus rau lub nplaub tshev rho tawm,
  5. xaiv tag nrho cov JARs nyob rau hauv sub folders (docs, lib, ooxml-lib),

Selenium nyeem cov ntaub ntawv los ntawm Excel li cas?

Precondition:

  1. Tsim cov ntaub ntawv xlsx thiab txuag nws ntawm qhov chaw tshwj xeeb. Sau qee cov ntaub ntawv los nyeem siv Selenium. Kaw cov ntaub ntawv excel tsim ua ntej ua tiav tsab ntawv.
  2. Mus rau kev xaiv "Format Cells" thiab hauv qab Number Tab xaiv, xaiv Cov Ntawv thiab nyem rau OK. Los ntawm lub neej ntawd nws yuav dav dav, koj yuav tsum tau ua nws li Number.

Pom zoo: