neodynamic / JSPrintManager

Advanced Client-side Printing & Scanning Solution for Javascript
https://www.neodynamic.com/products/printing/js-print-manager/
257 stars 137 forks source link

Request for Clarification on jsPrintManager API Usage and Error Handling #67

Closed Ronjea closed 4 months ago

Ronjea commented 5 months ago

Hello, I require assistance in understanding the API that jsPrintManager utilizes within the program. I am particularly interested in extracting information from errors.

The Microsoft documentation on the Print Ticket API has a lot of information and I do not know if I'm looking to the right spot.

Here is the link to the documentation: https://learn.microsoft.com/en-us/windows/win32/printdocs/print-ticket-api

BTW the errors I'm trying to check are this ones

Number: 6433  Date: 23/05/2024 20:28:46 ID: 1003  Type: Error Category: 3 User: N/A Domain: N/A 
Computer: Serranos Data: Job ID 78f6b812  
Additional info: { "file" : "rawED0964314A5143A68485399E450BFD97", "id" : -1, "description" : "Job 
cancelled: (PrintFiles|ExtractFile|Print) - List index (0) out of bounds" };  

Number: 6431  Date: 23/05/2024 20:05:29 ID: 1003  Type: Error Category: 3 User: N/A Domain: N/A 
Computer: Serranos Data: Job ID 43c20576  
Additional info: { "file" : "raw1B6CC786F8B34B8CB1818B1D2309D4D0", "id" : -1, "description" : "Job 
cancelled: (PrintFiles|ExtractFile|Print) - DoSetMediaTypeName error : unable to get current DevMode" };  

Number: 6423  Date: 23/05/2024 19:14:07 ID: 1003  Type: Error Category: 3 User: N/A Domain: N/A 
Computer: Serranos Data: Job ID dcdd27e7  
Additional info: { "file" : "raw93F2FFC774F64E089EBD3A3B1D759099", "id" : -1, "description" : "Job 
cancelled: (PrintFiles|ExtractFile|Print) - DoSetMediaTypeName error : unable to get current DevMode" };  

Number: 6420  Date: 23/05/2024 18:57:39 ID: 1003  Type: Error Category: 3 User: N/A Domain: N/A 
Computer: Serranos Data: Job ID 5819658e  
Additional info: { "file" : "raw0FC90D868C184021B86FDD829B54B329", "id" : -1, "description" : "Job 
cancelled: (PrintFiles|ExtractFile|Print) - DoSetMediaTypeName error : unable to get current DevMode" };  

Number: 6417  Date: 23/05/2024 18:30:09 ID: 1003  Type: Error Category: 3 User: N/A Domain: N/A 
Computer: Serranos Data: Job ID d0e0383e  
Additional info: { "file" : "raw6C11D412C5694ED8919D649B9213BAB6", "id" : -1, "description" : "Job 
cancelled: (PrintFiles|ExtractFile|Print) - DoSetMediaTypeName error : unable to get current DevMode" };  

Number: 6412  Date: 23/05/2024 18:15:23 ID: 1003  Type: Error Category: 3 User: N/A Domain: N/A 
Computer: Serranos Data: Job ID 51f669aa  
Additional info: { "file" : "raw1A05AB85B9D1431F86B8ED82420C816F", "id" : -1, "description" : "Job 
cancelled: (PrintFiles|ExtractFile|Print) - DoSetMediaTypeName error : unable to get current DevMode" };  

Number: 6358  Date: 22/05/2024 21:52:12 ID: 1003  Type: Error Category: 3 User: N/A Domain: N/A 
Computer: Serranos Data: Job ID 113f9792  
Additional info: { "file" : "raw3B61C0C1A9FF495280685F9C1E510EF1", "id" : -1, "description" : "Job 
cancelled: (PrintFiles|ExtractFile|Print) - Access violation" };  

Number: 6357  Date: 22/05/2024 21:52:11 ID: 1003  Type: Error Category: 3 User: N/A Domain: N/A 
Computer: Serranos Data: Job ID 9a3400d0  
Additional info: { "file" : "rawA9A79F418BA9496097B2F8218E647697", "id" : -1, "description" : "Job 
cancelled: (PrintFiles|ExtractFile|Print) - Access violation" };  

Number: 6356  Date: 22/05/2024 21:50:48 ID: 1003  Type: Error Category: 3 User: N/A Domain: N/A 
Computer: Serranos Data: Job ID a77da459  
Additional info: { "file" : "rawC695C3BE876B4E14B85201A0182AA508", "id" : -1, "description" : "Job 
cancelled: (PrintFiles|ExtractFile|Print) - Access violation" };  

Number: 6355  Date: 22/05/2024 21:42:21 ID: 1003  Type: Error Category: 3 User: N/A Domain: N/A 
Computer: Serranos Data: Job ID e5595b95  
Additional info: { "file" : "raw56A6E02023F84448ADBBDA2210F839A3", "id" : -1, "description" : "Job 
cancelled: (PrintFiles|ExtractFile|Print) - Access violation" };  

Number: 6350  Date: 22/05/2024 21:31:42 ID: 1003  Type: Error Category: 3 User: N/A Domain: N/A 
Computer: Serranos Data: Job ID 676b9406  
Additional info: { "file" : "raw18F6B97B12FC412B80C539C238DAC513", "id" : -1, "description" : "Job 
cancelled: (PrintFiles|ExtractFile|Print) - Access violation" };  
neodynamic commented 5 months ago

What exact version of the client app are you using?