In our asp. Sometimes but not always , we the application just has to store a docx-file and make it available to the user via download. We only need to support the docx-format but the users must be able to open any docx-document in office compatibility pack will be necessary then. I am almost sure that is is because of the fact, that the docx-files contain html, that the compatibility pack cannot handle.
So I tried to resave the file via code C Interop. I manage to save the file in doc-format but not in docx. What am I doing wrong?
I get the error message that the format is not correct. PS: I hope this is the right forum. If there is a better place to address this question. Please tell me. Thanks a lot and sorry for my ill-formated code. My code was lacking the "doc. Activate " stuff. Now it works perfectly. I insert some html into the document via the open xml api. However, when i open it in word with the compatibility pack installed, I get an error.
When I leave out the html, i can also open it in word compatibility pack. So it really is the html that troubles me. I tried resaving it via Interop as resaving it by hand from the application works but that does not help Please log in with your username or email to continue. No account yet? Create an account.
Edit this Article. We use cookies to make wikiHow great. By using our site, you agree to our cookie policy. Cookie Settings. Learn why people trust wikiHow. Download Article Explore this Article methods. Related Articles. Method 1. Open your Doc file in Microsoft Word. Find and double-click your document to open it in Word. Click the File tab on the top-left. This will open your file options on a drop-down menu.
On Windows, this button is next to Home in the upper-left corner of Word. On Mac, it's on your menu bar in the upper-left corner of your screen. Click Save As on the File menu. This option will open a new dialogue box. You can save your document in a different, compatible file format here. If this doesn't automatically open a new dialogue box, click Browse on the Save As page. Click the format drop-down at the bottom of the Save As window. This will open a list of all the available file formats you can use.
On Windows, this menu is labeled as Save as type below the File name field. On Mac, it's labeled as File Format at the bottom. This will allow you to save a separate copy of the same document in Docx format.
Unfortunately, it also made it much harder to collaborate on documents with people that were still using earlier versions of Word. While they did release a compatibility pack that addressed this issue, not everyone was able to download it or was even aware that it existed. But one way to ensure that users of the older versions of Word will still be able to read your documents is by learning how to save as.
This is a change that you can apply to the program that will automatically save your documents in the. While this is less of a concern now than it was during the initial transition period, you might be interested in reducing any possible complications that might arise when you have a varied audience that is trying to read your work. So continue reading below to see how to change the default file type in Word Our guide continues below with additional information on saving as doc instead of docx in Word , including pictures of these steps.
Like many of the other interesting settings that exist in Office , this one is found on the Options menu that you can access from the File tab. And you are not only limited to. You can also choose to save to any of the other compatible Word file types as well, such as. But continue reading to learn how to start using. The changes in the section above will affect all of the future new documents that you create in Word
0コメント