Re: [viewvc-users] ViewVC: Cant open a docx file in CVS
"C. Michael Pilato" <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <[email protected]> |
This is a common question. (I guess I should add a FAQ entry.) As it turns
out, .docx files *are* ZIP archives. Of course, you don't want them handled
on the client side as ZIP archives, but as a Office documents.
Are you making use of a MIME types mapping file on the server? That would
be the "mime_types_files" (or "mime_types_file", singular, in ViewVC 1.0)
viewvc.conf configuration option. If you aren't, you might consider doing
so, and then ensuring that the MIME types mapping file you use has entries
for the "docx" file extension. ViewVC will consult the specified mappings
files for the purpose of including the MIME type in the HTTP Content-Type
response header. That's the header that gives your browser a hint about how
to handle the file.
On my system, the /etc/mime.types file contains these mappings:
{{{
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
application/vnd.openxmlformats-officedocument.presentationml.template potx
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx
}}}
Maybe yours needs the same?
Let me know what you try and what works/doesn't work for you.
On 08/29/2011 04:11 AM, Hasse Gottfridsson wrote:
> Hi,
>
> I just want to check if our ViewVC are working as it should or if it is
> possible to get it even better.
>
> I can use ViewVC to open office files stored in CVS with "download" and
> answer yes to open a file. Here some example on file types:
> - Excel
> - PowerPopint
> - Word 97-2003(.doc)
>
> But when I try to open a word 2007 (.docx) document ViewVC tells me that it
> is a .zip file.
> If I select to open the file a will get a list of xml files in a tree structure.
> I need to first save the zip file, and the open the zip file with word 2007
> to be able to read the file.
>
> Is this the right behavior, or is there any way to make it as easy to open a
> word2007 document as a word 2003?
>
> Hope to hear from you and thanks in advance for your time!
>
> Regards
> /Hasse Gottfridsson
> Software Configuration Manager
--
C. Michael Pilato <[email protected]>
CollabNet <> www.collab.net <> Distributed Development On Demand
------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2832091
To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc
(application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk5bncoACgkQokEGqRcG/W5ESgCgm9z3Mgn8/jcTUADZLkn04/My +SQAoJYvauClkf4CKEzp7YiB4aAaBXAw =5epu -----END PGP SIGNATURE-----