I'm using Janus gridex and Janus gridex exporter. I have one problem when I wanna export it to excel. actually below is my code
Dim filep = ""
Dim saveDialog As New SaveFileDialog
saveDialog.DefaultExt = "xls"
saveDialog.Filter = "Excel File (*.xlsx)|*.*"
If saveDialog.ShowDialog() = DialogResult.OK Then
Using st As New IO.FileStream(saveDialog.FileName, FileMode.Create, FileAccess.Write, FileShare.None)
GridEXExporter1.Export(st)
filep = saveDialog.FileName
End Using
End If
during export it working fine but it allow only extension .xls for .xlsx it not allow and it always pop up asking message before user open that file. anyone has some solution please kindly help. Thanks.
this is a sample export to excel in C#