WindowsCE 6.0 DrvAdvPageSetupDlg(), Error: The Print Settings Dialog is already in use by this application ? RRS feed

  • Question

  • Hi,

    I want to use the DrvAdvPageSetupDlg() function, to get a dialog box for configuration extend printing options.

    I called this with minimized parameters for testing from driver source code (ddi.cpp).  When I test this from a print dialog f.e. WordPad with "Advanced"  Button in Print Dialog. I get always the Error Message "The Print Settings Dialog is already in use by this application. Click Ok to return to the currently opened dialog "


    Here my code:

    BOOL DrvAdvPageSetupDlg(LPPAGESETUPDLG lppsd, HWND hwndDlg) {
        PAGESETUPDLG psdlg;

        memset(&psdlg, 0, sizeof(PAGESETUPDLG));
        psdlg.lStructSize = sizeof(PAGESETUPDLG);

        return TRUE;

    I test this with Microsoft sample "Adding an Advanced Print Dialog Box" ( and other samples with same results ?

    My question is has somebody an idea, why doesn't open the Advanced Setup Dialog Box ? Or has somebody a running and tested example for me ? I didn't find any running example.

    Best regards


    WinCE Forum

    Tuesday, November 27, 2012 8:10 AM