powerpoint : Pb to refresh a SlideShowView changes

V

Vasken Guzel

I have a problem refreshing the SlideShowView in the PowerPoint
application. I did some changes ( Shape.TextFrame.TextRange.Text attribut
for example, or on a Excel Graph OLEObject ) on a slide of the active
presentation. When I did the changes on the slide "during a Slide Show" ,
the SlideShowView is not correctly refreshed. I have got the old text and
the new text of the shape, showed on the SlideShowView. It's also the same
problem for a Graph imported from Excel , I displayed the graph on the slide
then I change the values. But The SlideShowView doesn't change and show the
default values of the Graph although values have been changed.
If some one can help me, how to have the SlideShowView refreshed correctly
with the good changes made, Thank's a lot !
 
S

Steve Rindsberg

I have a problem refreshing the SlideShowView in the PowerPoint
application. I did some changes ( Shape.TextFrame.TextRange.Text attribut
for example, or on a Excel Graph OLEObject ) on a slide of the active
presentation. When I did the changes on the slide "during a Slide Show" ,
the SlideShowView is not correctly refreshed. I have got the old text and
the new text of the shape, showed on the SlideShowView. It's also the same
problem for a Graph imported from Excel , I displayed the graph on the slide
then I change the values. But The SlideShowView doesn't change and show the
default values of the Graph although values have been changed.
If some one can help me, how to have the SlideShowView refreshed correctly
with the good changes made, Thank's a lot !

After making changes use:

SlideShowWindows(1).View.GoToSlide(x)

where X = the index of the slide you've changed.
 
V

Vasken Guzel

Steve Rindsberg said:
After making changes use:

SlideShowWindows(1).View.GoToSlide(x)

where X = the index of the slide you've changed.

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
I tried it but it doesn't work.
I am using C# and this is a sample of my code, I used in a handler on the
SlideShowBegin event :
private void showBegin(Ppt.SlideShowWindow aSlideShowWindow)
{
//get the current slide showed
slide = aSlideShowWindow.View.Slide;
//add a shape , a TextBox to the slide
shapeInit =
slide.Shapes.AddTextbox(Microsoft.Office.Core.MsoTextOrientation.msoTextOrientationHorizontal,
150, 400, 500, 300);
//write the Text on the TextBox
shapeInit.TextFrame.TextRange.Text = String.Format(" Initialisation du
Quizz en cours. Veuillez patienter...");
Thread.Sleep(5000);//wait for change the new Text, If no sleep the slide
is refreshed correctly but I need it a sleep here
//write the new Text
shapeInit.TextFrame.TextRange.Text = String.Format("New Text");
//sleep again
Thread.Sleep(5000);
//Try the GoToSlide Method to Refresh , I tried both params
"Microsoft.Office.Core.MsoTriState.msoFalse "
aSlideShowWindow.View.GotoSlide(slide.SlideIndex,
Microsoft.Office.Core.MsoTriState.msoTrue);

}
 
S

Steve Rindsberg

[snippage]
I tried it but it doesn't work.
I am using C# and this is a sample of my code, I used in a handler on the
SlideShowBegin event :

I don't use C# but this looks reasonable. The one problem, perhaps, is that you:

Change the text
Sleep
Change the text
Sleep
THEN GoToSlide

Instead:

Change the text
GoToSlide
Sleep
Change the text
GoToSlide
Sleep
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top