private void btnExport_Click(object sender, EventArgs e) { SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.InitialDirectory = Environment.SpecialFolder.MyDocuments.ToString(); saveFileDialog.Filter = "Document (*.pdf)|*.PDF"; saveFileDialog.FilterIndex = 1; if (saveFileDialog.ShowDialog() == DialogResult.OK) { Report.ExportToDisk(ExportFormatType.PortableDocFormat, saveFileDialog.FileName);; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)