GroupBrowser  




Go Back   GroupBrowser > Adobe Product Newsgroups > Adobe Acrobat > Acrobat Elements
User Name
Password
 
 
Thread Tools Search this Thread Display Modes

How can I print PDF files from my application?
Old 03-21-2008, 09:07 AM #1
Fabrizio_Frigerio@adobeforums.com
Guest
 
Status:
Posts: n/a
Default How can I print PDF files from my application?

I'm always trying to converter my vb6 application to use Acrobat Elements instead of Acrobat 5.0. Solved the print problem using Adobe PDF virtual printer (setting path and name of the PDF file) now I have the problem of printing on paper the PDF files created. In the application I was using this code to do that:

Dim nbr_pages As Long
Dim gApp As Acrobat.CAcroApp
Dim gPDDoc As Acrobat.CAcroPDDoc
Dim gAVDoc As Acrobat.CAcroAVDoc

On Error GoTo StampaFileError

Set gApp = CreateObject("AcroExch.App")
Set gAVDoc = CreateObject("AcroExch.AVDoc")
gApp.Hide

gAVDoc.Open sFile, ""
Set gPDDoc = gAVDoc.GetPDDoc
nbr_pages = gPDDoc.GetNumPages - 1
Call gAVDoc.PrintPages(0, nbr_pages, 2, True, True)

gApp.Exit
gAVDoc.Close True
gPDDoc.Close

Set gApp = Nothing
Set gPDDoc = Nothing
Set gAVDoc = Nothing

Now width Elements this code fails probably because Elements does not have a COM interface, how can I solve my problem?
I've tryed to use ShellExecute width "Print" command but seems to print only the first PDF and also leave Acrobat Reader open.
  Reply With Quote

Re: How can I print PDF files from my application?
Old 03-22-2008, 07:09 AM #2
Aandi_Inston@adobeforums.com
Guest
 
Status:
Posts: n/a
Default Re: How can I print PDF files from my application?

Acrobat Elements, when it comes to viewing PDF files, does not have
Acrobat. It only has the free Adobe Reader, bundled with the PDF
creator.

As such, you won't be able to use API methods found only in Acrobat.
You could try the DDE interface to Adobe Reader.

Aandi Inston
  Reply With Quote
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump




Microsoft Newsgroups 1 | Software Newsgroups


Powered by: vBulletin Version 3.0.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2003-2004 All Rights Reserved GroupBrowser LLC.