-
August 28th, 2012, 04:53 PM
#1
Print PDF
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);
-
August 29th, 2012, 03:32 AM
#2
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?
Victor Nijegorodov
-
August 29th, 2012, 09:52 AM
#3
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.
D
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|