Hello,
I am trying to export the data of my whole RadGridView to CSV.
Now I got a problem.
I used this Code:
public void PdfExport(RadGridView grid)
{
string extension = "pdf";
SaveFileDialog dialog = new SaveFileDialog()
{
DefaultExt = extension,
Filter = String.Format("{1} files (.{0})|.{0}|All files (.)|.", extension, "Pdf"),
FilterIndex = 1
};
if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
using (Stream stream = dialog.OpenFile())
{
grid.ExportToPdf(stream,
new GridViewPdfExportOptions()
{
ShowColumnFooters = true,
ShowColumnHeaders = true,
ShowGroupFooters = true,
AutoFitColumnsWidth = false,
PageOrientation = PageOrientation.Landscape
});
}
}
}
When I use this Code and open it with Visual Studio Code, the csv-file is comma seperated and every word is in quotes.
When I build a csv-file with Microsoft Excel it is ";"-seperated and without quotes.
How can I export my whole RadGridView with ","-seperated words that are without quotes?