VpeGetLastError

<< Click to Display Table of Contents >>

Navigation:  Management Functions >

VpeGetLastError

Previous pageReturn to chapter overviewNext page

Returns the error state of the last VPE function call.

long VpeGetLastError(

VpeHandle hDoc

)

VpeHandle hDoc

Document Handle

Returns:

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 state.

Error Codes:

Constant Name

Value

Description

VERR_OK

0

no error

VERR_COMMON

1

common error

VERR_CANCELLED

2

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

VERR_MEMORY

100

out of memory

 

 

 

VERR_FILE_OPEN

200

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

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

VERR_FILE_CREATE

202

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

Access denied (no permission); see also DocFileReadOnly

VERR_FILE_READ

204

error during file read operation

VERR_FILE_WRITE

205

error during file write operation

 

 

 

VERR_PRINT_SETUP_ABORT

225

Printer setup was aborted by user

VERR_PRINT_SETUP_INIT

226

Printer setup failed: initialization of printer

VERR_PRINT_SYS

227

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

Common error during printing

 

 

 

VERR_PIC_IMPORT

300

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

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

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

image could not be exported

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

 

 

 

VERR_MOD_GRAPH_IMP

400

Error loading Graphics Import Library

VERR_MOD_GRAPH_PROC

401

Error loading Graphics Processing Library

VERR_MOD_BARCODE

402

Error loading Barcode Library

VERR_MOD_CHART

403

Error loading Chart Library

VERR_MOD_ZLIB

404

Error loading ZLIB Library

VERR_MOD_VPDF

405

Error loading PDF Export Library

VERR_MOD_VBAR2D

406

Error loading 2D Barcode Library

 

 

 

VERR_MAIL_LOAD_MAPI

450

Could not load MAPI

VERR_MAIL_CREATE

451

Could not create temporary file

VERR_MAIL_USER_ABORT

452

 

VERR_MAIL_FAILURE

453

 

VERR_MAIL_LOGON_FAILURE

454

 

VERR_MAIL_DISK_FULL

455

 

VERR_MAIL_INSUFFICIENT_MEMORY

456

 

VERR_MAIL_ACCESS_DENIED

457

 

VERR_MAIL_RESERVED

458

 

VERR_MAIL_TOO_MANY_SESSIONS

459

 

VERR_MAIL_TOO_MANY_FILES

460

 

VERR_MAIL_TOO_MANY_RECIPIENTS

461

 

VERR_MAIL_ATTACHMENT_NOT_FOUND

462

 

VERR_MAIL_ATTACHMENT_OPEN_FAILURE

463

 

VERR_MAIL_ATTACHMENT_WRITE_FAILURE

464

 

VERR_MAIL_UNKNOWN_RECIPIENT

465

 

VERR_MAIL_BAD_RECIPTYPE

466

 

VERR_MAIL_NO_MESSAGES

467

 

VERR_MAIL_INVALID_MESSAGE

468

 

VERR_MAIL_TEXT_TOO_LARGE

469

 

VERR_MAIL_INVALID_SESSION

470

 

VERR_MAIL_TYPE_NOT_SUPPORTED

471

 

VERR_MAIL_AMBIGUOUS_RECIPIENT

472

 

VERR_MAIL_MESSAGE_IN_USE

473

 

VERR_MAIL_NETWORK_FAILURE

474

 

VERR_MAIL_INVALID_EDITFIELDS

475

 

VERR_MAIL_INVALID_RECIPS

476

 

VERR_MAIL_NOT_SUPPORTED

477

 

 

 

 

VERR_ZLIB_STREAM

500

Stream Inconsistent

VERR_ZLIB_DATA

501

Data Corrupt

VERR_ZLIB_BUFFER

502

Internal Buffer Error

VERR_ZLIB_VERSION

503

Wrong Version of ZLIB Library

 

 

 

VERR_VBAR2D_FORMAT_OUT_OF_RANGE

550

 

VERR_VBAR2D_UNDEFINED_ID

551

 

VERR_VBAR2D_FORMAT_TOO_LONG

552

 

VERR_VBAR2D_FORMAT_OUT_OF_MEMORY

553

 

VERR_VBAR2D_FORMAT_DATA_INVALID

554

 

VERR_VBAR2D_FORMAT_NOT_ALLOWED

555

 

VERR_VBAR2D_DATA_WRONG_LENGTH

556

 

VERR_VBAR2D_DATA_ZERO_LENGTH

557

 

VERR_VBAR2D_DATA_TOO_SHORT

558

 

VERR_VBAR2D_DATA_TOO_LONG

559

 

VERR_VBAR2D_INVALID_DATA

560

 

VERR_VBAR2D_SQUARE_EDGE_TOO_SMALL

561

 

VERR_VBAR2D_SQUARE_TOO_LARGE

562

 

VERR_VBAR2D_EDGE_OVER_FORCED

563

 

VERR_VBAR2D_SQUARE_ASPECT_SMALL

564

 

VERR_VBAR2D_SQUARE_ASPECT_LARGE

565

 

VERR_VBAR2D_SQUARE_EVEN_ODD_MATCH

566

 

VERR_VBAR2D_INVALID_EDGE

567

 

VERR_VBAR2D_SQUARE_EDGE_TOO_LARGE

568

 

VERR_VBAR2D_INVALID_ECC

569

 

VERR_VBAR2D_INVALID_BORDER

570

 

VERR_VBAR2D_SELF_TEST_FAILED

571

 

 

 

 

VERR_RTF_BRACES

1000

RTF: unbalanced braces "{}"

VERR_RTF_OVERFLOW

1001

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

VERR_RTF_FONTTBL

1002

RTF: error parsing font table

VERR_RTF_COLORTBL

1003

RTF: error parsing color table

 

 

 

VERR_TPL_OWNERSHIP

2000

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

VERR_TPL_PAGE_ALREADY_DUMPED

2001

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

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