Exportieren Sie Excel-Daten ohne Formatierung in DataTable

Beispielcode

Das folgende Beispiel erläutert die Verwendung vonExportTableOptions.FormatStrategyEigenschaft zum Exportieren von Excel-Daten mit und ohne Formatierung.

Konsolenausgabe

Unten finden Sie die Konsolen-Debug-Ausgabe des obigen Beispielcodes

Cell String Value: 0.01

Cell String Value without Format: 0.012345

Export Data Table with Format Strategy as Cell Style: 0.01

Export Data Table with Format Strategy as None: 0.012345