Home Forums WinForms controls Xceed Grid for WinForms Xceed data grid for .net and exporting to xlsx format Reply To: Xceed data grid for .net and exporting to xlsx format

User (Old forums)
Member
Post count: 23064

Hi,

you have to include / Imports Xceed.FileSystem and then instanciate a DiskFile object (references by an AbstractFile, of course) that uses the exported filename for its constructor. 

Once this is done, you just have to use the AbstractFile Name property to rename the file using Path.GetFileNameWithoutExtension(originalFileName)+ “.(the extension you want)”  ( requires the use of System.IO for Path.GetFileNameWithoutExtension() )

The filename would be renamed to the new name instantly.

Imported from legacy forums. Posted by Ghislain (had 282 views)