private void btnLoadPdf_Click(object sender, EventArgs e) { try { SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.InitialDirectory = "D:\\"; saveFileDialog.Filter = "Pdf Files(*.pdf)|*.pdf"; if (saveFileDialog.ShowDialog() == DialogResult.OK) { DrawOp.ExportToPDf(this.listMetafile, saveFileDialog.FileName); } } catch (Exception ex) { throw ex; } }