The Excel file is being displayed as an icon in the Word doc, which is embedded and rendered as a document in the PPT file. I can get the icon to display if I set the .IsObjectIcon property to ‘True’ on the embedded Word doc OleObjectFrame, but it appears to render the Word doc as a small icon, then expand it to the size of the embedded object, making the document contents blurry and unreadable.
I was able to use Aspose.Words to read the bytes of and open the embedded word document, and through that get to the Excel file, but that seems a bit extreme to simply render an icon.
Other software doesn’t have issues rendering this icon.
I can’t upload a sample, but here are screenshots of the document rendered by PPT automation to an imaging print driver, and Aspose.Slides rendered.
Aspose_rendered.png (418.0 KB)
PPTAutomation_rendered.png (188.5 KB)
@DaveGanote,
Thank you for contacting free support.
We need more details to investigate the case and help you. Please share the following files and information:
- sample presentation file (you can upload a zip file here)
- code example to reproduce the problem
- Aspose.Slides version you used
PPtEmbWordEmbExcel.zip (58.8 KB)
Sample file attached.
I am using the Aspose.Slide.Net Nuget package version 22.12.0
public void SampleCode()
{
string sampleFilePath = @"C:\temp\sampleFile.PPT";
var docStream = File.OpenRead(sampleFilePath);
var pptDoc = new Presentation(docStream);
var pdfOptions = new PdfOptions()
{
SaveMetafilesAsPng = false
};
pdfOptions.NotesCommentsLayouting.CommentsPosition = CommentsPositions.Bottom;
pptDoc.SlideSize.SetSize(612, 792, SlideSizeScaleType.Maximize);
pptDoc.SlideSize.Orientation = SlideOrientation.Landscape;
pptDoc.HeaderFooterManager.SetAllDateTimesVisibility(false);
pptDoc.HeaderFooterManager.SetAllFootersText(string.Empty);
pptDoc.HeaderFooterManager.SetAllHeadersVisibility(false);
pptDoc.HeaderFooterManager.SetAllFootersVisibility(false);
foreach (var slide in pptDoc.Slides)
{
slide.Hidden = false;
var shape = slide.Shapes.AddAutoShape(ShapeType.Rectangle, 0, 0, pptDoc.SlideSize.Size.Width, pptDoc.SlideSize.Size.Height, false);
shape.LineFormat.Width = 2;
shape.LineFormat.FillFormat.FillType = FillType.Solid;
shape.LineFormat.FillFormat.SolidFillColor.Color = Color.Black;
}
using (var pdfStream = new MemoryStream())
{
pptDoc.Save(pdfStream, SaveFormat.Pdf, pdfOptions);
using (var filestream = File.Create($@"C:\Temp\Output\Result.pdf"))
{
pdfStream.Seek(0, SeekOrigin.Begin);
pdfStream.CopyTo(filestream);
filestream.Close();
}
}
}
@DaveGanote,
Thank you for the details. I need some time to check the problem. I will get back to you soon.
@DaveGanote,
Thank you for your patience. I’ve reproduced the problem with the Excel icon when converting the PowerPoint presentation to a PDF document. We apologize for any inconvenience caused.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): SLIDESNET-44751
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
I see the issue has been marked as resolved, but I don’t know how to access the fix with just the ticket identifier. Any tips on accessing the fix?
Thanks for the quick resolution.
@DaveGanote,
Your issue has been resolved and fixed functionality is included in the latest Aspose.Slides for .NET 24.12 (we published it yesterday). Please give it a try and let us know if you still find any issue.
The issues you found earlier (filed as SLIDESNET-44751) have been fixed in Aspose.Slides for .NET 24.12 (ZIP, MSI, NuGet, Cross-platform).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.