First of all I would just like to say that Revolution is a great piece of Software.
I need a bit of help regards a new application I have designed. It stores data into a database and what I would like to know is:
Can I export my data to excel using a command or commands in Revolution to produce reports?
As a newbie to revolution, I dont just want to buy and download an add-on but with a bit of guidance I would like to design and learn by doing it myself.
Using excel with Runtime Revolution
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Dear djayc2104,
You can write data to a text field and import this file into Excel. The quickest way:
On a PC this would look similar to:
Best,
Mark
You can write data to a text field and import this file into Excel. The quickest way:
Code: Select all
put fld x into url "file:/Macintosh HD/Documents/file.txt"
Code: Select all
put fld x into url "file:C:/Documents and Settings/My Documents/file.txt"
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
While exporting to tab-delimited or CSV formatted text is easy, there are other ways:
- Office 2003 and higher support an XML format (SpreadsheetML) which doesn't support macro's and all that stuff, but is great for quickly creating actual XLS files in a non-binary way.
- On a Mac, you can use AppleScript, and on Windows, VBScript, to create Excel files and fill in cells interactively. See http://www.sonsothunder.com/devres/revo ... iac001.htm for more information.
You'll want to keep a bookmark for Ken Ray's Sons of Thunder website, as it contains real gems of information.
Hope this helped,
Jan Schenkel.
- Office 2003 and higher support an XML format (SpreadsheetML) which doesn't support macro's and all that stuff, but is great for quickly creating actual XLS files in a non-binary way.
- On a Mac, you can use AppleScript, and on Windows, VBScript, to create Excel files and fill in cells interactively. See http://www.sonsothunder.com/devres/revo ... iac001.htm for more information.
You'll want to keep a bookmark for Ken Ray's Sons of Thunder website, as it contains real gems of information.
Hope this helped,
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com