SaveOptionsUpdateLastPrintedProperty Property |
Gets or sets a value determining whether the
LastPrinted property is updated before saving.
Syntax
public bool UpdateLastPrintedProperty { get; set; }
Public Property UpdateLastPrintedProperty As Boolean
Get
Set
public:
property bool UpdateLastPrintedProperty {
bool get ();
void set (bool value);
}
member UpdateLastPrintedProperty : bool with get, set
Property Value
Type:
Boolean
Examples
Shows how to update a document's "Last printed" property when saving.
Document doc = new Document();
DocSaveOptions saveOptions = new DocSaveOptions();
saveOptions.UpdateLastPrintedProperty = isUpdateLastPrintedProperty;
doc.Save(ArtifactsDir + "DocSaveOptions.UpdateLastPrintedProperty.doc", saveOptions);
doc = new Document(ArtifactsDir + "DocSaveOptions.UpdateLastPrintedProperty.doc");
Assert.AreNotEqual(isUpdateLastPrintedProperty, (DateTime.MinValue.Date == doc.BuiltInDocumentProperties.LastPrinted));
See Also