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

Powerpoint writes corrupt PPT files #226

Open
legsak1mbo opened this issue Mar 5, 2019 · 0 comments
Open

Powerpoint writes corrupt PPT files #226

legsak1mbo opened this issue Mar 5, 2019 · 0 comments

Comments

@legsak1mbo
Copy link

We've found this only affects PPT files (not PPTX) when writing to the Dot net Mirror. And even then it's only certain PPT files - it seems to be PPT files created with older versions of Powerpoint. The file that we've been testing with is at http://manoa.hawaii.edu/ctahr/aheed/Carl/13-Using_Powerpoint.ppt

When compared with the C mirror the PPT file is 512 bytes too short when written and once the file is closed Powerpoint then refuses to re-open it. Powerpoint does not report any errors during the save.

We've debugged the writes and everything appears normal until about half way through when small 2 byte differences begin to appear.

Adding a stream.Flush after the stream.Write in the WriteFile method seems to resolve this but this seems like more of a hack than a fix.

Keen to get your thoughts and can provide more information as needed.

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

No branches or pull requests

1 participant