https://neowiki.neooffice.org/index.php?title=It:Importare_file_delimitati_da_virgole_o_tabulazioni&action=history&feed=atomIt:Importare file delimitati da virgole o tabulazioni - Revision history2024-03-29T08:32:26ZRevision history for this page on the wikiMediaWiki 1.10.1https://neowiki.neooffice.org/index.php?title=It:Importare_file_delimitati_da_virgole_o_tabulazioni&diff=16207&oldid=prevSardisson: add Fixed-Width ASCII section from en version2010-10-18T21:38:55Z<p>add Fixed-Width ASCII section from en version</p>
<table border='0' width='98%' cellpadding='0' cellspacing='4' style="background-color: white;">
<tr>
<td colspan='2' width='50%' align='center' style="background-color: white;">←Older revision</td>
<td colspan='2' width='50%' align='center' style="background-color: white;">Revision as of 21:38, 18 October 2010</td>
</tr>
<tr><td colspan="2" align="left"><strong>Line 20:</strong></td>
<td colspan="2" align="left"><strong>Line 20:</strong></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">* Nella finetra {{window|Esportazione testo}}, scegli il {{section|Tipo di carattere}}, per esempio {{prefName|Unicode (UTF-8)}} ed il {{section|Separatore di campo}}, per esempio {{prefName|{Tab} }}.</td><td> </td><td style="background: #eee; font-size: smaller;">* Nella finetra {{window|Esportazione testo}}, scegli il {{section|Tipo di carattere}}, per esempio {{prefName|Unicode (UTF-8)}} ed il {{section|Separatore di campo}}, per esempio {{prefName|{Tab} }}.</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;">* Clicca {{button|OK}}.</td><td> </td><td style="background: #eee; font-size: smaller;">* Clicca {{button|OK}}.</td></tr>
<tr><td>-</td><td style="background: #ffa; font-size: smaller;">* Il file può essere convertito nel formatointo <tt>.txt</tt> cambiando l'estensione nel Finder: seleziona il file, quindi premi {{key|Invio}} e sostituisci <tt>.csv</tt> con <tt>.txt</tt>.</td><td>+</td><td style="background: #cfc; font-size: smaller;">* Il file può essere convertito nel formatointo <tt>.txt</tt> cambiando l'estensione nel Finder: seleziona il file, quindi premi {{key|Invio}} e sostituisci <tt>.csv</tt> con <tt>.txt</tt><ins style="color: red; font-weight: bold; text-decoration: none;">. (depending on your setting for displaying extensions in the Finder, you may have to select the file, choose {{menu|Get Info}} from the {{menu|File}} menu, expand the {{section|Name & Extension}} section, and modify the filename and/or uncheck the {{prefName|Hide extension}} checkbox).</ins></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"> </td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">==Exporting a Spreadsheet as a Fixed-Width ASCII File==</ins></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">For some scientific or mathematical applications, you may need to export data from a spreadsheet in a fixed-width ASCII format (also known as a "space-separated" format; Excel calls this format a “.prn†file). NeoOffice supports this, but rather than selecting a special file type, you must save the spreadsheet using the Text CSV format and set filter options.</ins></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"> </td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">* Begin preparing the spreadsheet for export by first selecting all columns with data in them.</ins></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">* Then choose {{menu|Optimal Width...}} from the {{menu|Columns}} sub-menu of the {{menu|Format}} menu. </ins></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">* In the {{window|Optimal Column Width}} window, make sure the {{prefName|Default value}} checkbox is checked and that the {{prefName|Add}} field shows '''0.1"''' (or the equivalent value in metric units) if you want each “column†of data in the ASCII file to be separated by a single space. If you do not have at least '''0.1"''' (or the equivalent) added to the optimal column width, data from one “column†in the ASCII file will directly abut data from the next column.</ins></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">* Now choose the {{menu|File}} menu, then the {{menu|Save As…}} item.</ins></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">* A dialog opens. In the {{section|File type}} drop-down menu choose {{prefName|Text CSV (.csv)}}.</ins></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">* Select {{prefName|Edit filter settings}}</ins></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">* Give your document a name and choose the location where you want save it. Click {{button|Save}}.</ins></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;"><!-- * In the window where you are asked for confirmation, click {{button|Yes}} to save the file in Text CSV format. -- I don't see this confirmation window, so hiding --></ins></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">* In the {{window|Export of text files}} window, choose the {{prefName|Character set}}, e.g. {{prefName|Unicode (UTF-8)}}, and then check the {{prefName|Fixed column width}} checkbox.</ins></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">* Click {{button|OK}}.</ins></td></tr>
<tr><td colspan="2"> </td><td>+</td><td style="background: #cfc; font-size: smaller;"><ins style="color: red; font-weight: bold; text-decoration: none;">* The file can be converted into <tt>.prn</tt> format by changing the extension in the Finder: select the file, then press {{key|Return}} or {{key|Enter}} and replace <tt>.csv</tt> with <tt>.prn</tt> (depending on your setting for displaying extensions in the Finder, you may have to select the file, choose {{menu|Get Info}} from the {{menu|File}} menu, expand the {{section|Name & Extension}} section, and modify the filename and/or uncheck the {{prefName|Hide extension}} checkbox)</ins>.</td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
<tr><td> </td><td style="background: #eee; font-size: smaller;"></td><td> </td><td style="background: #eee; font-size: smaller;"></td></tr>
</table>Sardissonhttps://neowiki.neooffice.org/index.php?title=It:Importare_file_delimitati_da_virgole_o_tabulazioni&diff=10673&oldid=prevValterb at 06:19, 10 May 20072007-05-10T06:19:54Z<p></p>
<p><b>New page</b></p><div>{{FixmeIT}}<br />
Il tipo di file Testo CSV (Comma Separated Values) separa i campi di dati usando dei separatori come le virgole, le tabulazioni, ecc. L'uso del formato csv in NeoOffice permette di importare dati da un file di testo in un foglio elettronico (in modoc eh per esempio possa essere usato come base di dati). Analogamente, è possibile esportare i dati da un foglio eletronico come file formattato csv in modo da essere usati in un documento di testo.<br />
<br />
==Importare unfile di testo in Calc==<br />
Per importare un file salvato nel formato <tt>.txt</tt> o <tt>.csv</tt>, segui i seguenti passaggi:<br />
* Nel menù {{menu|File}}, scegli {{menu|Apri…}}. <br />
* Nella finestra di dialogo che si apre, nel menù a cascata {{section|Tipo di file}}, scegli {{prefName|Testo CSV}}.<br />
* Seleziona il file che vuoi importare e clicca su {{button|Apri}}.<br />
* Nella finestra di dialogo {{window|Importazione testo}}, seleziona la riga dalla quale vuoi importare il testo ed il separatore usato nel file che vuoi importare, potrebbe essere per esempio {{prefName|Tabulazione}}.<br />
* Nella sezione {{section|Campi}}, scegli {{prefName|Tipo colonna}} per ogni colonna. Puoi nascondere alcune colonne in modo che non vengano importate.<br />
* Clicca su {{button|OK}}. <br />
'''N.B''' Se il file ha l'estensione <tt>.csv</tt>, puoi semplicemente fare doppio click sul file per aprire la finestra di dialogo {{window|Importazione testo}}.<br />
<br />
==Esportare un foglio elettronico come file CSV==<br />
* Nel foglio elettronico che vuoi che venga salvato nel formato Testo CSV, scegli il menù {{menu|File}}, quindi {{menu|Salva con nome…}}.<br />
* Si apre una finestra di dialogo. Nel menù a cascata {{section|Tipo di file}} scegli {{prefName|Testo CSV (.csv)}}.<br />
* Seleziona {{prefName|Modifica impostazioni filtro}}<br />
* Dai un nome al documento e scegli la posizione dove vuoi che venga salvato poi clicca su {{button|Registra}}.<br />
* Nella finestra dove ti viene chiesto di confermare la scelta del formato del file clicca {{button|Si}} per salvare il file nel formato Testo CSV.<br />
* Nella finetra {{window|Esportazione testo}}, scegli il {{section|Tipo di carattere}}, per esempio {{prefName|Unicode (UTF-8)}} ed il {{section|Separatore di campo}}, per esempio {{prefName|{Tab} }}.<br />
* Clicca {{button|OK}}.<br />
* Il file può essere convertito nel formatointo <tt>.txt</tt> cambiando l'estensione nel Finder: seleziona il file, quindi premi {{key|Invio}} e sostituisci <tt>.csv</tt> con <tt>.txt</tt>.<br />
<br />
<br />
{{botlangbarIT|[[Importing_and_Exporting_Comma_and_Tab_Delimited_Files|English]] [[Fr:Importer et Exporter des Fichiers Texte CSV dans Calc|Français]]}}<br />
<br />
[[Category:Tips and Hints]][[Category:NeoOffice]][[Category:NeoOfficeIT]]</div>Valterb