Hi, I have encountered the following issue when using the Aspose.Cells Range.CopyData method.
var targetRange = worksheet.Cells.CreateRange(“B1:M1”);
Hi, I have encountered the following issue when using the Aspose.Cells Range.CopyData method.
Hi,
Thanks for using Aspose.Cells.
We have tested this issue with the following sample code using the latest version:
<a href="https://forum.aspose.com/t/38453">Aspose.Cells
for .NET v8.6.3.4</a>
and found that if the target range is vertical like <b>B1:B10</b> then it works fine but if the target range is horizontal like <b>B1:M10</b>, it does not work.<br><br>We have logged this issue in our database for investigation. We will look into it and fix this issue. Once the issue is resolved or we have some other update for you, we will let you know asap.<br><br>We were able to observe this issue and logged it in our database for a fix.<br><br>This issue has been logged as <br><br><ul><li><b>CELLSNET-44171</b> - CopyData between ranges does not work horizontally but it works fine vertically</li></ul><br>I have also attached the source excel file used in this code and the output excel file generated by it for a reference.<br><br><b>C#</b><br><div class="csharpcode"><font color="#800080">Workbook workbook = new Workbook("source.xlsx");<br><br>Worksheet worksheet = workbook.Worksheets[0];<br><br>var sourceRange = worksheet.Cells.CreateRange("A1");<br><br>//This line works fine<br>var targetRange = worksheet.Cells.CreateRange("B1:B10");<br><br>//But this line does not work<br>//var targetRange = worksheet.Cells.CreateRange("B1:M1");<br><br>targetRange.Copy(sourceRange);<br><br>workbook.Save("output.xlsx");</font><br></div><br>
Thanks for the quick reply,
Hi,
Thanks for your posting and using Aspose.Cells.
We are hopeful your issue will be fixed in a week or two. Once the fix is available for you, we will update you by posting in this thread.
Hi,
Hi,
Thanks for using Aspose.Cells.
Please download and try the latest fix: Aspose.Cells for .NET (Latest Version) and let us know your feedback.
Thanks for letting me know about the fix.
Hi,
Thanks for your posting and using Aspose.Cells.
We are sorry for inconvenience. Please wait for few more days, the official v8.7.0 is going to be released in next few days hopefully before 25-Jan-2016. Once it will be released, you will get an automatic notification in this thread.
The issues you have found earlier (filed as CELLSNET-44171) have been fixed in this update.
The issues you have found earlier (filed as CELLSNET-44171) have been fixed in this update.