K
kodexe
I posted this question in the VSTO forum but I was suggested to post here
instead as it was not a particular VSTO issue but related to Powerpoint.
I have a Powerpoint VSTO Add-in where I want to change a text in the active
presentation slidemaster. Changing the text works fine but it does not
refresh on the slide that is showing. In order for it to update I have to
change slide and go back to the original slide again. Is there a way to
programmaticaly refresh the slide? I have tried
'presentation.Windows[1].View.GotoSlide(currentSlideIndex)' but that doesn't
work. I use the following code to change the text:
presentation.SlideMaster.Shapes["ConfidentialTextBox"].TextFrame.TextRange.Text = value;
presentation.SlideMaster.CustomLayouts[1].Shapes["ConfidentialFirstTextBox"].TextFrame.TextRange.Text = value;
Refreshing should work even if there is only one slide in the presentation.
/Urban
instead as it was not a particular VSTO issue but related to Powerpoint.
I have a Powerpoint VSTO Add-in where I want to change a text in the active
presentation slidemaster. Changing the text works fine but it does not
refresh on the slide that is showing. In order for it to update I have to
change slide and go back to the original slide again. Is there a way to
programmaticaly refresh the slide? I have tried
'presentation.Windows[1].View.GotoSlide(currentSlideIndex)' but that doesn't
work. I use the following code to change the text:
presentation.SlideMaster.Shapes["ConfidentialTextBox"].TextFrame.TextRange.Text = value;
presentation.SlideMaster.CustomLayouts[1].Shapes["ConfidentialFirstTextBox"].TextFrame.TextRange.Text = value;
Refreshing should work even if there is only one slide in the presentation.
/Urban