# Export To PDF or Excel off line

**URL:** <https://community.thunkable.com/t/export-to-pdf-or-excel-off-line/3667220>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, pdf\
**Created:** [March 18, 2025, 10:46am UTC](https://community.thunkable.com/t/export-to-pdf-or-excel-off-line/3667220 "2025-03-18T10:46:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![h.r.muggentfbhi1](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@h.r.muggentfbhi1](https://community.thunkable.com/u/h.r.muggentfbhi1)\
**Post date:** [March 18, 2025, 10:46am UTC](https://community.thunkable.com/t/export-to-pdf-or-excel-off-line/3667220/1 "2025-03-18T10:46:51Z")

</div>

![Screenshot 2025-03-18 114139](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/0/50807bcf9d8afe2d41021124eeb66aa0510ed68f.png)  
 ![Screenshot 2025-03-18 114149](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/a/3ad7f399e1e1dadb9fed2b15e194acae0e0bb132.png)  
Good all,

I am for the first time to create an app, my question is simple i need to export my data to a pdf or Excel offline how do i need to do that?

the app is for scanning cargo (with barcodes,and keep track of their deffects), after loading we need to print it/send it this would be best in a PDF or excel file. we are often in ports where there is no internet or where it is VERY expensive the ships internet is usually around the 500KB/S so that is no option. can someone help me with this?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [March 18, 2025, 4:18pm UTC](https://community.thunkable.com/t/export-to-pdf-or-excel-off-line/3667220/2 "2025-03-18T16:18:40Z")

</div>

Store the data in a local data source. When the user has better Internet, they can tap a button to upload the data to something like a Google Sheet.

Another option is to store the data as JSON. Check the file size but I suspect it would be very small. For example, [this JSON](https://gist.github.com/saltukalakus/124bba04327d8e5eab605d4fb66c53b8) containing 5 users is 2Kb. And here’s a [64Kb JSON file](https://microsoftedge.github.io/Demos/json-dummy-data/64KB.json) containing over 100 users. Save it to a stored variable or as a cell value in a local data source on the device. Then upload the JSON automatically from the ship (if small enough) or when a better Internet connection is available.

PDF export is tricky. I worked on that for a while and ended up using [https://www.docsfold.com](https://www.docsfold.com). It worked well but took some effort to set up and definitely needs an Internet connection to generate the PDF.

---

<div class="post-metadata">

**Author:** ![h.r.muggentfbhi1](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@h.r.muggentfbhi1](https://community.thunkable.com/u/h.r.muggentfbhi1)\
**Post date:** [March 19, 2025, 8:53am UTC](https://community.thunkable.com/t/export-to-pdf-or-excel-off-line/3667220/4 "2025-03-19T08:53:37Z")

</div>

Could you help me with the first solution? store the data in a local data source, and then upload it to google sheet

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [March 19, 2025, 2:24pm UTC](https://community.thunkable.com/t/export-to-pdf-or-excel-off-line/3667220/5 "2025-03-19T14:24:40Z")

</div>

When the user clicks a button, you would loop through the rows of the local data source and create a row in the Google Sheet with the data from the local data source. It will be a slow process depending on the size of the database.

See this example: [How to send local db components to google sheets? - #4 by muneer](https://community.thunkable.com/t/how-to-send-local-db-components-to-google-sheets/1781435/4)

Post a screenshot of your blocks if you’re having trouble getting that to work.

---

<div class="post-metadata">

**Author:** ![h.r.muggentfbhi1](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@h.r.muggentfbhi1](https://community.thunkable.com/u/h.r.muggentfbhi1)\
**Post date:** [March 19, 2025, 2:34pm UTC](https://community.thunkable.com/t/export-to-pdf-or-excel-off-line/3667220/6 "2025-03-19T14:34:51Z")

</div>

> **[Thunkable](https://x.thunkable.com/copy/853939ad8ce0b4f765e0dc3fcb198ad1)**

Good day, i have included a link currently it is creating everything double in the list viewer

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [March 19, 2025, 2:51pm UTC](https://community.thunkable.com/t/export-to-pdf-or-excel-off-line/3667220/7 "2025-03-19T14:51:31Z")

</div>

I wouldn’t create a row in the same data source that you’re looping through. You should use a different data source for the target, such as a Google Sheet. If you just want to test it, then use a different local data source.

Try this but create the row in the Barcodes data source instead:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/9/999f80b3222d2f45e3802d98ca0ba894a104fd7d.png)

I couldn’t use the Barcodes data source because it doesn’t have any column headers.

---

<div class="post-metadata">

**Author:** ![h.r.muggentfbhi1](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@h.r.muggentfbhi1](https://community.thunkable.com/u/h.r.muggentfbhi1)\
**Post date:** [March 19, 2025, 2:55pm UTC](https://community.thunkable.com/t/export-to-pdf-or-excel-off-line/3667220/8 "2025-03-19T14:55:41Z")

</div>

Will do Sir Thank you for your help

---

<div class="post-metadata">

**Author:** ![h.r.muggentfbhi1](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@h.r.muggentfbhi1](https://community.thunkable.com/u/h.r.muggentfbhi1)\
**Post date:** [March 19, 2025, 3:07pm UTC](https://community.thunkable.com/t/export-to-pdf-or-excel-off-line/3667220/9 "2025-03-19T15:07:52Z")

</div>

Okay sir i have tried your solution and will experiment a little later some more, i just got approved to use the ships faster internet so i can when the list is done scanning upload all into a spreadsheet. if you have time to help/adjust i greatly appreciate it

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [June 17, 2025, 3:08pm UTC](https://community.thunkable.com/t/export-to-pdf-or-excel-off-line/3667220/10 "2025-06-17T15:08:35Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
