LastError

<< Click to Display Table of Contents >>

Navigation:  Management >

LastError

Previous pageReturn to chapter overviewNext page

Returns the error state of the last VPE function call.

property ErrorCode [long] VPE.LastError

read; runtime only

Possible Values:

one of the VERR_xyz constants (see below)

Remarks:

Not all functions do set / clear the error state. Only the functions which set the error state will also clear it, in case that no error occurred. All other functions keep the error state untouched.

 

The "Remarks" section of each function described in this manual will clearly indicate, if the function will modify the LastError property.

Error Codes:

Constant Name

Value

Enum

Description

VERR_OK

0

Ok

no error

VERR_COMMON

1

Common

common error

VERR_CANCELLED

2

Cancelled

the user cancelled an operation, for example the Open or Save file dialog

VERR_MEMORY

100

Memory

out of memory

 

 

 

 

VERR_FILE_OPEN

200

FileOpen

error opening a file; occurs when calling functions like OpenDoc() with SwapFileName set, ReadDoc(), WriteDoc(), ReadPrinterSetup(), Picture(), WriteRTFFile(), etc.

Meaning: The specified file could not be opened, it is either not existing, the path is not existing, it is locked, incorrect logical structure (for example corrupted file)

VERR_FILE_DOCVERSION

201

FileDocVersion

Document file has the wrong (higher) version and can not be opened / read

VERR_FILE_CREATE

202

FileCreate

error creating file; occurs when calling functions like WriteDoc(), OpenDoc() with SwapFileName set, WritePrinterSetup(), SetupPrinter() (only during write), etc.

Meaning: illegal path or file name, file locked, disk full, no permissions

VERR_FILE_ACCESS

203

FileAccess

Access denied (no permission); see also DocFileReadOnly

VERR_FILE_READ

204

FileRead

error during file read operation

VERR_FILE_WRITE

205

FileWrite

error during file write operation

 

 

 

 

VERR_PRINT_SETUP_ABORT

225

PrintSetupAbort

Printer setup was aborted by user

VERR_PRINT_SETUP_INIT

226

PrintSetupInit

Printer setup failed: initialization of printer

VERR_PRINT_SYS

227

PrintSys

Failure in the Windows printing subsystem

Possible causes might include a network printer that has been renamed, corrupt printer drivers, or corrupt print subsystem files.

 

Solution or Workaround

In an effort to solve the problem, use the steps below to remove and reinstall the printer. If the problem persists, it may suggest that there are further problems  with the operating system or printer itself. Contact your system administrator for further assistance.

 

- Go to Start > Settings > Printers. Remove the printer by selecting it and choose Delete from the File menu

- Choose File > Server Properties to open up the Server Properties dialog.

- Click on the Drivers tab.

- Find the printer's name in the list and remove it. There may be multiple entries for the same printer; be sure to remove all instances of the printer driver.

- Reinstall the printer normally by returning to the Start > Settings > Printers and clicking on click the Add Printer icon

VERR_PRINT_COMMON

228

PrintCommon

Common error during printing

 

 

 

 

VERR_PIC_IMPORT

300

PicImport

image could not be imported

Meaning: File or resource not found, file not accessible, or image structure unreadable / corrupted, or not enough memory

VERR_PIC_NOLICENSE

301

PicNoLicense

No license for image access (e.g. TIFF / GIF image is LZW compressed and flag PIC_ALLOWLZW not used).

This error code is obsolete. The LZW patend has expired. Since v4.00 VPE imports LZW compressed images without specifying PIC_ALLOWLZW.

VERR_PIC_DXFCOORD

302

PicDXFCoord

For DXF formats, x2 and y2 may not be VFREE at the same time, either x2 or y2 must be <> VFREE

 

 

 

 

VERR_PIC_EXPORT

350

PicExport

image could not be exported

Meaning: File could not be created, or not enough memory

 

 

 

 

VERR_MOD_GRAPH_IMP

400

ModGraphImp

Error loading Graphics Import Library

VERR_MOD_GRAPH_PROC

401

ModGraphProc

Error loading Graphics Processing Library

VERR_MOD_BARCODE

402

ModBarcode

Error loading Barcode Library

VERR_MOD_CHART

403

ModChart

Error loading Chart Library

VERR_MOD_ZLIB

404

ModZlib

Error loading ZLIB Library

VERR_MOD_VPDF

405

ModPDF

Error loading PDF Export Library

VERR_MOD_VBAR2D

406

ModBarcode2D

Error loading 2D Barcode Library

 

 

 

 

VERR_MAIL_LOAD_MAPI

450

MailLoadMapi

Could not load MAPI

VERR_MAIL_CREATE

451

MailCreate

Could not create temporary file

VERR_MAIL_USER_ABORT

452

MailUserAbort

 

VERR_MAIL_FAILURE

453

MailFailure

 

VERR_MAIL_LOGON_FAILURE

454

MailLogonFailure

 

VERR_MAIL_DISK_FULL

455

MailDiskFull

 

VERR_MAIL_INSUFFICIENT_MEMORY

456

MailInsufficientMemory

 

VERR_MAIL_ACCESS_DENIED

457

MailAccessDenied

 

VERR_MAIL_RESERVED

458

MailReserved

 

VERR_MAIL_TOO_MANY_SESSIONS

459

MailTooManySessions

 

VERR_MAIL_TOO_MANY_FILES

460

MailTooManyFiles

 

