unable to draw graph when workstn locked

E

echlinja

Hi,

I use excel via OLE automation for creating graphs and doing some basic
analysis. The graphs are exported as PNG and displayed in html pages.
For sake of argument let's say the calling program is invoked via the
scheduler, running as me.

So far so good.

The problem is, that as soon as the machine is locked, even as soon as
you press ctrl+alt+del, the program fails. Upon unlocking the machine
and looking at the instance of excel that was being controlled by COM,
you see the msg box:

"Not enough system resources to display completely"

Whether application.Visible is set or not the same problem happens, so
the issue doesn't seem to be "displaying" the graph in the normal
sense. Perhaps there is some limit on # of windows GDI objects that is
changed when the machine is locked? I only have the single worksheet
open, and I get the same error whether I reuse the same graph object or
create new.

Anyone have any ideas? I've STFW'd and tried everything.

Thanks, jamie
 
Top