J
James
Hi
We develop a commercial add-in for PowerPoint and have been doing so for
10 years now.
What this requires is for the slides to update dynamically and
programmatically according to live data polled from a database. This has
all been working fine up until recently. We have found that, in
PowerPoint 2007, simply refreshing a slide (ie reloading the data from
the database and redrawing the chart) takes an increasingly longer
period to do. In other words, the same code runs slower and slower - in
testing we have got this to over 15 seconds for a routine that started
out taking 0.1 seconds! This occurs both in edit mode and when running a
slideshow.
The charts are created by manipulating shapes within PowerPoint and
MSChart is not being invoked.
There is also a simple, but strange 'fix' to all this. If the user
manipulates a shape manually on the slide, or even types in a letter
into the notes pane, say, then the routine will suddenly run again at
optimum speed. However, this has to be done manually. Any programmatic
changes I make do not do this.
It is as if all the 'stack' of vba commands are being cumulatively
stored by PowerPoint (for some sort of undo??) and only is the
collection cleared when the user makes a change to the slide.
If anyone has had a similar experience or indeed has a solution to this,
I'd be very interested to hear it!
Our add-in is created in VB6 as a COM add-in.
Thanks in advance
James
We develop a commercial add-in for PowerPoint and have been doing so for
10 years now.
What this requires is for the slides to update dynamically and
programmatically according to live data polled from a database. This has
all been working fine up until recently. We have found that, in
PowerPoint 2007, simply refreshing a slide (ie reloading the data from
the database and redrawing the chart) takes an increasingly longer
period to do. In other words, the same code runs slower and slower - in
testing we have got this to over 15 seconds for a routine that started
out taking 0.1 seconds! This occurs both in edit mode and when running a
slideshow.
The charts are created by manipulating shapes within PowerPoint and
MSChart is not being invoked.
There is also a simple, but strange 'fix' to all this. If the user
manipulates a shape manually on the slide, or even types in a letter
into the notes pane, say, then the routine will suddenly run again at
optimum speed. However, this has to be done manually. Any programmatic
changes I make do not do this.
It is as if all the 'stack' of vba commands are being cumulatively
stored by PowerPoint (for some sort of undo??) and only is the
collection cleared when the user makes a change to the slide.
If anyone has had a similar experience or indeed has a solution to this,
I'd be very interested to hear it!
Our add-in is created in VB6 as a COM add-in.
Thanks in advance
James