Integration with MS Word

# 1 Old 01-22-2008, 01:01 PM
rhowlett rhowlett is offline rhowlett's reputation rhowlett is on a distinguished road » Junior Community Member
Join Date: Oct 2007 Posts: 97
Question Integration with MS Word
Is there any easy way to get information developed in the wiki transferred to Word? Could content even be synchronized?
# 2 Old 01-22-2008, 06:27 PM
d00p d00p is offline d00p's reputation d00p has a spectacular aura about » Junior Community Member
Join Date: Aug 2007 Posts: 94
I think it shouldn't be really difficult to write a vbs macro on a word that would call the "GETages/{pageid}/export" api call and write the output to the word document...
# 3 Old 01-22-2008, 09:58 PM
d00p d00p is offline d00p's reputation d00p has a spectacular aura about » Junior Community Member
Join Date: Aug 2007 Posts: 94
First, you must export the page you want to convert to html. For example, if we want to export http://wiki.opengarden.org/Deki_Wiki:
curl -b cookies.txt "http://wiki.opengarden.org/@api/deki/pages/=DekiWiki/export?format=html" > c:\dekiwiki.html
And the we will use vbscript to convert the html output to a word document:
Set Word = CreateObject("Word.Application")
Set Doc = Word.Documents.Open("c:\dekiwiki.html")
Doc.SaveAs "c:\dekiwiki.doc",wdFormatDocument
Word.Quit
I'm using Office 2007 and it works without problem, I suppose older Office version will work too.
This is just a quick hack, but maybe you can start with this...
# 4 Old 01-24-2008, 09:36 PM
SteveB SteveB is online now SteveB's reputation SteveB has a reputation beyond reputeSteveB has a reputation beyond reputeSteveB has a reputation beyond repute » MindTouch Team
Join Date: Jul 2006 Location: San Diego, CA Posts: 4,996
Sweet. I would think that with a bit more effort you could even bypass the curl command and directly load the HTML directly from within word.
Steve G. Bjorg - Chief Architect
Did you check the MindTouch Deki FAQ?
Found a bug? Report it.
Follow me on Twitter
Find us on IRC: irc.freenode.net #mindtouch
# 5 Old 01-28-2008, 01:52 PM
phillfri phillfri is offline phillfri's reputation phillfri has a reputation beyond repute » Community Member
Join Date: Oct 2007 Posts: 120
The problem you WILL run into is that Word (even Word 2007) does not produce standards compliant html output, even if you use the clean html file save option. I found that when cutting and pasting html coding from Word docs that Deki Wiki will not translate everything correctly when making a conversion to xhtml. You can read a lot about MS html standards compliance issues if you search google.
phillfri

Deki Wiki Configurations:
[1] Windows XP Native Install
[2] Vista Native install
[3] Windows XP VM Install
# 6 Old 01-29-2008, 12:41 AM
royk royk is offline royk's reputation royk has a reputation beyond reputeroyk has a reputation beyond repute » MindTouch Team
Join Date: Feb 2007 Posts: 1,874
With the latest release, it's easy to include any PHP application without adding overhead to Deki Wiki by using our /@gui/ URL. It could be feasible to add a feature here which would accept data, run it through a Word HTML cleaning PHP application (I've seen many), then pass it to the API. If somebody can provide the knowledge on the Word side to POST/PUT documents to a location, I'd be willing to volunteer my resources on adding the PHP side to accept the data.
Found a bug? Report it.
# 7 Old 02-06-2008, 12:00 AM
d00p d00p is offline d00p's reputation d00p has a spectacular aura about » Junior Community Member
Join Date: Aug 2007 Posts: 94
royk,
what's the /@gui/ URL? I don't find info of it...
# 8 Old 02-06-2008, 12:15 AM
royk royk is offline royk's reputation royk has a reputation beyond reputeroyk has a reputation beyond repute » MindTouch Team
Join Date: Feb 2007 Posts: 1,874
It's lightly documented. It's a second entry point into the PHP application which doesn't load up the whole Deki Wiki application when you hit it. This is primarily being used right now for our new link and image dialogs - it allows us to execute quick API calls and do transformations on the data while keeping server load to a minimum.

We'll document it shortly.
Found a bug? Report it.
# 9 Old 02-06-2008, 12:25 AM
d00p d00p is offline d00p's reputation d00p has a spectacular aura about » Junior Community Member
Join Date: Aug 2007 Posts: 94
So, if I'm understading it, I could put there my own php files and execute them from there?
This could be useful when writing php extensions...
# 10 Old 02-06-2008, 09:16 AM
royk royk is offline royk's reputation royk has a reputation beyond reputeroyk has a reputation beyond repute » MindTouch Team
Join Date: Feb 2007 Posts: 1,874
Hey doop,

I've written up some documentation on /@gui/. It's grown organically for a specific purpose, so it might require some tweaking to get it to work exactly as users want it.

I'm not sure if it'll work with extensions, as it was designed to remix data from the API in a speedy way to allow us to develop rich interfaces (the new dialogs make heavy use of /@gui/).

Let me know if you have any thoughts about modifying this for other uses.
Found a bug? Report it.
Page 1 of 2 1 2 >

Thread Tools

Search this Thread

Search this Thread Advanced Search

Display Modes

Powered by MindTouch 2010