I have a query object which contains 5 columns, but I only need to add 4 columns to the spreadsheet. When I am using <cfset spreadSheetAddRows(spreadSheetObj,qryObj)>
it is adding all the columns to the spreadsheet. I cannot remove the 5th column from the query as it is required for some other purpose.
So How can I add only 4 columns from the query to spreadsheet?
Ex: My query contains 4 columns like "Id,Name,Roll,CGPA"
But my Excel sheet should contain only "Id,Name,Roll".
How to do this?