VinaydhiOccasional ContributorJoined 10 years ago12 Posts1 LikeLikes received1 SolutionView All Badges
ContributionsMost RecentMost LikesSolutionsHow to insert new sheet in FarPoint Spread object? Can anyone help me in adding new sheet in Farpoint Spread object? I am using TestComplete 14.0 version. I got to know some relevant functions to add a sheet but not able to use it properly: bwSpread = Aliases.ClausionFPM.TemplateEditWindow.splitContainer1.SplitterPanel.uxtpnlInpRptOutlook.uxSplitContainerControl.SplitGroupPanel2.tableLayoutPanel3.Edit_Template; bwSpread.TabStripInsertTab(); bwSpread.Sheets.Add(); bwSpread.Sheets.Insert(); Re: Group Ungroup FarPoint Spreadsheet rows This issue is resolved with the help of SmartBear customer care. Solution was: var rgi = fpSpread1.ActiveSheet.GetRangeGroupInfo(2, true); fpSpread1.ActiveSheet.ExpandRangeGroup(rgi.GetValue(0), true, true); Thanks SmartBear !! -Vinay Re: Group Ungroup FarPoint Spreadsheet rows Reason that we are not able to expand RangeGroup is that we are not getting any result for the below method. fpSpread1.ActiveSheet.GetRangeGroupInfo(1, true) Even though groups are available on the sheet but still this method GetRangeGroupInfo does not return anything in our case. Please note if we use GetRangeGroupLevels then it shows correct number of levels. Is there anything that we are missing to get the RangeGroupInfo ? -Vinay Re: Group Ungroup FarPoint Spreadsheet rows Hi Alex, I tried that. It gives error: System.NullReferenceException: Object reference not set to an instance of an object. at FarPoint.Win.Spread.SheetView.ExpandRangeGroup(RangeGroupInfo group, Boolean isRowGroup, Boolean expand) -Vinay Re: Group Ungroup FarPoint Spreadsheet rows I found below C# code to expand the row group: fpSpread1.ActiveSheet.AddRangeGroup(0, 20, true); fpSpread1.ActiveSheet.AddRangeGroup(0, 10, true); fpSpread1.ActiveSheet.AddRangeGroup(0, 5, true); private void Button1_Click(object sender, System.EventArgs e) { FarPoint.Win.Spread.RangeGroupInfo[] rgi = fpSpread1.ActiveSheet.GetRangeGroupInfo(2, true); fpSpread1.ActiveSheet.ExpandRangeGroup(rgi[0], true, true); } How can I convert it into JScript so that it can work in TestComplete? -Vinay Re: Group Ungroup FarPoint Spreadsheet rows Hi, I need to verify row data based on group/ungroup. So it does not matter for me if I bypass control click. -Vinay Re: Group Ungroup FarPoint Spreadsheet rows It has ExpandRow method but it is not working. Have a look at the attachment "ExpandRow.PNG". I am still struggling for the solution :( -Vinay Group Ungroup FarPoint Spreadsheet rows I want to group ungroup rows of farpoint spreadsheet by clicking +/- buttons and/or by clicking 1/2/3/4 buttons. These buttons are highlighted with yellow colour in the attachment "GroupUngroup.PNG". Can anyone help me? -Vinay Dhingra SolvedRe: Search method of FarPoint Spread Thanks Helen Kosova. It worked !!! Re: Search method of FarPoint Spread foundRowID and foundColID are reference variables which will store the row and column IDs if the given string is found in the sheet. Refer attachment "SearchReference.PNG".