[imp] Fw: wordview again

Dominic Hulewicz djh@intanet.com
Tue, 25 Sep 2001 16:34:47 +0100


---------------------- multipart/mixed attachment
Quoting Andre Castanheira <aocastanheira@cariocaengenharia.com.br>:
> I can generate a html file from a doc one on command line, but I can't
> from imp.
> 
> my defaults.php3 :
> $default->path_to_mswordview             = '/usr/local/bin/wvWare -x
> /usr/local/
> share/wv/wvHtml.xml';    /* M$WordView */
> 
> Any ideas ??

I came across the same problem a while ago.
My fix to horde/lib/MIME/Viewer/msword.php is attached.

Dominic.
---------------------- multipart/mixed attachment
LS0tIGxpYi9NSU1FL1ZpZXdlci9tc3dvcmQucGhwLm9yaWcJVHVlIFNlcCAyNSAxNjoyMDo1NiAy
MDAxDQorKysgbGliL01JTUUvVmlld2VyL21zd29yZC5waHAJVHVlIFNlcCAyNSAxNjoyMTo0MSAy
MDAxDQpAQCAtMzEsMTggKzMxLDcgQEANCiAgICAgICAgIGZ3cml0ZSgkZmgsICR0aGlzLT5taW1l
X3BhcnQtPmdldENvbnRlbnRzKCkpOw0KICAgICAgICAgZmNsb3NlKCRmaCk7DQogDQotICAgICAg
ICBleGVjKCRtaW1lX2RyaXZlcnNbJ2hvcmRlJ11bJ21zd29yZCddWydsb2NhdGlvbiddIC4gIiAk
dG1wX3dvcmQgJHRtcF9vdXRwdXQiKTsNCi0NCi0gICAgICAgIGlmICghZmlsZV9leGlzdHMoJHRt
cF9vdXRwdXQpKSB7DQotICAgICAgICAgICAgcmV0dXJuIF8oIlVuYWJsZSB0byB0cmFuc2xhdGUg
dGhpcyBXb3JkIGRvY3VtZW50Iik7DQotICAgICAgICB9DQotDQotICAgICAgICAkb3V0ID0gZm9w
ZW4oJHRtcF9vdXRwdXQsICdyJyk7DQotICAgICAgICAkZGF0YSA9ICcnOw0KLSAgICAgICAgd2hp
bGUgKCgkcmMgPSBmZ2V0cygkb3V0LCA4MTkyKSkpIHsNCi0gICAgICAgICAgICAkZGF0YSAuPSAk
cmM7DQotICAgICAgICB9DQotDQorICAgICAgICAkZGF0YSA9IHN5c3RlbSgkbWltZV9kcml2ZXJz
Wydob3JkZSddWydtc3dvcmQnXVsnbG9jYXRpb24nXSAuICIgJHRtcF93b3JkIik7DQogICAgICAg
ICByZXR1cm4gJGRhdGE7DQogICAgIH0NCiANCg0KDQo=

---------------------- multipart/mixed attachment--