CsvOptions.IncludeHeaders
CsvOptions.IncludeHeaders property
Gets or sets a value indicating whether to include headers or not (default value is TRUE).
public bool IncludeHeaders { get; set; }
Examples
Shows how to use <see cref=“Aspose.Tasks.Saving.CsvOptions” /> to save a project as CSV file.
var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");
var options = new CsvOptions
{
DataCategory = DataCategory.Resources,
TextDelimiter = CsvTextDelimiter.Semicolon,
Encoding = Encoding.Unicode, IncludeHeaders = true
};
project.Save(OutDir + "WorkWithCsvOptions_out.csv", options);
See Also
- class CsvOptions
- namespace Aspose.Tasks.Saving
- assembly Aspose.Tasks