Auto-print Error Codes

 

Error Code

Value

Description

BIAP_OK

0

Operation successful.

BIAP_INTERNAL_ERROR

1

Internal error occurred.

BIAP_INITIALIZE_ERROR

2

Error occurred during initialization.

BIAP_NOT_INITIALIZE

3

The BiAutoPrint.dll is not initialized.

BIAP_ILLEGAL_PARAMETER

4

Illegal parameter.

- Cannot open file

- The file is empty

BIAP_NOT_ENOUGH_MEMORY

5

Not enough memory.

BIAP_INVALID_PRINTER

6

The printer is not a Black Ice printer driver.

BIAP_WORD_AUTOMATION_ERROR

7

Microsoft Word automation error. (this issue is most likely caused by a damaged Word file.)

BIAP_WORD_NOT_EXIST

8

Microsoft Word does not exist.

BIAP_WRONG_WORD_VERSION

9

Wrong Microsoft Word version.

BIAP_WRONG_ACROBAT_VERSION

10

An error occurred while trying to open Adobe Reader or Adobe Acrobat Pro. Please make sure that Adobe Reader or Adobe Acrobat Pro 10 or higher is installed on the system properly.

BIAP_ERROR_READER_EXE

11

Error getting the path of the Adobe Acrobat Reader application.

BIAP_ILLEGAL_FILETYPE

12

Illegal file type.

BIAP_ACROBAT_NOT_EXIST

13

Adobe Acrobat Reader does not exist.

BIAP_ERROR_SET_PRINTER

14

Error setting the system default printer.

BIAP_EXCEL_NOT_EXIST

15

Microsoft Excel does not exist.

BIAP_EXCEL_AUTOMATION_ERROR

16

Microsoft Excel automation error. (this issue is most likely caused by a damaged Excel file.)

BIAP_WRONG_EXCEL_VERSION

17

Wrong Microsoft Excel version.

BIAP_ERROR_GET_PORTNAME

18

Error getting the name of the port for specified printer.

BIAP_POWERPOINT_NOT_EXIST

19

Microsoft Power Point does not exist.

BIAP_POWERPOINT_AUTOMATION_ERROR

20

Microsoft Power Point automation error. (this issue is most likely caused by a damaged PowerPoint file.)

BIAP_WRONG_POWERPOINT_VERSION

21

Wrong Microsoft Power Point version.

BIAP_FILE_DOES_NOT_EXIST

22

The file does not exist.

BIAP_VISIO_NOT_EXIST

23

Microsoft Visio does not exist.

BIAP_VISIO_AUTOMATION_ERROR

24

Microsoft Visio automation error. (this issue is most likely caused by a damaged Visio file.)

BIAP_WRONG_VISIO_VERSION

25

Wrong Microsoft Visio version.

BIAP_AUTOCAD_NOT_EXIST

26

AutoCAD does not exist.

BIAP_AUTOCAD_AUTOMATION_ERROR

27

AutoCAD automation error. (this issue is most likely caused by a damaged AutoCad file.)

BIAP_WRONG_AUTOCAD_VERSION

28

Wrong AutoCAD version.

BIAP_ERROR_PRINTING_HTML

29

Error printing HTML document.

BIAP_ERROR_PRINTING_TXT

30

Error printing TXT document.

BIAP_ERROR_PRINTING_PDF

31

Error printing PDF document.

BIAP_ERROR_PRINTING_XPS

32

Error printing XPS document.

BIAP_ERROR_PRINTING_IMAGE

33

Error printing image file.

BIAP_DOTNET_MISSING

34

Microsoft .NET Framework 4.0 is required for printing XPS and HTML documents.

BIAP_ERROR_PRINTING_RTF,

35

Error Printing RTF document

BIAP_BLACKICEDEVMODE_DLL_MISSING,

36

The BlackiceDEVMODE.dll does not exist in the same directory as BiAutoPrint.dll

BIAP_ERROR_PASSWORD_PROTECTED,

37

The file is password protected.

BIAP_ERROR_OFFICE_HELPER_NOT_EXISTS,

38

The Office helper (BiPrintOffice.exe) does not exist in the same directory as BiAutoPrint.dll

BIAP_ERROR_START_OFFICE_HELPER,

39

Error starting the Office helper

