IPXC_DocumentInfo::SetCreationDate Method

From PDF XChange PDF SDK
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 16: Line 16:
 
== Return Value ==
 
== Return Value ==
 
Returns S_OK if operation was successful or error code in other cases.
 
Returns S_OK if operation was successful or error code in other cases.
 +
 +
== Sample ==
 +
<pre class="brush:c#">//C#
 +
private void SetDate(PDFXEdit.IPXC_Document Doc)
 +
{
 +
//Setting creation date as current date without hours
 +
destDoc.Info.SetCreationDate(DateTime.Today);
 +
}
 +
</pre>
  
 
== See Also ==
 
== See Also ==
 
[[PXV:IPXC_DocumentInfo|IPXC_DocumentInfo]]
 
[[PXV:IPXC_DocumentInfo|IPXC_DocumentInfo]]

Latest revision as of 01:24, 16 March 2016


The method of interface of PDF-XChange Editor SDK.

Syntax

HRESULT SetCreationDate([in]  DATE  nDate);

Parameters

nDate
[in] Value of DATE containing the creation date.

Return Value

Returns S_OK if operation was successful or error code in other cases.

Sample

//C#
private void SetDate(PDFXEdit.IPXC_Document Doc)
{
	//Setting creation date as current date without hours
	destDoc.Info.SetCreationDate(DateTime.Today);
}

See Also

IPXC_DocumentInfo