string saveFileName;
SaveFileDialog saveDialog = new SaveFileDialog();
saveDialog.DefaultExt="pdf";
saveDialog.Filter = "pdf文件|*.pdf";
saveDialog.ShowDialog();
saveFileName = saveDialog.FileName;
if (saveFileName.IndexOf(":") < 0) //被点了取消
return;
------------------------------------------------------------------------------
OpenFileDialog picDialog = new OpenFileDialog();
picDialog.DefaultExt = "jpeg";
picDialog.Filter = "jpg文件|*.jpg";
//saveDialog.FileName = "";
picDialog.ShowDialog();
picFilePath = picDialog.FileName; //获得路径
if (picFilePath.IndexOf(":") < 0) //被点了取消
return;