BIAP_ERROR_GET_OFFICE_HELPER_EXIT_CODE,

40

Error getting the Office helper exit code

BIAP_ERROR_GET_OFFICE_HELPER_ERROR_INFO,

41

Error receiving the error information from the Office helper

BIAP_ERROR_OFFICE_HELPER_EXIT_CODE,

42

The Office helper utility exited with error code.

BIAP_ERROR_BIAUTOPDF_DLL_MISSING,

43

The BiAutoPDF.dll does not exist in the same directory as BiAutoPrint.dll

BIAP_ERROR_PDF_HELPER_NOT_EXISTS,

44

The PDF helper (BiPrintPDF.exe) does not exist in the same directory as BiAutoPrint.dll

BIAP_ERROR_XPS_HELPER_NOT_EXISTS,

45

The XPS helper (BiPrintXPS.exe) does not exist in the same directory as BiAutoPrint.dll

BIAP_ERROR_HTML_HELPER_NOT_EXISTS,

46

The HTML helper (BiPrintHTML.exe) does not exist in the same directory as BiAutoPrint.dll

BIAP_INVALID_LICENSE,

47

The BiAutoPrint(32/64).dll is not registered or the Demo period is expired.

BIAP_START_PRINTING_TIMEOUT,

48

Timeout interval elapsed while trying to start printing.

BIAP_MULTITHREADED_SERVICE,

49

The AutoCAD helper (BiPrintDWG.exe) does not exist in the same directory as BiAutoPrint(32/64).dll

BIAP_ERROR_AUTOCAD_HELPER_NOT_EXISTS

50

Error starting the AutoCAD helper

BIAP_ERROR_START_AUTOCAD_HELPER

51

Error getting the AutoCAD helper exit code

BIAP_ERROR_GET_AUTOCAD_HELPER_EXIT_CODE

52

Error receiving the error information from the AutoCAD helper

BIAP_ERROR_GET_AUTOCAD_HELPER_ERROR_INFO

53

The Office helper utility exited with error code

BIAP_ERROR_AUTOCAD_HELPER_EXIT_CODE

54

The AutoCAD helper (BiPrintDWG.exe) does not exist in the same directory as BiAutoPrint(32/64).dll

BIAP_ERROR_NOT_VALID_DRIVER_VERSION

55

With Demo registration only 14.16 or later version of BlackIce Printer Driver can be used

BIAP_ERROR_SPOOLER_NOT_RUNNING

56

The spooler service is not running

BIAP_ERROR_COULD_NOT_START_SPOOLER

57

Could not start the spooler service

BIAP_ERROR_LOADING_BLACKICEDEVMODE_DLL

58

Error loading the BlackIceDEVMODE.dll

BIAP_ERROR_LOADING_BLACKICEDEVMODE_DLL_FUNCTIONS

59

Error loading the functions from the BlackIceDEVMODE.dll

BIAP_BLACKICEDEVMODE_DLL_FUNCTION_FAILED

60

Function calling from BlackIceDEVMODE failed

BIAP_ERROR_SETTING_ACROBAT

61

Error while accessing the Adobe Reader or Adobe Acrobat Pro settings.

BIAP_ERROR_PRINTING_NOT_STARTED

62

Auto-print tried to start printing the document, but the printer driver did not print the first page before the end of the timeout period.

BIAP_ERROR_PRINTING_NOT_FINISHED

63

The printing has started, but the printer driver could not print one of the pages before the end of the timeout period.

BIAP_ERROR_PRINTING_ABORTED

64

The print job was aborted by the driver, or by the printing application (e.g.: Adobe Reader).

BIAP_ERROR_WAIT_FAILED

65

Invalid handle used in WaitForMessageCaptureAndHelperThread WaitForMultipleObjects function. Either the MessageCapture thread handle, or the handle received from the PrintDocument is invalid.

BIAP_ERROR_MESSAGE_CAPTURE_THREAD_REGISTER_CLASS_FAILED

66

Message Capture Thread returned with MESSAGE_CAPTURE_RETURN_ERROR_REGISTER_CLASS_FAILED. Cannot register the dummy spooler message receiving window class.

BIAP_ERROR_MESSAGE_CAPTURE_THREAD_CREATE_DUMMY_WINDOW_FAILED

