how to output data,or print report?


Yang Ghua

is that a way in App Builder to print data or output data in certain formats like Excel,PDF.....


Samuel Vanneste

The Cordova PDF generator plugin perhaps ? https://www.npmjs.com/package/cordova-pdf-generator

Edit: missed Excel : the File plugin and export to csv (created by yourself : data separated by comma). This one is easy


decsoft

Hello to all,

If we are talking about Apache Cordova apps, certainly maybe a plugin can be used. If we are talking about HTML5 apps, that is, a possible Javascript solution, then I can remember me searching a possible way in the past that finally I can't found. I can't remember right now, for example, what happend if we use something like "window.print()" in a Cordova app, something maybe sufficient in an HTML5 app, in combination with certain CSS print oriented rules...

P.S. Maybe a server side solution can be also good by at least two reasons: server scripts probably have more resources to deal with PDF, for example, than Javascript libraries. And, if we found a server side solution, then a Cordova's plugin maybe is not required and therefore the solution works in both HTML5 and Cordova apps.



Samuel Vanneste

Hello David,
For who is interested by an online solution, I have found that API https://www.freepdfconvert.com/developers-api for HTML5 apps.
I won't go further and test because, as a paranoiac developer, I am almost sure that free services (and perhaps some paid too), keep and analyse the produced documents ("when it's free, you are the product" it's my moto).


decsoft

Hello to all,

Can be a possible way Samuel. Another possible solution (in the server side) can be to use a project like FPDF for PHP.



Samuel Vanneste

Hello David,
I have just downloaded the suggestion you provided me. And tried. WOW : I am very impressed by all you know :) I should never hesitate to buy your consulting services for existing or new projects (I am still sticked with LiveCode server and not on PHP and it seems you know a lot about). Good evening :)


decsoft

Hello Samuel,

Well. I am not a PHP master, but, certainly, I love and appreciate too much the language and also I am write some code. For example, I can remember that I use the referer library in the past, maybe only for testing purposes, but I am sure I try it. You know I write Humm PHP, which is the system uses for maintain my websites, for example. :)

Anyway I am here at your service Samuel, happy to help if possible. :)



Yang Ghua

Lightweight version of the Shield UI JavaScript/HTML5 library

https://github.com/shieldui/shieldui-lite

The ShieldUI Grid can export data to Portable Document Format (PDF)

Is this another option?^_^


decsoft

Hello,

Lightweight version of the Shield UI JavaScript/HTML5 library

https://github.com/shieldui/shieldui-lite

The ShieldUI Grid can export data to Portable Document Format (PDF)

Is this another option?^_^

Taking a look at the Javascript code, ShieldUI uses server side (ASP/NET) stuff to export the grid data.


Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.