none
IPrintCoreHelper does not return values for DOC_PROPERTY feature types RRS feed

  • Question

  • Hi guys!

    When i get IPrintCoreHelper to retrieve options values declared on GPD, the method "EnumFeatures" returns all Features names, but "GetOption" works only with "PRINTER_PROPERTY" types.

    Code:

    if (SUCCEEDED(pPropertyBag->GetProperty(L"IPrintCoreHelper", &varPrintCoreHelper)))
            {
                IPrintCoreHelper *printCoreHelper;
                if (SUCCEEDED(V_UNKNOWN(&varPrintCoreHelper)->QueryInterface(IID_IPrintCoreHelper, reinterpret_cast<VOID**>(&printCoreHelper))))
                {
                    if (SUCCEEDED(printCoreHelper->EnumFeatures(&keyVector, &keyVectorSize))) // Works ok. I got all feature names.
                    {
                        for (DWORD i = 0; i < keyVectorSize; i++)
                        {
                            PCSTR keyName = keyVector[i];
                            PCSTR val;
                            if (SUCCEEDED(printCoreHelper->GetOption(NULL, 0, keyName, &val)))// Error when keyName is an DOC_PROPERTY or JOB_PROPERTY type
    
                        }
                    }
                }
            }

    My GPD Feature:

    *Feature: MyDither
    {
        *rcNameID:456
        *FeatureType: DOC_PROPERTY
        *DefaultOption: None
        *Option: None
        {
            *rcNameID: 457
        }
        *Option: 2x2
        {
            *rcNameID: 458
        }
        *Option: 4x4
        {
            *rcNameID: 459
        }
    }


    Any suggestions?


    • Edited by F.Ronald Tuesday, December 29, 2015 10:07 PM
    Tuesday, December 29, 2015 10:05 PM