Can't save WORD 2003 Document

Hello! All,

I am working on a prototype of an data transformation minifilter driver. My driver only needs to handle files on local NTFS locally so I am using NTFS
alternative data stream and therefore, my driver doesn’t need to change the file size.

My driver works fine on XP for MS Office 2007 and Office 2003 except 2003 WORD. When I create (File->New, type data, File->Save) a new file, I keep getting the error saying “Word cannot complete the save due to a file permission error”. As you know, WORD creates the tmp file, and renames to the destination doc at the end. Therefore, at the post rename operation, my driver transforms the whole file and generates the alternative data stream. Had you run into the similar problem? Any idea what cause this problem? What should I do for debugging? I am using FileSpy to compare failed operation and successful operations, but so far havn’t found anything useful. I am sure that I need to provide more information so you can help me out. Please let me know what else you need to know.

Some posts in this forum says that WORD 2003 behaves differenly from WORD 2007 but didn’t say what the differences exactly are. So what the differences are?

Thank you in advance for the help.

Heidi

>Had you run into the similar problem?

Sure.

Any idea what cause this problem?

Until you find the actual point of failure, no one is going to be able to
help you resolve the issue. Even then, we’d probably need access to your
source code to start to guess what the bug in your driver might be.

What should I do for debugging?

You need to find the failing operation. FileSpy, Process Monitor, and/or
IRPTracker might be helpful here. If you don’t find any obvious operations
that are failing, you’ll need to start focusing on the data being returned.
It could be that you’re responding to a query with incorrect results (these
are tough to track down). Sometimes the only way to figure these out is to
attach a debugger to Word, look at the failing stack, and start working
backwards. Tedious work and part of what makes writing these filters so
hard.

Some posts in this forum says that WORD 2003 behaves differenly from WORD
2007 but didn’t say what the differences >exactly are. So what the
differences are?

I seriously doubt anyone can rattle off the list of differences, they’re
different products and no one here works on them (that I know of, at least).

This sort of problem is very common. As a matter of fact, we just had a
customer report an issue against the DMK that an operation takes
considerably slower on Word 2003 than it does on Word 2007. I haven’t
started looking at it yet, but I’m not at all looking forward to it
(especially since word on the street is that it’s 70 degrees outside).

-scott


Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com

wrote in message news:xxxxx@ntfsd…
> Hello! All,
>
> I am working on a prototype of an data transformation minifilter driver.
> My driver only needs to handle files on local NTFS locally so I am using
> NTFS
> alternative data stream and therefore, my driver doesn’t need to change
> the file size.
>
> My driver works fine on XP for MS Office 2007 and Office 2003 except 2003
> WORD. When I create (File->New, type data, File->Save) a new file, I keep
> getting the error saying “Word cannot complete the save due to a file
> permission error”. As you know, WORD creates the tmp file, and renames to
> the destination doc at the end. Therefore, at the post rename operation,
> my driver transforms the whole file and generates the alternative data
> stream. Had you run into the similar problem? Any idea what cause this
> problem? What should I do for debugging? I am using FileSpy to compare
> failed operation and successful operations, but so far havn’t found
> anything useful. I am sure that I need to provide more information so you
> can help me out. Please let me know what else you need to know.
>
> Some posts in this forum says that WORD 2003 behaves differenly from WORD
> 2007 but didn’t say what the differences exactly are. So what the
> differences are?
>
> Thank you in advance for the help.
>
> Heidi
>