How do I create a table title in a PowerPoint Slide Item.

S

Sammy

I have 4 items in a powerpoint slide copied from Excell range.

I managed to set a charttitle for the chart items in the slide but I do have
a table created from Excel.Name.
How do i create a header/title for a table created from Excel.Name (se
CopyTable method as i could do in
Excel.Chart(se method CopyChart)

private void CopyTable(SlideItem item)
{
Excel.Name name;
name = wb.Names.Item("chart item name",Constants.missing, Constants.missing)
as Excel.Name;
name.RefersToRange.CopyPicture(Excel.XlPictureAppearance.xlPrinter,Excel.XlCopyPictureFormat.xlPicture);
Marshal.ReleaseComObject(name);
name=null;
}
private void CopyChart(string chartName,string chartTitle)
{
(wb.Charts[chartName] as Excel.Chart).HasTitle = true;
(wb.Charts[chartName] as Excel.Chart).ChartTitle.Font.Size = config.FontSize;
(wb.Charts[chartName] as Excel.Chart).ChartTitle.Text = chartTitle;
(wb.Charts[chartName] as
Excel.Chart).CopyPicture(Excel.XlPictureAppearance.xlPrinter,Excel.XlCopyPictureFormat.xlPicture,Excel.XlPictureAppearance.xlPrinter);
}

Any Ideas?
Thanks
 

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