Hi,
We have an issue in displaying some of the characters in wingdings font style by using CloneSlide method. In the source presentation slide, we have an applied the wingdings font for the character " á" which will display the character as up arrow. While cloning the source slide to another presentation, in the cloned slide the font applied for the character " á" is changed to Arial which is resulting in diaplying wrong data. Please look in to this issue and let us know whether there is any workaround and what could be done for the permanent fix. Thank You.
Please find more details for the above issue.
1. Source PPT and Cloned PPT are attached for your reference.
2. Sample source code to replicate the issue.
Below is the sample code snippet to replicate this issue.
Slide slide = null;
Presentation source = new Presentation(@"C:\temp\Source.ppt");
SortedList temp = new SortedList();
Presentation m_presentation = new Presentation();
slide = source.Slides[0];
source.CloneSlide(slide, m_presentation.Slides.LastSlidePosition + 1, m_presentation, temp);
m_presentation.Slides.RemoveAt(0);
MemoryStream stream = new MemoryStream();
if (stream != null)
{
m_presentation.Write(stream);
}
FileStream file = new FileStream(@"c:\temp\Cloned.ppt", FileMode.Create, FileAccess.Write);
byte[] bytes = stream.ToArray();
file.Write(bytes, 0, (int)stream.Length);