WordPerfect won't save RTF format file to a Web Folder
Posted on 2006-12-01
I have a web application that uses documents in RTF format. It opens them in either MS Word or WordPerfect. I have no problems with Word, but WordPerfect will NOT allow me to save files with an RTF format to a web folder. Actually, it does a couple of weird things. It first says the file exists and asks if I want to overwrite it, but the file does NOT exist already. The 2nd thing it does is when I try to save it, the save seems to work, then it gives me the Access Denied error message and wants me to save it again.
Some details: The web application is written in Java and is running on Apache/Tomcat on my laptop. The web folder is being watched by another small application so when a RTF file gets saved there, it grabs it and moves it to a folder where it can find it later (a reference to the path and filename is stored in a database, so the location is critical).
The application saves the document first (in a folder based on document name / date), then it sends it to WordPerfect to open. The file is opened from a temporary folder on the local computer, so when saving, I have to do Save As and navigate to my web folder. This is not a problem, it's just inherent in the design of the web application.
WordPerfect will save it if I save it in WPD format, but the application can't use WPD format. It has to use RTF (long explanation as to why, but there's a good reason we need to use RTF). There is no security on this web folder that should prevent access.
There's something else happening that I can't figure out.
Can anyone tell me why I keep getting an Access Denied error? I wonder if it has something to do with the issue that the application is grabbing the file very soon after it's saved (about 10-50 milliseconds I think).