Hi,
We have a system that changes slides between multiple masters each with different color schemes. The system works changing between the various masters and colors, but I’m finding that the charts aren’t updating to the color of the master.
Probably best to illustrate what I mean. I’ve attached a presentation with a single slide and 2 masters each with a different color scheme. The following code changes the presentation from the first master to the second. If you run the code you will see that the slide correctly changes master, however the chart doesn’t change colour. If you double click the chart you will see it pop into the correct color scheme.
Dim pres As New Presentation(“C:\Temp\Boilers_280112_V13 - Copy.ppt”)
Dim master As MainMaster = pres.Masters(1)
Dim lastSlidePosition As Integer = pres.Slides.LastSlidePosition
For i As Integer = 1 To lastSlidePosition
Dim slide As Slide = pres.GetSlideByPosition(i)
slide.ChangeMaster(master, True)
Next i
pres.DeleteUnusedMasters()
pres.Save(“c:\temp\AsposeOutPut4.ppt”, Aspose.Slides.Export.SaveFormat.Ppt)
I wondered if you could take and work out why the charts aren’t updating.
Thanks in advance
Dan
Hi Dan,
Hi,
If I open the file in PowerPoint, right click the slide and go to Slide Design, then click the master I want from the panel on the right, the color scheme does change. Is this not the correct way of changing the master?
Thanks
Dan
Hi,
Did you have any thoughts on this post?
Thanks
Dan
Hi Dan,
Hi,
Thanks for the reply. Would you be able to check whether this problem will be fixed in 6.0.0? It’s the final problem holding up our product/website, so it’s quite critical for us.
Are there any alternatives? How do you change colour schemes in 2003 and will it affect the OLE charts? How do you change the colours of OLE charts generally? or are you saying this isn’t supported.
Thanks
Dan
The issues you have found earlier (filed as SLIDESNET-29608) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
Hi,
As far as I can see, this issue isn’t fixed in the latest version. Using the file and code I attached previously the colours in the OLE chart still does not change.
Thanks
Dan
Hi Dan,
- Open generated presentation in slide master view
- Choose and apply any arbitrary color scheme and close Master view
- You will see the newly adopted color scheme applied on chart
- Now press Ctrl+Z to revert back to old master color scheme in slide master view
- Close slide master, you will see the Aspose.Slides adopted color schemes on chart as well
Hi,
Thanks for the suggestion. Unfortunately the system generates presentations for the end users/clients, so we can’t asked them to go through these steps, it will look unprofessional.
I appreciate you looking into this problem. It’s currently holding up the final release of our product, so I would really appreciate you making this a priority.
Many thanks
Dan
Hi Dan,
Hi,
I’ve spent the day looking into this to try and find a work around until an update can be provided. Unfortunately I don’t have a solution.
I’m getting pressure from above to resolve this as it’s holding up the release of our website. So I’d really appreciate if you can make this a priority and email me as soon as you have any update.
Thanks in advance,
Dan
Hi,
What does ExtraColorScheme do? I can’t find any documentation for this and when I examine this structure at runtime it shows no data.
Generally in 2003 how do you change between colour schemes?
Thanks
Dan
Hi Dan,
Hi Dan,
Hi,
Thanks for the extra information.
So can I use ExtraColorScheme and ApplyColorScheme to solve the problem above? I tried to use these a few days ago to force the chart to the color scheme of the master. However when I tried adding this code to the code above:
Dim master As MainMaster = pres.Masters(1)
Dim extracolourscheme As ExtraColorScheme = master.ExtraColorSchemes(0)
slide.ApplyColorScheme(extracolourscheme)
It had no effect. In fact when I debugged and watched extracolourschemeI found it to be empty. When I added a second color scheme, using ExtraColorScheme didn’t seem to let me change between schemes. I’m not sure that this will be a solution to the overall problem, however for reference could you let me know the proper use of this function.
I appreciate you guys looking into this problem.
Thanks
Dan
Hi Dan,
Hi,
Thanks for that code. It works to change the colorscheme. As an aside - for some reason the pres.MainMaster.ExtraColorSchemes[0] object is not available to examine in visual studio watch.
More generally this doesn’t solve the problem of the charts not changing to fit the scheme, which you mention the developers are going to look into Week 11. I look forward to hearing back from you on this.
Many thanks
Dan
Hi Dan,
Any news on this problem? Thanks