#1 2016-06-14 09:01:42

reg4app
Member
Registered: 2016-05-16
Posts: 151

how to output data,or print report?

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


Joshua.Y

Offline

#2 2016-06-14 10:07:20

svanneste
Member
From: Paris, France
Registered: 2015-05-27
Posts: 155

Re: how to output data,or print report?

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

Last edited by svanneste (2016-06-14 10:10:29)

Offline

#3 2016-06-14 10:17:40

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,709
Website

Re: how to output data,or print report?

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.

Offline

#4 2016-06-14 11:00:34

svanneste
Member
From: Paris, France
Registered: 2015-05-27
Posts: 155

Re: how to output data,or print report?

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).

Offline

#5 2016-06-14 11:07:56

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,709
Website

Re: how to output data,or print report?

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.

Offline

#6 2016-06-14 22:37:13

svanneste
Member
From: Paris, France
Registered: 2015-05-27
Posts: 155

Re: how to output data,or print report?

Hello David,
I have just downloaded the suggestion you provided me. And tried. WOW : I am very impressed by all you know smile 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 smile

Offline

#7 2016-06-14 23:21:54

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,709
Website

Re: how to output data,or print report?

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. smile

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

Offline

#8 2016-06-15 03:51:19

reg4app
Member
Registered: 2016-05-16
Posts: 151

Re: how to output data,or print report?

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?^_^


Joshua.Y

Offline

#9 2016-06-15 09:31:53

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,709
Website

Re: how to output data,or print report?

Hello,

reg4app wrote:

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.

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.