VERR_MAIL_TOO_MANY_RECIPIENTS

461

MailTooManyRecipients

 

VERR_MAIL_ATTACHMENT_NOT_FOUND

462

MailAttachmentNotFound

 

VERR_MAIL_ATTACHMENT_OPEN_FAILURE

463

MailAttachmentOpenFailure

 

VERR_MAIL_ATTACHMENT_WRITE_FAILURE

464

MailAttachmentWriteFailure

 

VERR_MAIL_UNKNOWN_RECIPIENT

465

MailUnknownRecipient

 

VERR_MAIL_BAD_RECIPTYPE

466

MailBadRecipType

 

VERR_MAIL_NO_MESSAGES

467

MailNoMessages

 

VERR_MAIL_INVALID_MESSAGE

468

MailInvalidMessage

 

VERR_MAIL_TEXT_TOO_LARGE

469

MailTextTooLarge

 

VERR_MAIL_INVALID_SESSION

470

MailInvalidSession

 

VERR_MAIL_TYPE_NOT_SUPPORTED

471

MailTypeNotSupported

 

VERR_MAIL_AMBIGUOUS_RECIPIENT

472

MailAmbiguousRecipient

 

VERR_MAIL_MESSAGE_IN_USE

473

MailMessageInUse

 

VERR_MAIL_NETWORK_FAILURE

474

MailNetworkFailure

 

VERR_MAIL_INVALID_EDITFIELDS

475

MailInvalidEditFields

 

VERR_MAIL_INVALID_RECIPS

476

MailInvalidRecips

 

VERR_MAIL_NOT_SUPPORTED

477

MailNotSupported

 

 

 

 

 

VERR_ZLIB_STREAM

500

ZlibStream

Stream Inconsistent

VERR_ZLIB_DATA

501

ZlibData

Data Corrupt

VERR_ZLIB_BUFFER

502

ZlibBuffer

Internal Buffer Error

VERR_ZLIB_VERSION

503

ZlibVersion

Wrong Version of ZLIB Library

 

 

 

 

VERR_VBAR2D_FORMAT_OUT_OF_RANGE

550

Vbar2DFormatOutOfRange

 

VERR_VBAR2D_UNDEFINED_ID

551

Vbar2DUndefinedId

 

VERR_VBAR2D_FORMAT_TOO_LONG

552

Vbar2DFormatTooLong

 

VERR_VBAR2D_FORMAT_OUT_OF_MEMORY

553

Vbar2DFormatOutOfMemory

 

VERR_VBAR2D_FORMAT_DATA_INVALID

554

Vbar2DFormatDataInvalid

 

VERR_VBAR2D_FORMAT_NOT_ALLOWED

555

Vbar2DFormatNotAllowed

 

VERR_VBAR2D_DATA_WRONG_LENGTH

556

Vbar2DDataWrongLength

 

VERR_VBAR2D_DATA_ZERO_LENGTH

557

Vbar2DDataZeroLength

 

VERR_VBAR2D_DATA_TOO_SHORT

558

Vbar2DDataTooShort

 

VERR_VBAR2D_DATA_TOO_LONG

559

Vbar2DDataTooLong

 

VERR_VBAR2D_INVALID_DATA

560

Vbar2DInvalidData

 

VERR_VBAR2D_SQUARE_EDGE_TOO_SMALL

561

Vbar2DSquareEdgeTooSmall

 

VERR_VBAR2D_SQUARE_TOO_LARGE

562

Vbar2DSquareTooLarge

 

VERR_VBAR2D_EDGE_OVER_FORCED

563

Vbar2DEdgeOverForced

 

VERR_VBAR2D_SQUARE_ASPECT_SMALL

564

Vbar2DSquareAspectSmall

 

VERR_VBAR2D_SQUARE_ASPECT_LARGE

565

Vbar2DSquareAspectLarge

 

VERR_VBAR2D_SQUARE_EVEN_ODD_MATCH

566

Vbar2DSquareEvenOddMatch

 

VERR_VBAR2D_INVALID_EDGE

567

Vbar2DInvalidEdge

 

VERR_VBAR2D_SQUARE_EDGE_TOO_LARGE

568

Vbar2DSquareEdgeTooLarge

 

VERR_VBAR2D_INVALID_ECC

569

Vbar2DInvalidEcc

 

VERR_VBAR2D_INVALID_BORDER

570

Vbar2DInvalidBorder

 

VERR_VBAR2D_SELF_TEST_FAILED

571

Vbar2DSelfTestFailed

 

 

 

 

 

VERR_RTF_BRACES

1000

RtfBraces

RTF: unbalanced braces "{}"

VERR_RTF_OVERFLOW

1001

RtfOverflow

RTF: only 16-bit version; generated internal structure > 64 KB

VERR_RTF_FONTTBL

1002

RtfFontTable

RTF: error parsing font table

VERR_RTF_COLORTBL

1003

RtfColorTable

RTF: error parsing color table

 

 

 

 

VERR_TPL_OWNERSHIP

2000

TplOwnership

Template: tried to dump the template to a foreign VPE document (where the template was not loaded into).

VERR_TPL_PAGE_ALREADY_DUMPED

2001

TplPageAlreadyDumped

Template: the page contains interactive objects and already had been dumped. A page containing interactive objects may only be dumped once.

VERR_TPL_AUTHENTICATION

2002

TplAuthentication

Template: the template has an authentication key and it has not been validated successfully