67

Message Capture Thread returned with error while trying to create class for dummy window

BIAP_ERROR_READ_MESSAGE_CAPTURE_THREAD_RETURN_CODE_FAILED

68

Message Capture Thread returned first, but cannot read the returned value.

BIAP_ERROR_CAN_NOT_CREATE_MESSAGE_CAPTURE_THREAD

69

CreateThread() returned with error, while trying to create the Message Capture Thread

BIAP_ERROR_STOP_SPOOLER_HANDLE_MISSING_ERROR

70

OpenService() returned null when tried to open spooler service while trying to stop the spooler.

BIAP_ERROR_STOP_SPOOLER_CAN_NOT_STOP

71

ControlService returned with false when tried to stop the spooler service.

BIAP_ERROR_STOP_SPOOLER_DID_NOT_STOP

72

Spooler service did not stop before timeout happened. Currently 5 seconds.

BIAP_ERROR_STOP_SPOOLER_MANAGER_HANDLE_MISSING_ERROR

73

OpenSCManager() returned with null when tried to open Service Control Manager to stop spooler

BIAP_ERROR_PRINT_JOB_ACCESS_DENIED

74

DeleteFile() returned false when tried to delete a print job. File path set into the errorinfo

BIAP_ERROR_PRINT_JOB_CAN_NOT_READ_ALL_JOBS

75

FindNextFile did not return with error code: ERROR_NO_MORE_FILES while deleting print jobs. The error code set into the errorinfo

BIAP_ERROR_HELPER_RETURNED_WITH_ERROR

76

The helper returned before the Message Capture Thread. This error code should be overwritten by the error code received from the helper process. Printing can return this error code if somehow the helper is STILL_ACTIVE

BIAP_ERROR_PRINTER_PAUSED

77

The printer is paused.

BIAP_ERROR_START_IMAGE_HELPER

78

Error starting the Image helper.

BIAP_ERROR_IMAGE_HELPER_NOT_EXISTS

79

Image helper not found in.

BIAP_ERROR_GET_IMAGE_HELPER_ERROR_INFO

80

Error getting the Image helper error info.

BIAP_ERROR_IMAGE_HELPER_EXIT_CODE

81

Image helper returned with error.

BIAP_ERROR_GET_IMAGE_HELPER_EXIT_CODE

82

Error getting the Image helper exit code.

BIAP_ERROR_OFFICE_HELPER_VERSION_MISMATCH

83

Error Office helper version mismatch.

BIAP_ERROR_AUTOCAD_HELPER_VERSION_MISMATCH

84

Error Autocad helper version mismatch.

BIAP_ERROR_HTML_HELPER_VERSION_MISMATCH

85

Error HTML helper version mismatch.

BIAP_ERROR_XPS_HELPER_VERSION_MISMATCH

86

Error XPS helper version mismatch.

BIAP_ERROR_IMAGE_HELPER_VERSION_MISMATCH

87

Error Image helper version mismatch.

BIAP_ERROR_ACROBAT_HELPER_VERSION_MISMATCH

88

Error Acrobat helper version mismatch.

BIAP_ERROR_AUTOCAD_HELPER_FILE_MORPH_LICENSE_PROBLEM

89

Error Invalid BiBatchConverter license in Autocad helper.

BIAP_ERROR_AUTOCAD_HELPER_AUTOPRINT_LICENSE_PROBLEM

90

Error Invalid AutoPrint SDK license in Autocad helper.

BIAP_ERROR_SETTING_WORD_MARGIN

91

Error setting the margins in Word. Automation error:

BIAP_ERROR_MESSAGE_CAPTURE_THREAD_CREATE_WAITFORPRNPIPE_FAILED

92

Message Capture Thread cannot initialize BiAPMSG.DLL.

BIAP_ERROR_REMOVE_PRINT_JOBS_CANT_OPEN_PRINTER

93

Error: Cannot open printer, cannot remove print jobs.

BIAP_ERROR_REMOVE_PRINT_JOBS_CANT_REMOVE_PRINT_JOBS

94

Error: Cannot remove print jobs.

BIAP_ERROR_SPOOLER_PRINT_JOBS_DELETED

95

Error: Spooler crash occurred, all printer’s print job will be deleted.

