Version

ExportAsync(UltraGrid,WordDocumentWriter) Method

Exports the passed in UltraWinGrid to the specified WordDocumentWriter at the current position // of the stream.
Syntax
'Declaration
 
Public Overloads Sub ExportAsync( _
   ByVal grid As Infragistics.Win.UltraWinGrid.UltraGrid, _
   ByVal wordDocumentWriter As Infragistics.Documents.Word.WordDocumentWriter _
) 
public void ExportAsync( 
   Infragistics.Win.UltraWinGrid.UltraGrid grid,
   Infragistics.Documents.Word.WordDocumentWriter wordDocumentWriter
)

Parameters

grid
Grid to export.
wordDocumentWriter
Destination Infragistics.Documents.Word.WordDocumentWriter.
Remarks

The ExportAsync method exports the UltraWinGrid to Word asynchronously, unlike the Export method which is synchronous. This is achieved using timers and is not a multi-threaded operation. You should not attempt to access the exporter Workbook, Worksheet, or file until the operation export is complete. You can determine when the process has ending by trapping the ExportEnding event. During the asynchronous export process, the UltraWinGrid will disable the user's ability to add, remove, delete, edit, filter, sort, or otherwise modify the state of the data during the export process. It is strongly advised that you make sure that the grid's DataSource is not modified during the asynchronous export process. If the data is modified during the asynchronous export process, the modified data may or may not be exported in it's new state, or (more likely) the export process may be terminated entirely. Also note that you may not perform more than one export operation at a time on the same UltraWinGrid or using the same UltraGridWordWriter, either synchronously or asynchronous. Attempting to do so will result in an System.InvalidOperationException.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also