none
How do I apply a chart template (.crtx) in Word or PowerPoint without triggering the opening of Excel.

    Question

  • Hi,

    We just want to apply a custom chart template to a chart in Word (or PowerPoint), but do not want to trigger the opening of Excel. i.e. just apply bar colours, axes and title fonts. We have custom code for applying chart colours at the moment and ideally want to move this to a simple.  

    If we can do something like this, it will save us weeks of work, providing these chart templates meet our full requirements.

    Running this code does the job, but Excel loads up too - not what we want.

    Microsoft.Office.Interop.PowerPoint.

    Chart myChart = item.Chart;

     

    @"C:\Users\Peter\AppData\Roaming\Microsoft\Templates\Charts\pie.crtx");

    Thanks in advance.

     

    myChart.ApplyChartTemplate(

    Saturday, November 07, 2009 6:32 PM

Answers

All replies