Removed PDF info from Document and Document Config

Added DebugStatus to MSWordToPDF Class
Removed PDF info from Document Config
Moved PDF info from Documents to PDFs Table
Added MSWordPageCount Property
Delete PDFs when RO Value Changes in a related document
This commit is contained in:
Rich
2011-04-18 21:29:29 +00:00
parent dd9bc9e0dc
commit f4a3a969f4
6 changed files with 86 additions and 64 deletions

View File

@@ -67,39 +67,40 @@ namespace VEPROMS.CSLA.Library
OnPropertyChanged("LibDoc_Comment");
}
}
[Category("Printing")]
[DisplayName("Length")]
[Description("Length of Document in Full and Partial Pages")]
public float Printing_Length
{
get
{
string s = _Xp["Printing", "Length"];// get the saved value
// RHM 20110415 - These are now stored in the PDF table.
//[Category("Printing")]
//[DisplayName("Length")]
//[Description("Length of Document in Full and Partial Pages")]
//public float Printing_Length
//{
// get
// {
// string s = _Xp["Printing", "Length"];// get the saved value
return float.Parse(s);
}
set
{
_Xp["Printing", "Length"] = string.Format("{0:0.0000}", value);
OnPropertyChanged("Printing_Length");
}
}
[Category("Printing")]
[DisplayName("Color")]
[Description("Color of Document Text")]
public Color Printing_Color
{
get
{
string sColor = _Xp["Printing", "Color"];
return ColorConfig.ColorFromString(sColor);
}
set
{
_Xp["Printing", "Color"] = value.ToString();
OnPropertyChanged("Printing_Color");
}
}
// return float.Parse(s);
// }
// set
// {
// _Xp["Printing", "Length"] = string.Format("{0:0.0000}", value);
// OnPropertyChanged("Printing_Length");
// }
//}
//[Category("Printing")]
//[DisplayName("Color")]
//[Description("Color of Document Text")]
//public Color Printing_Color
//{
// get
// {
// string sColor = _Xp["Printing", "Color"];
// return ColorConfig.ColorFromString(sColor);
// }
// set
// {
// _Xp["Printing", "Color"] = value.ToString();
// OnPropertyChanged("Printing_Color");
// }
//}
#endregion
#region ToString
public override string ToString()