# Exporting from Calc to CSV format

**URL:** <https://forum.collaboraonline.com/t/exporting-from-calc-to-csv-format/87>\
**Category:** Installation & Configuration\
**Created:** [November 29, 2020, 2:48pm UTC](https://forum.collaboraonline.com/t/exporting-from-calc-to-csv-format/87 "2020-11-29T14:48:52Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![danjde](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/danjde/32/39_2.png) [@danjde](https://forum.collaboraonline.com/u/danjde)\
**Post date:** [November 29, 2020, 2:48pm UTC](https://forum.collaboraonline.com/t/exporting-from-calc-to-csv-format/87/1 "2020-11-29T14:48:52Z")

</div>

Hi Friends!  
For the Italian association to which I belong, I’ve just installed, by native “deb” packages (not Docker), on my own Debian Server, Collabora Online 6.4 on Nextcloud 19.01 and all seems to works fine 😉

I, however, a worry: how is it possible to export CSV from Collabora Online spreadsheet?  
Actually if I go to “Save As” no any other options/possibilities can find:

![Test.ods](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/4457f49d46f5ae773f7cec11b78df4722ada6818.jpeg)

I’ve find [this documentation](https://help.collaboraoffice.com/6.2/en-US/text/scalc/guide/csv_files.html?&DbPAR=BASE&System=UNIX), but I don’t find a match, and what I expect to find is also, be able to activate options format into “Save As” menu item.

Do I need to complete additional server-side procedures?

Many thanks!

Davide

---

<div class="post-metadata">

**Author:** ![pedro.silva](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/pedro.silva/32/4_2.png) [@pedro.silva](https://forum.collaboraonline.com/u/pedro.silva)\
**Post date:** [December 2, 2020, 9:30am UTC](https://forum.collaboraonline.com/t/exporting-from-calc-to-csv-format/87/2 "2020-12-02T09:30:52Z")

</div>

Hi 🙂

> For the Italian association to which I belong, I’ve just installed, by native “deb” packages (not Docker), on my own Debian Server, Collabora Online 6.4 on Nextcloud 19.01 and all seems to works fine

that’s great! 🥳

> I, however, a worry: how is it possible to export CSV from Collabora Online spreadsheet?  
> Actually if I go to “Save As” no any other options/possibilities can find

Yes! You can just rename the file extension to `.csv` and it should work

**Save as .CSV**

1. File \> Save as…
2. Rename file extension to `.csv`
3. you can now test it by trying to import it

**Import .CSV**

1. Open you `.csv` file using your preferred simple text editor
2. Select all its contents
3. Copy `ctrl` + `c`
4. Go to your Collabora Online browser tab and open a spreadsheet document
5. Paste it `ctrl` + `v`
6. A dialog appears where you can tweak the formatting (separated by comma) and check the preview, hit ok : )  
 ![text import](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/246f25ad060047e941522e37d9945ab27b9a7542.png)  
 ![text import separated by comma](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/0baa61c2019b1c8228057503b428ebb20f52517c.png)

---

<div class="post-metadata">

**Author:** ![pedro.silva](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/pedro.silva/32/4_2.png) [@pedro.silva](https://forum.collaboraonline.com/u/pedro.silva)\
**Post date:** [December 2, 2020, 9:55am UTC](https://forum.collaboraonline.com/t/exporting-from-calc-to-csv-format/87/3 "2020-12-02T09:55:03Z")

</div>

oh and just a reminder you can always easy access online help both on classic and notebookbar mode:

 ![Classic](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/369eb4323d5208b41c64e6af8a4774cf4a4e7b29.png)

 ![Notebookbar](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/de0dfdc7ee4ba9eb61af9cea0aeb0d99f251cfb4.png)

---

<div class="post-metadata">

**Author:** ![danjde](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/danjde/32/39_2.png) [@danjde](https://forum.collaboraonline.com/u/danjde)\
**Post date:** [December 4, 2020, 9:28am UTC](https://forum.collaboraonline.com/t/exporting-from-calc-to-csv-format/87/4 "2020-12-04T09:28:23Z")

</div>

Hi @pedro.silva and thanks for your help!

I’ve made some test, and confirm: **“saving as”** csv convert files to “comma separated values” files.  
But things happen:

- the file is exported in UTF16, where here in Italy we use UTF8 (so, at first sight, it seems unreadable, with all the consequences that this can generate in non-expert users. You had me going there… 😛

- into [documentation](https://help.collaboraoffice.com/6.2/en-US/text/scalc/guide/csv_files.html?&DbPAR=BASE&System=UNIX), on point **5** is described:

> (Optional) Set the field options for the Text CSV file.  
> Select Edit filter settings.  
> In the **Export of text files dialog** , select **the options** that you want.  
> Click OK

but there is not an _text export files dialog_, where to customize the csv output format. Why does the documentation describe something that isn’t there? Would I need to install something additional on the server side?

Thanks again!

Davide

---

<div class="post-metadata">

**Author:** ![mikekaganski](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@mikekaganski](https://forum.collaboraonline.com/u/mikekaganski)\
**Post date:** [December 6, 2020, 7:17am UTC](https://forum.collaboraonline.com/t/exporting-from-calc-to-csv-format/87/5 "2020-12-06T07:17:27Z")

</div>

> - into [documentation](https://help.collaboraoffice.com/6.2/en-US/text/scalc/guide/csv_files.html?&DbPAR=BASE&System=UNIX), on point **5** is described  
> …  
> Why does the documentation describe something that isn’t there?

The documentation is for _Collabora Office_, while we discuss _Collabora Online_ here 😉 Of course, the latter has a very different UI, and what you read for the former might not apply for the latter. It’s not “something that isn’t there” 🙂

---

<div class="post-metadata">

**Author:** ![danjde](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/danjde/32/39_2.png) [@danjde](https://forum.collaboraonline.com/u/danjde)\
**Post date:** [December 6, 2020, 6:16pm UTC](https://forum.collaboraonline.com/t/exporting-from-calc-to-csv-format/87/6 "2020-12-06T18:16:39Z")

</div>

> [@mikekaganski](#):
>
> The documentation is for _Collabora Office_ , while we discuss _Collabora Online_ here 😉

Ah, my misunderstanding!

> [@mikekaganski](#):
>
> Of course, the latter has a very different UI, and what you read for the former might not apply for the latter. It’s not “something that isn’t there”

Well, now is clear for me too! 😃

…but does this mean that it is not possible to give a custom formatting to any output csv?

Thanks again!

---

<div class="post-metadata">

**Author:** ![mikekaganski](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@mikekaganski](https://forum.collaboraonline.com/u/mikekaganski)\
**Post date:** [December 7, 2020, 8:29am UTC](https://forum.collaboraonline.com/t/exporting-from-calc-to-csv-format/87/7 "2020-12-07T08:29:28Z")

</div>

You are right, it seems there’s no way to export to CSV with settings.

While IMO it should not allow to “download as” CSV (for the obvious reason that CSV can’t handle most basic cases, like several sheets in a file), it seems natural to provide the CSV in the clipboard when you select and copy. Currently it seems to put some TSV-_like_ thing to clipboard in that case, e.g. skipping empty cells.

Wrt UTF-16: I couldn’t repro that on our test instance. For me, it exported in ASCII or something like that (e.g., turned Russian characters into `?`). Possibly that depends on some server configuration (locale? Collabora Office’s `registrymodifications.xcu`?).

---

<div class="post-metadata">

**Author:** ![danjde](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/danjde/32/39_2.png) [@danjde](https://forum.collaboraonline.com/u/danjde)\
**Post date:** [December 7, 2020, 6:01pm UTC](https://forum.collaboraonline.com/t/exporting-from-calc-to-csv-format/87/8 "2020-12-07T18:01:14Z")

</div>

> [@mikekaganski](#):
>
> You are right, it seems there’s no way to export to CSV with settings.

Sob! 😢

> [@mikekaganski](#):
>
> While IMO it should not allow to “download as” CSV (for the obvious reason that CSV can’t handle most basic cases, like several sheets in a file), it seems natural to provide the CSV in the clipboard when you select and copy. Currently it seems to put some TSV- _like_ thing to clipboard in that case, e.g. skipping empty cells.

Well!

> [@mikekaganski](#):
>
> Wrt UTF-16: I couldn’t repro that on our test instance. For me, it exported in ASCII or something like that (e.g., turned Russian characters into `?` ). Possibly that depends on some server configuration (locale? Collabora Office’s `registrymodifications.xcu` ?).

I will investigate!

Thanks!

---

<div class="post-metadata">

**Author:** ![pedro.silva](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/pedro.silva/32/4_2.png) [@pedro.silva](https://forum.collaboraonline.com/u/pedro.silva)\
**Post date:** [December 10, 2020, 8:59am UTC](https://forum.collaboraonline.com/t/exporting-from-calc-to-csv-format/87/9 "2020-12-10T08:59:13Z")

</div>

I wonder if there is a better way to avoid misunderstandings, maybe by not loading the newly created text file (.csv) automatically (because it kinda by passes the import options step leading to faulty end result).

However that type of behavior (to load automatically) is expected from `Save as` hm…🤔

---

<div class="post-metadata">

**Author:** ![danjde](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/danjde/32/39_2.png) [@danjde](https://forum.collaboraonline.com/u/danjde)\
**Post date:** [December 12, 2020, 10:40am UTC](https://forum.collaboraonline.com/t/exporting-from-calc-to-csv-format/87/10 "2020-12-12T10:40:14Z")

</div>

> [@pedro.silva](#):
>
> the import options step leading to faulty end result

I’m not sure to have understand what you mean, but from my CO installation, I’ve not the ability to import CSV.  
Trying to open any “.csv” file from NextCloud (open with Collabora Online Developer Edition…) do not produce any understandable spreadsheet.

I want to clarify that this CSV was created by CO.

---

<div class="post-metadata">

**Author:** ![pedro.silva](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/pedro.silva/32/4_2.png) [@pedro.silva](https://forum.collaboraonline.com/u/pedro.silva)\
**Post date:** [December 16, 2020, 1:15pm UTC](https://forum.collaboraonline.com/t/exporting-from-calc-to-csv-format/87/11 "2020-12-16T13:15:17Z")

</div>

oh I see because it is not possible to open the CSV file itself but rather import it. Here is how:

#### How can I import CSV data?

1. Load your CSV data in some native tool to your platform, select and copy it to the clipboard

2. Activate the Collabora Online spreadsheet window.

3. Paste from the browser Edit → Paste or press Ctrl + V. The Text Import dialogue box opens to let you describe the precise format of the CSV data.

4. Select the character set, language and separator options for the CSV file.

The CSV data is loaded into the selected cell where you pasted, according to these settings.

you can access this and other tidbits by accessing the **Help** menu -\> **Online Help** (in your Collabora Online Developer Edition)

---

<div class="post-metadata">

**Author:** ![danjde](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/danjde/32/39_2.png) [@danjde](https://forum.collaboraonline.com/u/danjde)\
**Post date:** [December 16, 2020, 3:18pm UTC](https://forum.collaboraonline.com/t/exporting-from-calc-to-csv-format/87/12 "2020-12-16T15:18:01Z")

</div>

Yes, i’ve been seen your previous post where you described the same procedure, anyway what need is a easiest way, otherwise Google Documents _eats gnocchi on our heads_ \* 😉

Thanks!

- Italian way of saying that he _“surpasses”_ us

---

<div class="post-metadata">

**Author:** ![pedro.silva](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/pedro.silva/32/4_2.png) [@pedro.silva](https://forum.collaboraonline.com/u/pedro.silva)\
**Post date:** [December 16, 2020, 4:10pm UTC](https://forum.collaboraonline.com/t/exporting-from-calc-to-csv-format/87/13 "2020-12-16T16:10:52Z")

</div>

🍝 (no _gnocchi_ emoji : / )

---

<div class="post-metadata">

**Author:** ![danjde](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/danjde/32/39_2.png) [@danjde](https://forum.collaboraonline.com/u/danjde)\
**Post date:** [December 16, 2020, 6:21pm UTC](https://forum.collaboraonline.com/t/exporting-from-calc-to-csv-format/87/14 "2020-12-16T18:21:39Z")

</div>

…hoops!

![gnocchi_in_testa](https://europe1.discourse-cdn.com/flex013/uploads/collaboraonline/original/1X/c80084c310ccd45047b114904eaae4842aadba6f.png)

---

<div class="post-metadata">

**Author:** ![pedro.silva](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/pedro.silva/32/4_2.png) [@pedro.silva](https://forum.collaboraonline.com/u/pedro.silva)\
**Post date:** [December 17, 2020, 9:28am UTC](https://forum.collaboraonline.com/t/exporting-from-calc-to-csv-format/87/15 "2020-12-17T09:28:05Z")

</div>

ahah gnocchi in testa X D

---

<div class="post-metadata">

**Author:** ![pedro.silva](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/pedro.silva/32/4_2.png) [@pedro.silva](https://forum.collaboraonline.com/u/pedro.silva)\
**Post date:** [February 4, 2021, 12:25pm UTC](https://forum.collaboraonline.com/t/exporting-from-calc-to-csv-format/87/16 "2021-02-04T12:25:33Z")

</div>

> <https://github.com/CollaboraOnline/online/pull/1404>
