This project has moved. For the latest updates, please go here.

Generic Dialog for Exporting to Delimited Text File

Mar 23, 2010 at 10:42 PM

On March 23, 2009, the HydroDesktop.ImportExport namespace saw the addition of two forms to handle export to delimited text file. 

ExportDataTableToTextFileDialog - You pass a datatable with the data that you want to export to this form when you create an instance of it.  It then does all the work of letting the user choose which fields to export, which delimiter to use, where to save the output, and then shows a progress bar while the export happens. 

 

GetExportOptionsDialog - You pass a datatable with the data that you want to export to this form when you create an instance of it.  It is only used to gather inputs from the user regarding which fields to export, which delimiter to use, and where to save the output.  Control is then returned to the calling program so that it can perform the export if so desired.

 

These types of dialogs could be used when right-clicking to export data from the Table View or from a series plotted in Graph View.

Mar 24, 2010 at 5:58 AM
One note... datatable approach may not be scalable to large rowsets.

On Tue, Mar 23, 2010 at 2:42 PM, [email removed] wrote:
> From: twhitvine
>
> On March 23, 2009, the HydroDesktop.ImportExport namespace saw the addition
> of two forms to handle export to delimited text file.
>
> ExportDataTableToTextFileDialog - You pass a datatable with the data that
> you want to export to this form when you create an instance of it.  It then
> does all the work of letting the user choose which fields to export, which
> delimiter to use, where to save the output, and then shows a progress bar
> while the export happens.
>
>
>
> GetExportOptionsDialog - You pass a datatable with the data that you want to
> export to this form when you create an instance of it.  It is only used to
> gather inputs from the user regarding which fields to export, which
> delimiter to use, and where to save the output.  Control is then returned to
> the calling program so that it can perform the export if so desired.
>
>
>
> These types of dialogs could be used when right-clicking to export data from
> the Table View or from a series plotted in Graph View.
>
> Read the full discussion online.
>
> To add a post to this discussion, reply to this email
> ([email removed])
>
> To start a new discussion for this project, email
> [email removed]
>
> You are receiving this email because you subscribed to this discussion on
> CodePlex. You can unsubscribe or change your settings on codePlex.com.
>
> Please note: Images and attachments will be removed from emails. Any posts
> to this discussion will also be available online at codeplex.com
Apr 14, 2010 at 6:48 PM

A "Text File Export Using the HydroDesktop ImportExport Library: Developer Guide" document has been uploaded on the Documentation --> HydroDesktop Developer Documentation Page.

The document describes the three options, DelimitedTextWriter, GetExportOptionsDialog and ExportDataTableToTextFileDialog, with the namespace "HydroDesktop.ImportExport" for text file export, and provides sample code for HydroDesktop developers to use these tools if data export is necessary in programming applications.