We are facing an issue(font discrepancy) while building a single PowerPoint presentation for two or more reports(slides) which are built using different fonts in header text(smart text).
In this case we have built a powerpoint presentation with two reports(slides) in which source1 uses Arial font and source2 uses Arial Narrow font for header text(smart text). After exporting we could see that header text(smart text) of source2(slide2) was changed to wingdings font.
Below is the sample code snippet:-
slide = null;
Presentation source1 = new Presentation(@"C:\temp\Source1.ppt");
Presentation source2 = new Presentation(@"C:\temp\Source2.ppt");
SortedList temp = new SortedList();
Presentation m_presentation = new Presentation();
slide = source.Slides;
source.CloneSlide(slide, m_presentation.Slides.LastSlidePosition + 1, m_presentation, temp);
MemoryStream stream = new MemoryStream();
if (stream != null)
FileStream file = new FileStream(@"c:\temp\Cloned.ppt", FileMode.Create, FileAccess.Write);
byte bytes = stream.ToArray();
file.Write(bytes, 0, (int)stream.Length);
Please look into this issue and update us as soon as possible.
Thanks & Regards
N Suresh Babu