Template Marker with Nested Collection

I have a nested collection and I want the parent columns to be merged. So I use ;merge after parent column names and they merge but the cell value is not vertically centered as was in cell of template document. Merged cell values is always vertically top.



One more thing, the ;merge doesnt work with ;insert:copystyles,copymerges


29 Replies

KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team January 27, 2022 04:13 PM UTC

Hi John, 

Greetings from Syncfusion. 

You can set the position of the cell values manually by using the “position” property. But that is not working properly. Applying the merge option, the position of cell values is always on top. Kindly look into the following link to know more about template markers. 

We are validating it currently. We will share the validation details in 2 business days, on January 30,2022. 

Regards, 
Ramya. 



KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team January 28, 2022 04:53 AM UTC

Hi John, 

Sorry for the inconvenience. 

We will provide the validation details on January 31st,2022

Regards, 
Keerthi. 



KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team January 28, 2022 04:53 AM UTC

Hi John, 

Sorry for the inconvenience. 

We will provide the validation details on January 31st,2022

Regards, 
Keerthi. 



KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team January 31, 2022 04:27 PM UTC

Hi John, 

We appreciate your patience. 

The “position” attribute is used to set only image position in cell while importing images using template marker. By default, the Vertical alignment is set to merged cells while importing data with template markers which is the behavior of XlsIO. So, we suggest setting the alignment after applying markers. 

Please try the following code snippet to set the alignment and let us know if it helps. 

Code snippet: 
using (ExcelEngine excelEngine = new ExcelEngine()) 
{ 
    IApplication application = excelEngine.Excel; 
    IWorkbook workbook = application.Workbooks.Open(DataPathBase + "TemplateMarker_copy&merge.xlsx"); 
    IWorksheet worksheet = workbook.Worksheets[0]; 
 
    //Create Template Marker Processor 
    ITemplateMarkersProcessor marker = workbook.CreateTemplateMarkersProcessor(); 
 
    IList<Customer> customers = GetSalesReports(); 
    //Add collection to the marker variables where the name should match with input template 
    marker.AddVariable("Customer", customers); 
 
    //Process the markers in the template 
    marker.ApplyMarkers(); 
 
    IRange[] mergedCells = worksheet.MergedCells; 
    foreach(IRange merged in mergedCells) 
    { 
        merged.VerticalAlignment = ExcelVAlign.VAlignCenter; 
    } 
 
    workbook.SaveAs(DataPathOutput + "/TemplateMarkerNestedCollection_copy&merge.xlsx"); 
    workbook.Close(); 
    excelEngine.Dispose(); 
} 


Regards, 
Ramya. 



JO John replied to Konduru Keerthi Konduru Ravichandra Raju January 31, 2022 06:06 PM UTC

that has nothing to do with images, where did you get the image part ? And the solution you came up with is just a very bad workaround. The template document already have many merged cells with vertical alignment top and you are just setting all merged cells to be vertically centered. Please fix your xlsio library, it shouldn't change the cell alignment after merge.


Also what about the second problem ?

One more thing, the ;merge doesnt work with ;insert:copystyles,copymerges

Thank you



KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team February 1, 2022 03:34 PM UTC

Hi John, 

We have confirmed the issue as The cell text alignment is not proper while using the merge argument in the Template Marker and logged a defect report. We will include the fix for this issue in our upcoming weekly NuGet release scheduled for February 15, 2022. 

You can track the status of defect report through following feedback link. 


We will let you know once the new package version is available on nuget.org. 

Query 
Response 
One more thing, the ;merge doesnt work with ;insert:copystyles,copymerges 
We are able to reproduce the issue and we will include this fix also in the weekly NuGet release. 


Regards, 
Ramya. 



JO John February 2, 2022 12:21 PM UTC

Thank you.



JO John replied to Konduru Keerthi Konduru Ravichandra Raju February 2, 2022 12:22 PM UTC

When I click on track link you provided, it says





KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team February 3, 2022 11:08 AM UTC

Hi John, 

We regret for the inconvenience. 

We have now resolved the issue and request you to try again and let us know if you can now track the feedback. 

Regards, 
Keerthi. 



RS Ramya Sivakumar Syncfusion Team February 15, 2022 05:06 PM UTC

Hi John, 

We deeply regret the inconvenience. 

We were unable to move the fix for The cell text alignment is not proper while using the merge argument in the Template Marker in our weekly NuGet release, as promised. We will include the fix for this issue in our upcoming weekly NuGet release scheduled for February 22, 2022, without fail. 

We appreciate your patience. 

Regards, 
Ramya. 



RS Ramya Sivakumar Syncfusion Team February 22, 2022 02:57 PM UTC

Hi John, 

We appreciate your patience. 

We have included the fix to resolve the issue The cell text alignment is not proper while using the merge argument in the Template Marker in our weekly NuGet release version 19.4.0.53. Kindly upgrade your Syncfusion packages to this new 19.4.0.53 version and let us know if the issue is resolved. 

And please use the “;merge:preservestyle” in the input document to preserve the alignment otherwise the default alignment is applied. 

Regards, 
Ramya. 



JO John March 26, 2022 10:37 PM UTC

when is it going to release ?



RS Ramya Sivakumar Syncfusion Team March 28, 2022 07:29 AM UTC

Hi John, 

This fix will be included in our 2022 Volume 1 main release, which is expected to be available in the first week of April 2022. 

Regards, 
Ramya. 



RS Ramya Sivakumar Syncfusion Team April 5, 2022 09:55 AM UTC

Hi John,


