LastError
IPDFDocument3 :: General document methods

See Also Example
Collapse All

This property gets the last error that occurred.

Syntax

BSTR LastError { get; }
Value
String containing a description of the most recent error
Empty string, if no error occurred

Remarks

Equivalent in new interface: IPDFDocument4::GetLastError.

Example

Using the LastError Property

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_SetFlat(-2222);
{ Now PDF.LastError contains an error description }
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->BeginDoc();
PDF->PDFPAGE_SetFlat(-2222);
// Now PDF.LastError contains an error description.
PDF->EndDoc():
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.BeginDoc();
PDF.PDFPAGE_SetFlat(-2222);
// Now PDF.LastError contains an error description.
PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.BeginDoc
PDF.PDFPAGE_SetFlat -2222
' Now PDF.LastError contains an error description.
PDF.EndDoc

See Also

Reference