You can try
CSpHttp.reset();
at the end of the function (before every return).
-Bhaskara Reddy
[EMAIL PROTECTED] wrote:
>I am using the following code to try>and download to a file, in a tab delimited
>format. I cam still getting the <html>...</html>
>with my lines in between. I am doing this from the
>this_onBeforeLoadEvent();
>
>What am I doing wrong?
>
>############################
>CSpHttp.reset();
>CSpHtml.reset();
>CSpHttp.writeContentType("application/excel");
>
>for (int i = 0; i < table.getNumOfRows (); i++)
>{
> CSpValue reviewnum = table.getRowData (i, 0);
> CSpValue irbnum = table.getRowData (i, 1);
> String line = reviewnum.toString() + "\t" + irbnum.toString();
> CSpHtml.write(line);
>}
>try
>{
> CSpHttp.flush(CSpider.getOutputStream ());
>}
>catch (Exception e)
>{
> return (PROCEED);
>}
>return(PROCEED);
>}
>############################
>
>This is what is downloaded:
>
><HTML>
><HEAD>
><TITLE>CSpHtml:No Title</TITLE>
></HEAD>
><BODY>
>1998444 19980312
><HEAD>
><TITLE>CSpHtml:No Title</TITLE>
></HEAD>
><BODY>
></BODY>
></HTML>
>
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]