Here’s an interesting challenge for anyone interested. Can someone tell me why one of these lines of code would behave differently than the other? I will explain what’s going on under the codeJava
====
reportBody.embedObject(EmbeddedObject.EMBED_ATTACHMENT, null, "c:\temp\report.xls, null);
LotusScript
===========
Call reportBody.EmbedObject(EMBED_ATTACHMENT, “”, “c:\temp\report.xls”)
Both of these are set to run in a scheduled agent. They both have appropriate authorizations/access to the file system. Both run perfectly if executed from the client, not the schedule. Both go to the file system, get the file and actually embed it. Here’s the really puzzling (read: frustrating) part:
The attachment created by the java version has an issue with its properties. The size is 0 bytes. You can still open it using a Notes Client but through the web? no. Clicking the attachment through the web leads to a blank web page.
The attachment created with LotusScript works just fine.
So there you go. Bizarre stuff.
If anyone knows anything about it, I’m all ears.