We have activeX buttons on a sheet, I found if I append and copy that sheet to a new sheet, that activeX button becomes purely shape control and lost all properties. The whole workbook copy has no this issue, it happens to sheet copy only. Is it possible to get it resolved?
e.g. myworkbook contains Sheet1, which has a ActiveX button on it.
_asposeOrigWorkbook = new Workbook("c:\\Orig1Sheet.xlsx"); _asposeOrigWorkbook.getWorksheets().addCopy(0); _asposeOrigWorkbook.save("c:\\Copied2Sheet.xlsx");
Open "Copied2Sheet.xlsx", you will see the newly added sheet only contains a Shape button control.
I can notice the issue as you mentioned. After processing the code segment with your template file, the copied sheet has a shape control in the output file. I have logged a ticket with an id “CELLSJAVA-40508” for your issue. We will look into your issue soon.
Once we have any update on it, we will let you know here.
Thanks for your posting and using Aspose.Cells for Java.
We are afraid, there is no update for you at this moment. However, we have logged your comment in our database. Once there is some update for you, we will let you know asap.
Per my understanding, the workbook copy works for ActiveX control, it only happens to sheet copy. The sheet copy should also keep all the properties from original sheet, right? We are not requiring to manipulate those ActiveX controls,just a copy of them. The related "activeX"folder files be copied over. I think that is a defect of sheet copy function of aspose.
We are using Aspose as our enterprise product's excel processing tool, it is very critical to keep the original informaiton. That defect stops main feature of our product.
Please download and try our latest fix/version: Aspose.Cells for Java v7.5.3.3. We have supported to copy the controls, see the sample code below: E.g.
Sample code: