August 28th, 2012, 04:53 PM
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.
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!
CAcroAVDoc * pAcroAvDoc = new CAcroAVDoc();
CString strPathName = "C:\\Artawork\\PDF\\";
CString strFileName = "ExamplePDF.pdf";
pAcroAvDoc->PrintPagesSilent(0, 2, 1, 1, 1);
August 29th, 2012, 03:32 AM
Re: Print PDF
- Are you using ANSI or UNICODE build for your project?
- Did you debug this code?
- Is this code snippet executed?
- What do these methods: Open, PrintPagesSilent, Close return? And what are the possible return values according the Docs?
- Does the SDK support 64-bit machine?
August 29th, 2012, 09:52 AM
Re: Print PDF
Thanks for your help Victor. I found out this morning on another forum that you need the full version of Adobe to use PrintPagesSilent... not just Reader.
Just wanted to update in case someone else reads this thread.
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!