How can change the background picture of a slide which have a template applied

Hi,

How can change the background picture of a slide which have a template applied?. Some times when applying a background picture to a slide and if a template is already applied to the slide then the background image is not changing.

thanks

Nitheesh

Dear Nitheesh,

You need to set the Slide.FollowMasterBackground=false e.g

sld.Background.FillFormat.Type = FillType.Picture;
sld.Background.FillFormat.PictureId = yourPicID;
sld.FollowMasterBackground = false;

Hi Shakeel,





I tried using the “FollowMasterBackground = false”. But its not working for certain templates. And at some time its work for some templates. I don’t know why. can u help me to solve this.





thanks



Nitheesh

Can you please provide some example template that does not work with it?

Hi,

Here is the presentation that goes wrong for me. Please find the attachment.

thanks & regards

Nitheesh

Well, I found, in this presentation case, you also have to set

sld.FollowMasterObjects = false;

Thank you msfaiz. its works fine now.

Nitheesh