Issue 124294 - Certain docs fails to start print job
Summary: Certain docs fails to start print job
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 4.1.0-dev
Hardware: All OS/2
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks: 118923
  Show dependency tree
 
Reported: 2014-02-22 16:12 UTC by Yuri Dario
Modified: 2016-12-31 15:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Yuri Dario 2014-02-22 16:12:02 UTC
Some documents fails to print. A generic 

Could not start printer.
Please check your printer configuration.

error box is shown.

sfx2\view\viewprn.cxx issues this message on SfxPrinterController::jobFinished() when state is PrintableState_JOB_FAILED
Comment 1 Yuri Dario 2014-02-23 16:43:30 UTC
I discovered it depends on a quick code hack done at the OO 2.0 porting effort. In Os2SalPrinter::StartJob() then pszComment field of DEVOPENSTRUC had been filled with job name instead of application name as suggested in docs. Thus, simple document names were acceptable as application names, while complex and long names not. Probably some DEV/driver limitation inside OS/2 presentation manager.
Comment 2 SVN Robot 2014-02-23 16:44:37 UTC
"ydario" committed SVN revision 1571026 into trunk:
#i124294# use rAppName to fill pszComment field when opening the printer device.
Comment 3 Yuri Dario 2014-02-23 16:48:03 UTC
Fixed in revision 1571026.