FLTK logo

[fltk.general] Re: Fl_Printer errors - how can I interpret them?

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Fl_Printer errors - how can I interpret them? Manolo Apr 21, 2020  
 
I'm afraid that is not possible. The FLTK API does not detail the reason why a start_job() call may have failed.
That's mostly because that would be very OS-specific.

I have tried under MSWindows 10 the test/device.exe app and had it print to
"Microsoft print to pdf" twice, keeping open in Microsoft Edge the first resulting pdf file before
running the second print job.
The second print job fails at the StartDoc() OS call which returns -1, a sign of failure.
But Microsoft's doc gives no way to get more detail about the cause of that failure:
https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-startdoca

So, at least in that case, there's no way I can see to get more information than
"the print job failed to start".

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/80232d73-d087-43a4-a89f-4a05b522933f%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.