Using the LastError Method
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.SetFlatness(-2222);
{ Now PDF.GetLastError will return an error description: }
{ "01/01/08 12:00 ERROR: PDFDocumentImpl::SetFlatness - Value (-2222) out of range - should be between 0 and 100" }
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->SetFlatness(-2222);
// Now PDF->GetLastError will return an error description:
// "01/01/08 12:00 ERROR: PDFDocumentImpl::SetFlatness - Value (-2222) out of range - should be between 0 and 100"
// PDF object is supposed to be created
PDF.SetFlatness(-2222);
// Now PDF.GetLastError will return an error description:
// "01/01/08 12:00 ERROR: PDFDocumentImpl::SetFlatness - Value (-2222) out of range - should be between 0 and 100"
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.SetFlatness -2222
' Now PDF.GetLastError will return an error description:
' "01/01/08 12:00 ERROR: PDFDocumentImpl::SetFlatness - Value (-2222) out of range - should be between 0 and 100"