CS3: Problems with file handling
Hi
I have installed a new PC including InDesign Debug CS3 (5.0.3) and the SDK. I built my plugin and have now some problems with the file handling. I haven't changed my source code or the path in the file system. The InDesign files are on a local drive (D:).
First issue:
----------------
- My plugin open an InDesign file using SDKLayoutHelper::OpenDocument. The path is D:\Work\InDesign\Test.indd. The file is correctly opened.
- Now I want to open the SAME file again (in my plugin). Before my plugin do that, it make a test if the file is already open. I do that via the method "FindDoc" of "IDocumentList".In my old installation, this works, in my new one not. Why that???
- I had a look about the method "GetSysFile" of "IDatabase" in my plugin. In the old installation this method gave me the whole path, in the new one only the file name. I get the "IDatabase" interface via UIDRef from the "IDocumentList". I changed "GetSysFile" to "GetSysFileFromOpen" and get now the whole path.
OK. So far so good. I have a workaround. But why does it work with the old installation on another PC and with the new installation not??? Any ideas?
Second issue:
---------------------
- My plugin open an InDesign file using SDKLayoutHelper::OpenDocument. The path is D:\Work\InDesign\Test.indd. The file is correctly opened.
- After work my plugin want to save the opened file with SDKLayoutHelper::CloseDocument(uidRefDoc, kFalse, K2::kSuppressUI, kTrue, IDocFileHandler::kSchedule).
- But now the SaveAs dialog is shown!!! Why that?
- This works also correct on the old installation and not on the new installation.
It seems, there is a problem with the InDesign file handling on my new installation. I have no idea why, but there must be a differnence between the installations or the configuration. I am a little bit confused about this behavior.
Any ideas or hints?
Thanks a lot.
Hans