HI All,
I am retrieving a BOM Designer in Tree structure form, in to excel using X++ In D365,
I want to Group the Cell using COM objects as we used in AX:
Sample code of AX 4.0
Code 1 :
comRange = worksheetBOM.range(strfmt("%3%1:%4%2", rowLocal,row,'@SYS30306', '@SYS75441')).comObject();
comRange.select();
comSelection = comApplication.selection();
comRows = comSelection.rows();
comRows.group();
Code 2:
comRange = worksheetBOM.range(strfmt("%3%1:%4%2", 1,1,'@SYS30306', '@SYS30306')).comObject();
comRange.select();
worksheetBOM.columns().autoFit();
How I can re-write above lines for D365 FO.
Desired Output
