window_to_excel_file_c

	status.i4.v = window_to_excel_file_c(window_id.i2.v, file_name.i1a.r,
					     num_rows.i4.v, top_row.i4.v,
					     num_columns.i4.v, columns.i4a.r,
					     column_ends.i4a.r, match_data.s.r,
					     callback_func.f.v,
					     callback_data.g.v, options.u4.v)

	This routine allows the caller to copy the contents of a TV window
	to an Excel file.

	window_id	ID of desired window
			(WMNGR_BACKGROUND -> background window,
			 WMNGR_WHOLE_DISPLAY -> entire visible display,
			 WMNGR_ERROR_WINDOW -> error display window,
			 otherwise -> ID of desired window)
	file_name	null terminated Excel file name
	num_rows	number of rows of text to display  (Note: If a value
			of zero is passed for this parameter, the visible
			window will be displayed.  Otherwise, "num_rows" of
			the scroll buffer will be displayed.  If this value
			is negative, both the visible window and the scroll
			buffer will be displayed.)
	top_row		top row to display (Note: This value is only used
			when displaying scroll buffer text.) (must be >= 1)
	num_columns	number of Excel columns desired (maximum is 128)
	columns		array of starting window column values (one for each
			Excel column)
	column_ends	array of ending window column values (one for each
			Excel column)  (If a value of NULL is passed for this
			argument, the columns are assumed to be contiguous.)
	match_data	text matching information which determines which lines
			will be printed (If a value of NULL is passed for
			this argument, all requested lines will be printed.)
			(structure of type STR_SEARCH_INFO)
	callback_func	address of user supplied function to modify each
			line of the output to be called as follows:
			print_line.i4.v = callback(output_line.i1a.r,
						   callback_data.g.v,
						   line_number.i4.v)
	callback_data	pointer to user-supplied data to be passed to the
			callback function
	options		file options
			(FILE_OPT_NONE -> no options selected,
			 FILE_OPT_TRIM -> trim leading and trailing white space
					  from data fields,
			 FILE_OPT_CSV -> use a comma separated value format)

	This function returns ACNET status values as follows:

	OK			success
	CBS_INVARG		invalid window ID or top row was specified
	CBS_NO_WINDOW		window doesn't exist
	CBS_NOTOPN		couldn't open temporary file
	CBS_GENERR		print job failed

	This function requires the following include files:

	cnsparam_h, cbslib_h, acnet_errors_h

	Related functions:

	window_to_text_file_c, window_to_paste_buffer_c,
	window_to_graphic_screen_c, window_to_printer_c,
	window_select_copy_c

	C/C++ usage:

	static const char	file_name[] = "file_name";
	short	window_id;
	int	status;
	int	num_rows = 0;
	int	top_row = 1;
	int	num_columns = NUM_EXCEL_COLUMNS;
	static const int	columns[NUM_EXCEL_COLUMNS];
	static const int	column_ends[NUM_EXCEL_COLUMNS];
	unsigned int	options = FILE_OPT_NONE;
	STR_SEARCH_INFO	*match_data = (STR_SEARCH_INFO *) NULL;
	int	callback_func(char *output_line, void *callback_data,
			      int line_number);
	void	*calllback_data = (void *) NULL;

	status = window_to_excel_file_c(window_id,file_name,num_rows,
					top_row,num_columns,columns,column_ends,
					match_data,callback_func,callback_data,
					options);