The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Import HTML table
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Duff

Argentina
42 Posts

Posted - 09/28/2018 :  2:18:10 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2018 SR1
Operating System: Windows 7 64
I need to import a lot of html tables. The tables were saved as xls and excel open them without problems. An example is here http://wvw.se.gob.ar/datosupstream/consulta_avanzada/ddjj.xls.php?hgcd=aWRlbXByZXNhPVBMVSZpZG1lcz0xJmlkY2llcnJlPTk1MjcmaWRjYXJnYT0zJmlkYW5pbz0yMDE4
The first 15 rows and the last 2 rows can be deleted.
Any way to do it?
Thanks!

AmandaLu

439 Posts

Posted - 09/29/2018 :  01:46:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Since the table is saved to xls, you can use File: Import: Excel to import it into Origin worksheet.

Thanks,
Amanda
OriginLab Technical Service
Go to Top of Page

Duff

Argentina
42 Posts

Posted - 10/01/2018 :  08:19:58 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,
I get a warning that there is an error.



Importing as ascii is impossible for me, because as html doesn't have have a structure of rows and columns:
quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Capitulo IV - Listado de Pozos</title>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" text="#000000" link="#000000" vlink="#666666" alink="#999999" marginwidth="0" marginheight="0">
<font>
<b>Capitulo IV - DDJJ de Producción</b><br><br>
Empresa: CAPEX S.A.<br>
Período: Febrero de 2018<br>
Fecha: 19-03-2018 09:38<br>
Código de verificación DDJJ: 9639 / 1<br>
Cantidad de registros: 675<br>(Nota: La leyenda 'Mm3' se usa representando 'Miles de m3')
<br>(Nota: Para visualizar CORRECTAMENTE este documento, debe asegurarse que en la configuración del excel, esté definido como separador de decimales el "punto" y como separdor de miles la "coma")
</font>
<br><br>
<DIV STYLE="background-color:#FF0000" >
<b>Nota: Por favor, verifique que la cantidad de registros de este informe este completa. Al final del archivo, debe figurar una celda con la leyenda "FIN DEL REPORTE".<br>
De no ser asi, es posible que el archivo que usted descargó esté incompleto, por favor, vuelva a realizar la descarga.
</div>
<br><br>

<table border="1" cellpadding="3" cellspacing="1" bgcolor="#999999">
<tr class="negro">
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Cuenca</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Provincia</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Área</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Yacimiento</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>ID Pozo</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Sigla</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Form.Prod.</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Cód.Propio</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Nom.Propio</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Prod.Men.Pet.(m3)</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Prod.Men.Gas(Mm3)</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Prod.Men.Agua(m3)</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Prod.Acum.Pet.(m3)</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Prod.Acum.Gas(Mm3)</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Prod.Acum.Agua(m3)</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Iny.Agua(m3)</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Iny.Gas(Mm3)</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Iny.CO2(Mm3)</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Iny.Otros(m3)</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle"><b>RGP</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle"><b>% de Agua</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>TEF</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Vida Útil</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Sist.Extrac.</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Est.Pozo</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Tipo Pozo</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Clasificación</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Sub clasificación</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Tipo de Recurso</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Sub tipo de Recurso</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Observaciones</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Latitud</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Longitud</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Cota</b></td>
<td align="center" bgcolor="#FFAF0F" valign="middle" nowrap="nowrap"><b>Profundidad</b></td>


</tr>

