Hey friends,

I would greatly appreciate some help with my question. I am really stumped why my code below does not print. I am using C++ 6.0 and all I want to do is print a PDF (with PrintSilentPages supplied by Acrobat SDK) that I have stored on my computer. The code compiles fine and seems like it should work but nothing prints. I have researched this extensively without success.

Additional information:

I am on a Windows 7 64-bit machine (don't believe this matters)
I am using Adobe Acrobat SDK X
Have Adobe Reader X 10.1.4 installed

I am able to get this to work by using a Shell Command but for my scenario I need to do this through the SDK.

I have also tried this with Acrobat 9 SDK.

I am hoping there is someone with experience with this or some expert that can help me out.

Thank you in advance for reading my post!

Code:
     COleException e;

     CAcroAVDoc * pAcroAvDoc = new CAcroAVDoc();
     pAcroAvDoc->CreateDispatch(TEXT("AcroExch.AVDoc"), &e);

     CString strPathName = "C:\\Artawork\\PDF\\";
     CString strFileName = "ExamplePDF.pdf";

     pAcroAvDoc->Open(strPathName, strFileName);

     pAcroAvDoc->PrintPagesSilent(0, 2, 1, 1, 1);

     pAcroAvDoc->Close(1);