BIAP_ERROR_HTML_CLOSEEVENT_INVALID_HANDLE

96

Error: HTML helper cannot open CloseEvent handle.

BIAP_ERROR_CANNOT_DETECT_AUTOCAD_PATH

97

Error: Cannot detect AutoCAD path.

BIAP_ERROR_CANNOT_START_AUTOCAD

98

Error: Cannot start AutoCAD.

BIAP_ERROR_INVALID_FILE_PATH

99

Error: File path is invalid. The path cannot contain any of the following characters: < > / * ? “ |

BIAP_ERROR_CANNOT_CREATE_SECURITY_DESCRIPTOR

100

Error: Cannot create Security Descriptor.

BIAP_ERROR_CANNOT_CREATE_PRINTER_SETTINGS_MUTEX

101

Error: Cannot create Printer Settings Mutex.

BIAP_ERROR_CANNOT_GET_USER_NAME

102

Error: Cannot get Windows user name.

BIAP_HELPER_READ_ERROR

103

Error: Cannot read helper error code.

BIAP_ERROR_CANNOT_OPEN_FILE

104

Error: Cannot read file. Windows error code: X

(For more information please see the Windows error code at the end of the error message)

BIAP_ERROR_CORRUPT_FILE

105

Error: The file is corrupt or damaged.

BIAP_ERROR_CANNOT_GET_SID

106

Error: Cannot get the current SID (Security Identifier).

BIAP_ERROR_CANNOT_RUN_UNDER_SYSTEM_ACCOUNT

107

Error: Auto-print cannot run under Local System account. Run the service under user account with administrator privileges.

BIAP_ERROR_MESSAGE_CAPTURE_PROCESS_MESSAGE_TIMEOUT

108

Error: Message Capture message was not processed within the timeout.

BIAP_ERROR_MESSAGE_CAPTURE_CANNOT_WRITE_PRINTER_PIPE

109

Message Capture failed to write the printer pipe.

BIAP_ERROR_MESSAGE_CAPTURE_CANNOT_READ_PRINTER_PIPE

110

Error: Message Capture failed to read the printer pipe.

BIAP_ERROR_PRINTER_NOT_EXISTS

111

Error: The specified printer does not exists.

BIAP_ERROR_CANNOT_OPEN_EMF

112

Error: Cannot open metafile.

BIAP_ERROR_EMF_ENUMERATION_FAILED

113

Error: Cannot enumerate all records in the metafile.

BIAP_ERROR_CANNOT_CREATE_DEVICE_CONTEXT

114

Error: Cannot create device context (DC).

BIAP_ERROR_CANNOT_START_PRINT_JOB

115

Error: Cannot start print job.

BIAP_ERROR_CANNOT_START_PAGE

116

Error: Cannot prepare the printer driver to accept data.

BIAP_ERROR_DRAWING_EMF

117

Error: Cannot draw the metafile.

BIAP_ERROR_START_EMF_HELPER

118

Error starting the EMF helper.

BIAP_ERROR_EMF_HELPER_NOT_EXISTS

119

Error: EMF helper not found in.

BIAP_ERROR_GET_EMF_HELPER_ERROR_INFO

120

Error getting the EMF helper error info.

BIAP_ERROR_EMF_HELPER_EXIT_CODE

121

Error: EMF helper returned with error.

BIAP_ERROR_GET_EMF_HELPER_EXIT_CODE

122

Error getting the EMF helper exit code.

BIAP_ERROR_EMF_HELPER_VERSION_MISMATCH

123

Error EMF helper version mismatch.

BIAP_ERROR_OPENING_PRINTER

124

Error Cannot open the printer.

BIAP_ERROR_RETRIEVING_PRINTER_SETTINGS

125

Error Cannot retrieve printer settings (DEVMODE).

BIAP_ERROR_CANNOT_RETRIEVE_EMF_HEADER

126

Error Cannot retrieve EMF header.

BIAP_ERROR_START_EMAIL_HELPER

127

Error: starting the Email helper.

BIAP_ERROR_EMAIL_HELPER_NOT_EXISTS

128

Error: Email helper not found.

BIAP_ERROR_GET_EMAIL_HELPER_ERROR_INFO

129

Error getting the Email helper error info.

BIAP_ERROR_EMAIL_HELPER_EXIT_CODE

