Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Word > 2007 #299

Closed
jonnsn opened this issue Jun 30, 2014 · 10 comments
Closed

Word > 2007 #299

jonnsn opened this issue Jun 30, 2014 · 10 comments
Assignees
Milestone

Comments

@jonnsn
Copy link
Contributor

jonnsn commented Jun 30, 2014

Hi,

I wanted to implement Support for Table Captions and make a Fork here but ran into an error when opening the resulting docx. The xml is actually fine, but as I recognized it is not supported in Word 2007 (was added in 2008).
http:https://officeopenxml.com/WPtableCaption.php

Is it planned to support Features of Word > 2007? What would I have to do to get it working for me? Are there alternatives for word 2007?
Thanks for your suggestions!

@ivanlanin
Copy link
Contributor

What client did you use to open the resulting docx? You can use the setOoxmlVersion method as outlined here to set the docx to be compatible with Word 2010 or 2013.

@jonnsn
Copy link
Contributor Author

jonnsn commented Jun 30, 2014

I am using Office 2013.
Thank you for your suggestion. I tried the code, but it did not work:

Call to undefined method PhpOffice\PhpWord\PhpWord::getCompatibility()

When was this added? I can't find a method with this name here on github too.

@ivanlanin
Copy link
Contributor

Ups. I forgot to tell you that this method is on the develop branch.

@jonnsn
Copy link
Contributor Author

jonnsn commented Jun 30, 2014

I see :-) Thank you - I'll try it and report again (might be tomorrow)!

@jonnsn
Copy link
Contributor Author

jonnsn commented Jul 1, 2014

Update: With the develop branch everything worked fine.
Thanks again!

But I misunderstood the meaning of caption in this context, as this is only a non-visible Table-Title (only visible via Table-Properties in Word).

@jonnsn jonnsn closed this as completed Jul 1, 2014
@ivanlanin ivanlanin added this to the 0.12.0 milestone Jul 1, 2014
@ivanlanin
Copy link
Contributor

So what you want to achieve is to get a table caption like when you right click a table on Word and select "Insert Caption..."?

@jonnsn
Copy link
Contributor Author

jonnsn commented Jul 1, 2014

Exactly. Could not find something for this yet. Guess i have to make it as headers?

@ivanlanin
Copy link
Contributor

I think this is a good enhancement. Can you open a new issue for this? At least we write down what we want :)

@jonnsn
Copy link
Contributor Author

jonnsn commented Jul 1, 2014

done :)

#300

@ivanlanin
Copy link
Contributor

Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants