- Replace slashes and backslashes with underscores in the pdf file name
- Use pdf name specified in the dialog Fixed properties so that procedures and sections can be open in the propertygrid without error
This commit is contained in:
@@ -128,7 +128,7 @@ namespace VEPROMS
|
||||
//cbxPDF.Text = string.Format(@"{0}\{1}.pdf", _PDFPath, _ProcNum);
|
||||
// General 2 settings
|
||||
//txbPDFLocation.Text = _PDFPath;
|
||||
txbPDFName.Text = string.Format("{0}.pdf", ProcNum);
|
||||
txbPDFName.Text = string.Format("{0}.pdf", ProcNum.Replace('/','_').Replace('\\','_'));
|
||||
ProcedureConfig pc = _MyProcedure.MyConfig as ProcedureConfig;
|
||||
if (pc != null)
|
||||
{
|
||||
@@ -290,7 +290,7 @@ namespace VEPROMS
|
||||
// Determine change bar settings. First get from config & then see if override from dialog.
|
||||
// Also check that format allows override.
|
||||
ChangeBarDefinition cbd = DetermineChangeBarSettings();
|
||||
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNum, RevDate, pw.ToString(), cbxDebug.Checked, VlnSettings.OldPDFFolder, cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked,PDFPath, cbd);
|
||||
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNum, RevDate, pw.ToString(), cbxDebug.Checked, VlnSettings.OldPDFFolder, cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked,PDFPath, cbd, txbPDFName.Text);
|
||||
frmStatus.ShowDialog();
|
||||
this.Close();
|
||||
}
|
||||
|
Reference in New Issue
Block a user