RE: Exporting mail to DXL Andre Guirard 8.Apr.10 05:11 PM Lotus Notes General 7.0.3 FP1; 7.0.3; 7.0.2 FP3; 7.0.2 FP2; 7.0.2 FP1; 7.0.2; 7.0.1 FP1; 7.0.1; 7.0; 6.5.6; 6.5.5 FP3; 6.5.5 FP2; 6.5.5 FP1; 6.5.5; 6.5.4 FP3; 6.5.4 FP2; 6.5.4 FP1; 6.5.4; 6.5.3 FP2; 6.5.3 FP1; 6.5.3; 6.5.2 FP1; 6.5.2; 6.5.1Windows Vista, Windows 2003, Windows 2000, Windows XP
You are running the agent in a way that doesn't give it access to the Notes UI. You can't use the NotesUI stuff there.
I don't understand why you're passing control off to an external application that calls an agent, instead of just putting the code in the form event directly, or putting it in a script library that your code can use directly. This is a very rickety, Rube Goldberg thing you have made.
If you must use the external application, I believe it will have to use the noteID parameter of the agent run method to tell the agent which note needs to be exported.