From koffice-devel Fri Sep 05 18:17:22 2008 From: Adam Pigg Date: Fri, 05 Sep 2008 18:17:22 +0000 To: koffice-devel Subject: Re: How to add dynamic content to KWord Message-Id: X-MARC-Message: https://marc.info/?l=koffice-devel&m=122063876919970 Hi David Yes, kexi has an API called KexiDB, available to C++ through the normal means, or internally to kexi scripts using kross scripting for javascript, python and maybe ruby. Think of is as similar to DAO/ADO on msa (jstaniek will correct me if im wrong! :) I used it to write a loader for kspread to open kexi databases back in 1.6, its pretty easy to use and samples are available. For the pros/cons compared to QtSQL, best to look at http://www.kexi-project.org/wiki/wikiview/index.php@KexiDB versus QtSQL.html Regards Adam David Boosalis wrote: > Hi Adam > > Thanks for the reply. I am using Qt's SQL classes for MySQL now. Does > Kexi have a programmers API, if so what are its advantages over Qt's > > -David > > On Thu, Sep 4, 2008 at 1:48 PM, Adam Pigg wrote: > >> David Boosalis wrote: >> >> > I am trying to come up with a way to make a electronic questionair >> > (True/False and Multiple Choice), something where I can tabulate the >> > answers electronically by parsing the paper with my own program for >> > question number and answer. >> > >> Sounds like you might be better using a database, looked at kexi? >> If you want to distribute it to many others, you could use either the >> mysql or postgresql backends. >> > I could create a program, but if I want a lot of Rich text capabilities >> > that >> > means writting my own word processor, kind of heavy I think. Of course >> > I thought of trying to implement it with JavaScript and Html and use >> > QtWebKit, >> > but this also would require a lot of programming. So I am wondering >> about >> > using KWord. I am really naive when it comes to this application. From >> > a user's perspective the latest release for KDE 4 is looking very nice. >> > >> You should be able to do something like create a table to hold the >> questions, and another for answers, and create a form to allow the >> answers table to be populated. >> >> You could then write a script using javascript or python within kexi to >> process the results (there are examples which output html), or install >> the report plugin from kde-apps.org to create some kind of report on the >> answers. >> >> You'll have to use the 1.6 version as 2 isnt quite ready yet. >> > Is it difficult or impossible to add check boxes with a radio button >> > behavior, where they the office document can be read in by another >> program >> > and the check marks scanned. With this I would need to embed the >> question >> > number as well. >> > >> > Would implmenting a KWord Part do the trick. Any advice much >> appreciated. >> > >> Feel free to ask more questions, always looking for more kexi >> testers/users >> :) >> > Regards, >> > David Boosalis >> >> Regards >> >> Adam >> >> _______________________________________________ >> koffice-devel mailing list >> koffice-devel@kde.org >> https://mail.kde.org/mailman/listinfo/koffice-devel >> _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel