DatStat Illume 4.5 SDK Class Reference

WebServiceContext.DownloadSurveyData Method 

This method returns all results for a survey and writes the results to the given TextWriter stream in the format specified by the enum value SDK_ResultsType for outputType.

public void DownloadSurveyData(
   TextWriter textWriter,
   Int32 surveyId,
   SDK_DataFormat dataFormat,
   SDK_ResultsType outputType,
   Boolean includeLabels,
   Boolean listTextItems,
   Int32 lcid
);

Parameters

textWriter
The TextWriter stream that will accept the survey results.
surveyId
The id of the survey.
dataFormat
Accepts SDK_DataFormat and dictates if summary or raw data is written to the output stream.
outputType
Accepts SDK_ResultsType and dictates what format the output stream file should have (TabDelimited, HTML, XML, etc.).
includeLabels
Controls if the labels for values are written to the output TextWriter stream if the outputType is set to SDK_DataFormat.raw. The parameter is ignored if the SDK_DataFormat is set to summary.
listTextItems
Controls if text item values are included in SDK_DataFormat.summary results type. This parameter is ignored if the SDK_DataFormat is set to raw.
lcid
The localization id the results should use. Pass a zero if the default survey lcid value should be used.

Remarks

The results will either be given in Summary or Raw formats based upon the SDK_DataFormat enum value.

If there is an error downloading the data, an exception is thrown with an appropriate error message.

See Also

WebServiceContext Class | DatStat.SDK.WebServiceWrappers Namespace