With the new Aspose slide version - ‘aspose-slides’, version:‘25.5’ we are getting # symbols for entries which were not there for older ‘aspose-slides’, version:‘24.8’ for generating grid in a ppt. Note- this grid is an integrated ole which we add for viewing purpose
Please refer the attached files for new and old versions.
The issue you’re experiencing with the new version of Aspose.Slides (25.5) displaying # symbols in OLE objects, which were not present in the previous version (24.8), is likely due to changes in how the library handles OLE objects or the data format within those objects. Updates in the library can affect the rendering or interpretation of embedded content.
Solution
To address this issue, please follow these steps:
Check OLE Object Compatibility: Ensure that the OLE objects you are embedding are compatible with the new version of Aspose.Slides. Changes in the library can impact how certain file types are processed.
Update OLE Object Data: If possible, re-embed the OLE objects using the latest version of Aspose.Slides. This can help ensure that the objects are processed correctly.
Review Documentation: Check the Aspose.Slides documentation for any notes on changes related to OLE object handling between versions 24.8 and 25.5. There may be specific adjustments or new methods introduced that could resolve your issue.
Test with Sample Data: Create a simple presentation with a known OLE object to see if the issue persists. This can help isolate whether the problem is with specific data or a broader issue with the library.
Code
Here’s a basic example of how to add an OLE object frame in Aspose.Slides:
Presentation presentation = new Presentation();
ISlide slide = presentation.getSlides().get_Item(0);
// Prepare data for the OLE object.
byte[] fileData = File.readAllBytes("yourfile.xlsx");
IOleEmbeddedDataInfo dataInfo = new OleEmbeddedDataInfo(fileData, "xlsx");
// Add the OLE object frame to the slide.
slide.getShapes().addOleObjectFrame(0, 0, 200, 200, dataInfo);
presentation.save("output.pptx", SaveFormat.Pptx);
Next Steps
Test the above code with your OLE objects to see if the issue persists.
If the problem continues, reach out to Aspose support with specific details about the OLE objects and any error messages you encounter.
Monitor the release notes for future updates that may address this issue.
Please let me know if you need further assistance!
We noticed the issue you mentioned while viewing the files into the MS PowerPoint application. Could you please provide a standalone sample Java program or console app (source code without compilation errors), along with any necessary sample file(s)? This will help us replicate the issue on our side and address your issue promptly.