Page 1 of 1

How do I export a .pdf report?

Posted: Sun May 15, 2011 3:10 am
by Linh
I'm developing my first application in LiveCode. I tried with .csv file, but I want group some common data, .csv file can't do, for example:

Column 1: Product
LiveCode 4.6.1


Column 2: Users
Linh
Trevor
Lee
David

In this example, .csv file will create 4 rows with the same data in first column. Could I export my data in .pdf file with border (and so far, complex structure report)?

Regards,
Linh

Re: How do I export a .pdf report?

Posted: Sun May 15, 2011 11:39 am
by Klaus
Hi Linh,

create your card(s) as needed and then use
...
open printing to PDF "filename/goes/here.pdf"
print cd "xyz"
...
to print your card(s) into a PDF file, check the dictionary for more info.


Best

Klaus

Re: How do I export a .pdf report?

Posted: Sun Jun 05, 2011 11:54 am
by Janschenkel
LiveCode's built-in 'print to pdf file' feature, added in version 4.5, is great if you already have the data displayed on-screen, in the format that you want it printed. It gets a little more complicated to script if your data is spread over multiple pages, but it is certainly convenient.

<tooting my own horn>
You could take a look at Quartam PDF Library: it offers a command to 'print' data in a tabular format.
It is a free / open source software project, available under the trms of the Affero GNU Public License (AGPL).
For more information, visit the Quartam Software website: www.quartam.com.
As an aside, it also works on LiveCode Server; here's a demo page which shows off its features.
</tooting my own horn>

HTH,

Jan Schenkel.