IXpsSignatureRequest::GetSpotLocation method (xpsdigitalsignature.h)
Gets the page and the location on the page where the visible digital signature or the digital signature request will be displayed.
HRESULT GetSpotLocation( INT32 *pageIndex, IOpcPartUri **pagePartName, float *x, float *y );
The index value of the FixedPage part that contains the signature or the digital signature request. If a spot location is not specified for the signature request, –1 is returned.
A pointer to an IOpcPartUri interface of the part that contains the FixedPage on which the digital signature is to be displayed.
The x-coordinate value of the signing spot on the page.
The y-coordinate value of the signing spot on the page.
The method returns an HRESULT. Possible values include, but are not limited to, those in the table that follows. For return values that are not listed in this table, see XPS Digital Signature API Errors and XPS Document Errors.
||The method succeeded.|
||pageIndex, pagePartName, x, or y is NULL.|
||The interface is not connected to the signature manager.|
The location of the signing spot is specified in XPS units from the upper-left corner of the page. There are 96 XPS units per inch.
|Minimum supported client||Windows 7 [desktop apps only]|
|Minimum supported server||Windows Server 2008 R2 [desktop apps only]|