Modified to use newly created ProcedureInfo property PDFNumber
Modified to standardize naming of summary of changes report Added method to delete existing pdf when creating a new pdf of same name Created error handler to warn user when trying to view pdf file already open Created new ProcedureInfo property PDFNumber to handle slashes in procedure number Corrected error in ResolvePathTo method of TranistionInfo class
This commit is contained in:
@@ -342,10 +342,24 @@ namespace VEPROMS
|
||||
else
|
||||
buffer = args.MyBuffer;
|
||||
string fileName = Volian.Base.Library.VlnSettings.TemporaryFolder + "\\" + args.MyFilename;
|
||||
FileStream fs = new FileStream(fileName, FileMode.Create);
|
||||
fs.Write(buffer, 0, buffer.Length);
|
||||
fs.Close();
|
||||
System.Diagnostics.Process.Start(fileName);
|
||||
try
|
||||
{
|
||||
FileStream fs = new FileStream(fileName, FileMode.Create);
|
||||
fs.Write(buffer, 0, buffer.Length);
|
||||
fs.Close();
|
||||
System.Diagnostics.Process.Start(fileName);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.AppendLine("Could not create");
|
||||
sb.AppendLine();
|
||||
sb.AppendLine(fileName + ".");
|
||||
sb.AppendLine();
|
||||
sb.AppendLine("If it is open, close and retry.");
|
||||
MessageBox.Show(sb.ToString(), "Error on CreatePdf",MessageBoxButtons.OK,MessageBoxIcon.Warning);
|
||||
// MessageBox.Show("Could not create " + fileName + ". If it is open, close and retry.", "Error on CreatePdf");
|
||||
}
|
||||
}
|
||||
|
||||
void displayHistory_AnnotationRestored(AnnotationInfo restoredAnnotationInfo, ItemInfo currentItem)
|
||||
|
Reference in New Issue
Block a user