QuoteChar
Contenuti
[
Nascondere
]CsvDataLoadOptions.QuoteChar property
Ottiene o imposta il carattere utilizzato per racchiudere tra virgolette i valori dei campi.
public char QuoteChar { get; set; }
Osservazioni
Il valore predefinito è ‘"’ (virgolette).
Raddoppia il carattere per inserirlo nel testo tra virgolette.
Esempi
Mostra come utilizzare CSV come origine dati (stringa).
Document doc = new Document(MyDir + "Reporting engine template - CSV data destination.docx");
CsvDataLoadOptions loadOptions = new CsvDataLoadOptions(true);
loadOptions.Delimiter = ';';
loadOptions.CommentChar = '$';
loadOptions.HasHeaders = true;
loadOptions.QuoteChar = '"';
CsvDataSource dataSource = new CsvDataSource(MyDir + "List of people.csv", loadOptions);
BuildReport(doc, dataSource, "persons");
doc.Save(ArtifactsDir + "ReportingEngine.CsvDataString.docx");
Guarda anche
- class CsvDataLoadOptions
- spazio dei nomi Aspose.Words.Reporting
- assemblea Aspose.Words