To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=70812 Issue #|70812 Summary|Merge execute method does not release locks Component|api Version|OOo 2.0.4 Platform|All URL| OS/Version|Windows XP Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|jsc Reported by|ludbia
------- Additional comments from [EMAIL PROTECTED] Tue Oct 24 08:45:41 -0700 2006 ------- I am automating mail merge from Visual Basic 6.0, in a Win XP sp2 environment. In pseudo code I made this: 1. Initialize a data source, save it, register it (OK) 2. Initialize a mail merge service, call its execute method (OK) 3. Revoke data source and dispose it (OK) 4. Dispose merge service (OK??) 5. Cancel the temporary .odb file created at point 1 (Error: permission denied) With OOo 2.0.3 there was another problem: also the QuickStart locks the file (issue 50905). Now I am using 2.0.4: the problem with the QuickStart is fixed (after the program stopped, I can manually delete the files), but I still get an error at point 5 (see above). I have checked the MailMerge service's API, I suppose I have used it correctly. The attachments are: - a .csv file with the data - a .odt template file (I've inserted TextField.Database and FieldMaster.Database to perform a mail merge) - a .vbp Visual Basic Project file (I don't Know if this could be useful..) - a .bas file (the visual basic source file) Before you run the program (I supposed you have an IDE for VB), customize some global variables in it, so they link the needed files (I left my paths in the source code, so you can take them for example): - csvPath --> where you saved the .csv file (path + file name) - templatePath --> where you saved .odt template file (path + file name) - databaseDocument --> where you want the program will save the .odb file (path + file name) - destinationFolder --> where you want the program will save the merged files (a folder's path) - fileDel --> the location of the .odb file to delete (path + file name) A step by step execution in the IDE will show you that everything works, except the line which try to delete the .odb file. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