<tr class="negro">
<td bgcolor="#EEEEEE" align="left">NEUQUINA</td>
<td bgcolor="#EEEEEE" align="left">Neuquén</td>
<td bgcolor="#EEEEEE" align="left">AGUA DEL CAJON</td>
<td bgcolor="#EEEEEE" align="left">AGUA DEL CAJON</td>
<td bgcolor="#EEEEEE" align="left">154164</td>
<td bgcolor="#EEEEEE" align="left">ADC.xp-1020</td>
<td bgcolor="#EEEEEE" align="left">LOTE</td>
<td bgcolor="#EEEEEE" align="left">ADC-1020</td>
<td bgcolor="#EEEEEE" align="left">ADC-1020</td>
<td bgcolor="#EEEEEE" align="left">16.83</td>
<td bgcolor="#EEEEEE" align="left">162.75</td>
<td bgcolor="#EEEEEE" align="left">9.30</td>
<td bgcolor="#EEEEEE" align="left">2589.32</td>
<td bgcolor="#EEEEEE" align="left">16276.23</td>
<td bgcolor="#EEEEEE" align="left">1704.97</td>
<td bgcolor="#EEEEEE" align="left">0.00</td>
<td bgcolor="#EEEEEE" align="left">0.00</td>
<td bgcolor="#EEEEEE" align="left">0.00</td>
<td bgcolor="#EEEEEE" align="left">0.00</td>
<td bgcolor="#EEEEEE" align="left">9.6702317290553</td>
<td bgcolor="#EEEEEE" align="left">0.35591274397245</td>
<td bgcolor="#EEEEEE" align="left">23.25</td>
<td bgcolor="#EEEEEE" align="left">762.28</td>
<td bgcolor="#EEEEEE" align="left">SN</td>
<td bgcolor="#EEEEEE" align="left">EEF</td>
<td bgcolor="#EEEEEE" align="left">GAS</td>
<td bgcolor="#EEEEEE" align="left">EXPLORACION</td>
<td bgcolor="#EEEEEE" align="left">EXPLORATORIO PROFUNDO</td>
<td bgcolor="#EEEEEE" align="left">NO CONVENCIONAL</td>
<td bgcolor="#EEEEEE" align="left">TIGHT</td>
<td bgcolor="#EEEEEE" align="left"></td>
<td bgcolor="#EEEEEE" align="left">-38.8618725</td>
<td bgcolor="#EEEEEE" align="left">-68.36579139</td>
<td bgcolor="#EEEEEE" align="left">303.7</td>
<td bgcolor="#EEEEEE" align="left">3200</td>

</tr>

<tr class="negro">
<td bgcolor="#EEEEEE" align="left">NEUQUINA</td>
<td bgcolor="#EEEEEE" align="left">Neuquén</td>
<td bgcolor="#EEEEEE" align="left">AGUA DEL CAJON</td>
<td bgcolor="#EEEEEE" align="left">AGUA DEL CAJON</td>
<td bgcolor="#EEEEEE" align="left">96506</td>
<td bgcolor="#EEEEEE" align="left">APS.Nq.ADC-1001</td>
<td bgcolor="#EEEEEE" align="left">TORD</td>
<td bgcolor="#EEEEEE" align="left">ADC-1001</td>
<td bgcolor="#EEEEEE" align="left">ADC-1001</td>
<td bgcolor="#EEEEEE" align="left">0.00</td>
<td bgcolor="#EEEEEE" align="left">0.00</td>
<td bgcolor="#EEEEEE" align="left">0.00</td>
<td bgcolor="#EEEEEE" align="left">9938.00</td>
<td bgcolor="#EEEEEE" align="left">15895.00</td>
<td bgcolor="#EEEEEE" align="left">488.00</td>
<td bgcolor="#EEEEEE" align="left">0.00</td>
<td bgcolor="#EEEEEE" align="left">0.00</td>
<td bgcolor="#EEEEEE" align="left">0.00</td>
<td bgcolor="#EEEEEE" align="left">0.00</td>


Thanks
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 10/01/2018 :  10:45:18 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Duff,

I have tried your data, and found that it is not an Excel file, but it is HTML code. You shouldn't change
the file extension to .XLSX, but it should be .HTML . You could open this file by Excel because Excel has
its own filter for HTML code. You can do:
1) Open it in Excel, then save it as real .XLSX file,
2) Drag-and-drop this file onto Origin. (Or, of course, you can also copy-and-paste.)

Please try.

--Hideo Fujii
OriginLab

Edited by - Hideo Fujii on 10/01/2018 12:16:39 PM
Go to Top of Page

Duff

Argentina
42 Posts

Posted - 10/01/2018 :  1:17:39 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Hideo Fuji,
With excel I have not problem for open them, but I need to import them with Origin because there are a many files to import.
Thanks!

Edited by - Duff on 10/01/2018 1:18:09 PM
Go to Top of Page

easwar

USA
1965 Posts

Posted - 10/01/2018 :  5:25:46 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Duff,

We sent you an e-mail requesting some more data files from you, and put instructions in e-mail on how to send.

Thank you,

Easwar
OriginLab
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000