As promised earlier The cell text alignment is not proper while using the merge argument in the Template Marker fix is included in the 2022 Vol1 main release. And We are glad to announce that our Essential Studio 2022 Volume 1 release v20.1.0.47 is rolled out and is available for download under the following link.

https://www.syncfusion.com/forums/174125/essential-studio-2022-volume-1-main-release-v20-1-0-47-is-available-for-download


We thank you for your support and appreciate your patience in waiting for this release. Please contact us if you would require any further assistance.


You can track the status of the defect report through the following feedback link. 

Track Status: https://www.syncfusion.com/feedback/32328/the-cell-text-alignment-is-not-proper-while-using-the-merge-argument-in-the 


Regards,

Ramya.



JO John April 18, 2022 12:33 AM UTC

Still doesn't work with

%Name;insert:copystyles,copymerges;merge:preservestyle


if the cell is merged by 2 columns



KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team April 18, 2022 12:43 PM UTC

Hi John,


We request you to share the input Excel document you are using at your end to investigate the issue further.


Regards,

Keerthi.



JO John April 18, 2022 08:19 PM UTC

Try this, the second column will have border problems because its merged by 2 columns.


Attachment: Sample_201157be.zip


KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team April 19, 2022 12:43 PM UTC

Hi John,


Thanks for sharing the file. We will get back to you with details on April 20th,2022.


We appreciate your patience.


Regards,

Keerthi.



KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team April 20, 2022 01:25 PM UTC

Hi John,


We deeply regret for the inconvenience.


We are facing complexity in analyzing the query and request you 1 more day timeline to check this. We will share the details on April 21st,2022.


Regards,

Keerthi.



RS Ramya Sivakumar Syncfusion Team April 21, 2022 09:40 AM UTC

Hi John,


We appreciate your patience.


We can reproduce the reported border issue and we are also facing the corruption issue while the input file contains the merged columns. We have attached the sample which was tried at our end. Kindly confirm us if you are facing the same issue. A complete sample can be downloaded from below the link.


Sample link - https://www.syncfusion.com/downloads/support/directtrac/general/ze/F172299_ColumnMerge-1493878343


Regards,

Ramya.



JO John replied to Ramya Sivakumar April 23, 2022 11:52 PM UTC

Yes, its worse in example. Please have it fixed.



RS Ramya Sivakumar Syncfusion Team April 25, 2022 08:01 AM UTC

Hi John,


Thanks for the confirmation.


We have confirmed the issue as Merged cell borders are removed due to file corruption while importing data using template markers and logging a defect report. We will include the fix for this issue in our upcoming weekly NuGet release scheduled for May 10, 2022.


You can track the status of the defect report through the following feedback link.


Track Status: https://www.syncfusion.com/feedback/34392/merged-cell-borders-are-removed-due-to-file-corruption-while-importing-data-using


We will let you know once the new package version is available on nuget.org.


Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.



Regards,

Ramya.



RS Ramya Sivakumar Syncfusion Team May 10, 2022 09:45 AM UTC

Hi John,


We have planned for the 2022 Volume 1 SP release this week, so there is no Weekly NuGet release today. We will be having the weekly NuGet release next week and will update you once it is published.


We appreciate your patience until then.


Regards,

Ramya



KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team May 17, 2022 01:21 PM UTC

Hi John,


We appreciate your patience.


We have included the fix to resolve the issue Merged cell borders are removed due to file corruption while importing data using template markers in our weekly NuGet release version 20.1.0.56. Kindly upgrade your Syncfusion packages to this new 20.1.0.56 version and let us know if the issue is resolved. 


Regards,

Keerthi.



JO John replied to Konduru Keerthi Konduru Ravichandra Raju May 20, 2022 06:52 PM UTC

I do not want to use NuGet release, when will it releases on website?



RS Ramya Sivakumar Syncfusion Team May 23, 2022 11:12 AM UTC

Hi John,


This fix will be included in our 2022 Volume 2 main release, which is expected to be rolled out by the end of June 2022. We will let you know once the release is rolled out.


We appreciate your patience.


Regards,

Ramya.



RS Ramya Sivakumar Syncfusion Team July 1, 2022 07:40 AM UTC

Hi John,


We are glad to announce that our Essential Studio 2022 Volume 2 release v20.2.0.36 is rolled out and is available for download under the following link.


https://www.syncfusion.com/forums/175975/essential-studio-2022-volume-2-main-release-v20-2-0-36-is-available-for-download


We have included the fix to resolve the issue Merged cell borders are removed due to file corruption while importing data using template markers in our 2022 Volume 2 release.


Track Status: https://www.syncfusion.com/feedback/34392/merged-cell-borders-are-removed-due-to-file-corruption-while-importing-data-using


We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.


Regards,

Ramya.



JO John August 6, 2022 05:50 PM UTC

Still have the same problem, did you even check the sample I provided with new assemblies ?





RS Ramya Sivakumar Syncfusion Team August 8, 2022 10:58 AM UTC

Hi John,


As mentioned earlier, we have included the fix in our 2022 Volume 2 main release. And we have checked the issue in the latest NuGet, in which the issue is resolved. So, kindly delete the bin and obj folder from the sample and upgrade your Syncfusion packages to this new 20.2.0.43 or 20.2.0.36 [2022 Volume 2 main release version ] and let us know if the issue is resolved.


We have attached the generated Output file for your reference.

Output file - https://www.syncfusion.com/downloads/support/directtrac/general/ze/Output-1332849578


Regards,

Ramya


Loader.
Up arrow icon