Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 29 MAR 2006 11:52:24AM Gerald Lovel wrote:

COLLATE is missing from the documented Get_Printer features of OIPI. Most OIPI commands have Get_Printer and Set_Printer versions, so that Set_Printer errors can be avoided by testing Get_Printer first. Is this a command omission in OIPI, or just a documentation issue? With command symmetry, a generic code routine can test the availability of a feature, then set only available features. Lacking a Get_Printer test for COLLATE, the generic routine coding concept fails.


At 31 MAR 2006 09:30AM Bob Orsini wrote:

Gerald, get_printer is not a function to check for valid features. Get_printer just returns current settings. The return value of set_printer is used to see if the feature is valid. However I noticed a bug in the original code from 4.1 that did not return an error if the collate failed. The 8.0 upgrade will have this corrected.


At 31 MAR 2006 10:40AM Gerald Lovel wrote:

Bob,

I think the OIPI documentation examples gave me the (mistaken) impression that Get_Printer was used to test the availability of printer features before attempting to set them. Thank you for correcting my misconception.

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/c8ed962a26084df985257140005731f0.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1