Fixed error that caused file names to be in lower case when creating pdf
Created error handler to warn user when trying to view pdf file already open
This commit is contained in:
1 parent
1ad17cb080
commit
a1e91b689d
2 files changed
+18
-2
No files matched your search
@@ -238,7 +238,14 @@ namespace Volian.Print.Library
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageBox.Show("Could not create " + outputFileName + ". If it is open, close and retry.", "Error on CreatePdf");
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.AppendLine("Could not create");
|
||||
sb.AppendLine();
|
||||
sb.AppendLine(outputFileName + ".");
|
||||
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 " + outputFileName + ". If it is open, close and retry.", "Error on CreatePdf");
|
||||
return null;
|
||||
}
|
||||
document.Open();
|
||||
|
||||
Reference in new issue
Block a user