130

Error: Email helper returned with error.

BIAP_ERROR_GET_EMAIL_HELPER_EXIT_CODE

131

Error getting the Email helper exit code.

BIAP_ERROR_EMAIL_HELPER_VERSION_MISMATCH

132

Error Email helper version mismatch.

BIAP_ERROR_LOAD_EMAIL_FILE                                       

133

Error: BiPrintEmail was not load the email file

BIAP_ERROR_DECRYPT_EMAIL

134

Error: BiPrintEmail was not decrypt the email file

BIAP_ERROR_PRINT_EMAIL_BODY

135

Error printing the email body

BIAP_ERROR_END_PRINT_EMAIL_BODY

136

Error end printing the email body

BIAP_ERROR_PRINT_EMAIL_ATTACHMENT

137

Error printing the email attachment

BIAP_ERROR_END_PRINT_EMAIL_ATTACHMENT

138

Error end printing the email attachment

BIAP_ERROR_FILE_PATH_IS_TOO_LONG

139

Error: The file path is too long.

BIAP_ERROR_DPI_CORRECTION_FAILED

140

Error: DPI correction has failed.

BIAP_ERROR_PRINTER_NOT_REGISTERED

141

Error: The specified printer driver is not activated

BIAP_ERROR_INVALID_CHAR_IN_FILENAME

142

Error: The Adobe Reader plugin does not support '#' characters in the filename.

BIAP_ERROR_FILE_ACCESS_DENIED

143

Error: Cannot open file. Access Denied.

BIAP_ERROR_FILE_SHARING_VIOLATION

144

Error: Cannot open file because it is already opened in another application.

BIAP_ERROR_CANNOT_OPEN_PDF_FILE

145

Error: Cannot open PDF file. Windows error code: X

(For more information please see the Windows error code at the end of the error message)

BIAP_ERROR_PDF_FILE_ACCESS_DENIED            

146

Error: Cannot open PDF file. Access Denied.

BIAP_ERROR_PDF_FILE_SHARING_VIOLATION

147

Error: Cannot open PDF file because it is already opened in another application.

BIAP_ERROR_PDF_INVALID_FILENAME

148

Error: Internal error while printing. Invalid file name.

BIAP_ERROR_PDF_FILE_TOO_SMALL       

149

Error: The PDF file is corrupted or damaged. The size of the file is too small to be a valid PDF document.

BIAP_ERROR_PDF_COULD_NOT_READ_FROM_FILE

150

Error: The PDF file is corrupted or damaged. Error while reading from the file.

BIAP_ERROR_PDF_COULD_NOT_FIND_HEADER

151

Error: The PDF file is corrupted or damaged. Could not find the PDF header in the file.

BIAP_ERROR_PDF_COULD_NOT_READ_HEADER

152

Error: The PDF file is corrupted or damaged. Could not read PDF header from the file.

BIAP_ERROR_PDF_FOXIT_NOT_FOUND

153

Error: Could not find the Foxit Reader application.

BIAP_ERROR_PRINTER_VERSION_NOT_SUPPORTED

154

Error: Invalid printer driver version. The feature is supported by Black Ice Printer Drivers version X or above

BIAP_ERROR_INVALID_PAGE_RANGE

155

Error: Invalid page range. Type page numbers and/or page ranges separated by commas counting from the start of the document. For example, type 1,2,5-12

BIAP_ERROR_TXT_HELPER_NOT_EXISTS

156

Text helper utility (BiPrintText.exe) not found.

BIAP_ERROR_TXT_HELPER_VERSION_MISMATCH

157

Error: Text helper version mismatch

BIAP_ERROR_START_TXT_HELPER

158

Error starting the Text helper.

BIAP_ERROR_GET_TXT_HELPER_ERROR_INFO

159

Error getting the Text helper error info.

BIAP_ERROR_TXT_HELPER_EXIT_CODE

160

Error: Text helper returned with an error.

BIAP_ERROR_GET_TXT_HELPER_EXIT_CODE

161

Error getting the Text helper exit code.

 

Use the BIAPGetErrorString function to get the full error message. This function might give additional information about the error. E.g: “Error in printing XPS document. Error: The time-out interval elapsed” means the application could not start the print job in 15 seconds.