Jordi Niubo
Posts: 0
Joined: Tue Nov 26, 2013 12:08 pm

Create PDF, note, .txt, or something for print information.

Hi

I have some data in my App and I would like to save this data in any format file.

I Would like to open this file like pdf in the same device or save in other format for send and print it.

It's possible this or something like?

Thanks you

Jordi Niubo
Posts: 0
Joined: Tue Nov 26, 2013 12:08 pm

Create PDF, note, .txt, or something for print information.

Thank you Katya

This is awesome, I can save .csv too !

Jordi Niubo
Posts: 0
Joined: Tue Nov 26, 2013 12:08 pm

Create PDF, note, .txt, or something for print information.

Hi again

I have problems with this. This work nice in web browser but don't save nothing in Device.

There are any other option for save files in device or any solution for the first code?

Thanks

Jordi Niubo
Posts: 0
Joined: Tue Nov 26, 2013 12:08 pm

Create PDF, note, .txt, or something for print information.

Hi Katya,

This example is for downlad pdf file. I need to create new csv, txt, something like this.

Now with the first link I can create csv/txt file but only work in web browser.
I tested in device but don't download nothing, possible is for the route, I don't undersand all these code

I need to create csv or txt in Device and saving the local data of App in it. There are any example or something like?

Thanks for your time

Jordi Niubo
Posts: 0
Joined: Tue Nov 26, 2013 12:08 pm

Create PDF, note, .txt, or something for print information.

Tablet Google Nexus 10 Android 4.4.2
Motorola G Android 4.4.2

I will try this example

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Create PDF, note, .txt, or something for print information.

Jordi,

Let us know about the result please.

Jordi Niubo
Posts: 0
Joined: Tue Nov 26, 2013 12:08 pm

Create PDF, note, .txt, or something for print information.

I tryed the examples of LocalFileSystem and I have problems in device and web browser have problems:

With:
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0,nFileSystemSuccess, fail);
Error: Uncaught ReferenceError: LocalFileSystem is not defined
With:
window.resolveLocalFileSystemURI("file:///example.txt", onResolveSuccess, fail);
Error: Uncaught TypeError: Object [object global] has no method 'resolveLocalFileSystemURI

I'm so bad with this, sorry

Return to “Issues”