none
I want to get path of file in callback PrintDocumentOnPrintProcessor,who can help me? thank you RRS feed

  • Question

  • I want to get path of file in callback PrintDocumentOnPrintProcessor,who can help me ? thank you

    BOOL
    PrintDocumentOnPrintProcessor(
        _In_ HANDLE  hPrintProcessor,
        _In_ LPWSTR  pDocumentName
    )

    ZeroMemory(DebugChar, 1024);
      swprintf(DebugChar, L"JOBID %d \n pDocument %ws \n  pOutputFile %ws \n  pPrinterNameFromOpenData %ws \n  pDatatype %ws \n", pData->JobId,pData->pDocument, pData->pOutputFile, pData->pPrinterNameFromOpenData, pData->pDatatype);
      OutputDebugString(DebugChar);

    pData->pDocument only have name of doc,but it don't include path of doc.

    Thank you


    www.jiangkai.net

    Tuesday, March 8, 2016 9:55 AM