Hi David,
I tried SharpZipLib 0.85.5, to generate (using the FastZip class) the same
document with the same contents in it. This time the generated document
can
be opened by Word 2007 SP2 with no problem.
I also tried the file with the latest Open XML Format SDK 2.0 APIs, the
document cannot be opened. The error information indicates the main
document part cannot be found in the package.
It is hard to say which of the many changes in SP2 might have caused this
problem. It may be that some fix to imporve security or some other changes
we made in SP2 is finding a problem with the SharpZipLib generated file
that earlier versions did not notice.
So I suggest you try the latest SharpZipLib and see if the problem is
still
there.
For long term, I also suggest you use the Open XML Format SDK 2.0 APIs
(
http://msdn.microsoft.com/en-us/library/bb448854(office.14).aspx) to
generate Word/Excel/PowerPoint files, which comes with some handy tools
(like a reflector tool to generate C# code from a Office document) and
will
have better support from Microsoft. It is currently in the CTP stage, but
definitely worth for some studies.
Please let me know if you have any updates on the SharpZipLib 0.85.5
version.
Regards,
Jie Wang (
[email protected], remove 'online.')
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business days is acceptable. Please note that each
follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support
Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.