I'm using Spire.XLS in a C# application to consolidate multiple Excel files into a single workbook. My goal is to preserve all content, including shapes with visual effects (such as glow, shadow, reflection, and bevel).
Issue:
When I copy worksheets from a source workbook to a new workbook, the shapes themselves are copied, but any effects applied to them are lost in the resulting file.
Steps Taken:
-Loaded the source workbook via Workbook.LoadFromFile(...)
-Created a new target workbook.
-Tried both methods:
targetWorkbook.Worksheets.AddCopy(sourceSheet, WorksheetCopyType.CopyAll)
targetSheet.CopyFrom(sourceSheet, true)
-Called targetWorkbook.CopyTheme(sourceWorkbook) before copying.
-Cleared default worksheets from the new workbook.
-Saved the final file using Workbook.SaveToFile(path, ExcelVersion.Version2016)
Observations:
Shapes are present in the new workbook, but their visual effects (like glow, shadow, etc.) are missing.
Tried both AddCopy and CopyFrom, but neither preserved the effects.
CopyTheme() had no visible impact on the issue.
Expected Result:
The copied sheets should retain all shape formatting and effects exactly as they appear in the original workbook.
Environment:
Spire.XLS version: 14.7.2.0
.NET Framework version: 4.0
OS: Windows 10 Pro
Request:
Is this a known limitation of Spire.XLS when copying shape objects between workbooks?
Is there a workaround or additional method required to retain shape visual effects?
If not currently supported, is this feature planned for a future version?