I can easily bring up an Adobe Acrobat file from my VFP 9 program by saying

RUN /N3 &cAcrobat &cAdobeFileRec

Where cAcrobat is the path and filename of the executable for Acrobat, and
cAdobeFileRec is the file to open. Is it possible to open the file and go to
a specific page number?

Big Thanks.

Re: VFP 9 to Specific Page in Adobe Acrobat File by Wild

Wild
Thu Feb 09 19:10:23 CST 2006

I used to do this using DDE.

Bill deVries
"Jim Fuchs" <JimFuchs@discussions.microsoft.com> wrote in message
news:5AA96E5B-3991-4468-8225-B60F9008265D@microsoft.com...
> I can easily bring up an Adobe Acrobat file from my VFP 9 program by
saying
>
> RUN /N3 &cAcrobat &cAdobeFileRec
>
> Where cAcrobat is the path and filename of the executable for Acrobat, and
> cAdobeFileRec is the file to open. Is it possible to open the file and go
to
> a specific page number?
>
> Big Thanks.



Re: VFP 9 to Specific Page in Adobe Acrobat File by JimFuchs

JimFuchs
Mon Feb 13 15:27:26 CST 2006

Well, I got as far as:

loMe = Createobject("AxAcroPDFLib.AxAcroPDF")
loMe.SetCurrentPage(4)

to go to page 4, but I get an error "Class definition. . .is not found."
Don't know what to try next.

Jim

"Wild Bill" wrote:

> I used to do this using DDE.
>
> Bill deVries
> "Jim Fuchs" <JimFuchs@discussions.microsoft.com> wrote in message
> news:5AA96E5B-3991-4468-8225-B60F9008265D@microsoft.com...
> > I can easily bring up an Adobe Acrobat file from my VFP 9 program by
> saying
> >
> > RUN /N3 &cAcrobat &cAdobeFileRec
> >
> > Where cAcrobat is the path and filename of the executable for Acrobat, and
> > cAdobeFileRec is the file to open. Is it possible to open the file and go
> to
> > a specific page number?
> >
> > Big Thanks.
>
>
>

Re: VFP 9 to Specific Page in Adobe Acrobat File by trw7at

trw7at
Tue Feb 14 11:54:58 CST 2006

>> "Jim Fuchs" <JimFuchs@discussions.microsoft.com> wrote in message
>> news:5AA96E5B-3991-4468-8225-B60F9008265D@microsoft.com...
>> > I can easily bring up an Adobe Acrobat file from my VFP 9 program by
>> > saying
>> >
>> > RUN /N3 &cAcrobat &cAdobeFileRec
>> >
>> > Where cAcrobat is the path and filename of the executable for
>> > Acrobat, and cAdobeFileRec is the file to open. Is it possible to
>> > open the file and go to a specific page number?
>> >
>> > Big Thanks.

> "Wild Bill" wrote:
>
>> I used to do this using DDE.
>>
>> Bill deVries

=?Utf-8?B?SmltIEZ1Y2hz?= seemed to utter in
news:D240502D-7557-49E0-B518-1F0ED93B7434@microsoft.com:

> Well, I got as far as:
>
> loMe = Createobject("AxAcroPDFLib.AxAcroPDF")
> loMe.SetCurrentPage(4)
>
> to go to page 4, but I get an error "Class definition. . .is not
> found." Don't know what to try next.
>
> Jim

What version of Acrobat are you using? If you are getting
this error on the call to CreateObject, it appears that the
AxAcroPDFLib has not been registered. I've only done this
type of thing with Acrobat 5. With that version, the COM
interface is AcroExch, not AxAcroPDFLib.

-- TRW
_______________________________________
t r w 7
at
i x dot n e t c o m dot c o m
_______________________________________

Re: VFP 9 to Specific Page in Adobe Acrobat File by JimFuchs

JimFuchs
Tue Feb 14 12:31:27 CST 2006

I just installed Acrobat 7.0. Here's what I've got now:

loMe = Createobject("AcroExch.AVPageView")
*loMe = Createobject('AxAcroPDFLib.AxAcroPDF')
*loMe = Createobject("AcroExch.AVPageView")
loMe.GetAVPageView()
nPage = loAcrobatExchPDFOne.GoTo(4)

but I get the error Class definition AcroExch.AVPageView is not found. What
am I doing wrong? Thanks! Jim

"Tim Witort" wrote:

> >> "Jim Fuchs" <JimFuchs@discussions.microsoft.com> wrote in message
> >> news:5AA96E5B-3991-4468-8225-B60F9008265D@microsoft.com...
> >> > I can easily bring up an Adobe Acrobat file from my VFP 9 program by
> >> > saying
> >> >
> >> > RUN /N3 &cAcrobat &cAdobeFileRec
> >> >
> >> > Where cAcrobat is the path and filename of the executable for
> >> > Acrobat, and cAdobeFileRec is the file to open. Is it possible to
> >> > open the file and go to a specific page number?
> >> >
> >> > Big Thanks.
>
> > "Wild Bill" wrote:
> >
> >> I used to do this using DDE.
> >>
> >> Bill deVries
>
> =?Utf-8?B?SmltIEZ1Y2hz?= seemed to utter in
> news:D240502D-7557-49E0-B518-1F0ED93B7434@microsoft.com:
>
> > Well, I got as far as:
> >
> > loMe = Createobject("AxAcroPDFLib.AxAcroPDF")
> > loMe.SetCurrentPage(4)
> >
> > to go to page 4, but I get an error "Class definition. . .is not
> > found." Don't know what to try next.
> >
> > Jim
>
> What version of Acrobat are you using? If you are getting
> this error on the call to CreateObject, it appears that the
> AxAcroPDFLib has not been registered. I've only done this
> type of thing with Acrobat 5. With that version, the COM
> interface is AcroExch, not AxAcroPDFLib.
>
> -- TRW
> _______________________________________
> t r w 7
> at
> i x dot n e t c o m dot c o m
> _______________________________________
>

Re: VFP 9 to Specific Page in Adobe Acrobat File by trw7at

trw7at
Tue Feb 14 18:20:47 CST 2006


> "Tim Witort" wrote:
>
>> >> "Jim Fuchs" <JimFuchs@discussions.microsoft.com> wrote in message
>> >> news:5AA96E5B-3991-4468-8225-B60F9008265D@microsoft.com...
>> >> > I can easily bring up an Adobe Acrobat file from my VFP 9 program
>> >> > by saying
>> >> >
>> >> > RUN /N3 &cAcrobat &cAdobeFileRec
>> >> >
>> >> > Where cAcrobat is the path and filename of the executable for
>> >> > Acrobat, and cAdobeFileRec is the file to open. Is it possible
>> >> > to open the file and go to a specific page number?
>> >> >
>> >> > Big Thanks.
>>
>> > "Wild Bill" wrote:
>> >
>> >> I used to do this using DDE.
>> >>
>> >> Bill deVries
>>
>> =?Utf-8?B?SmltIEZ1Y2hz?= seemed to utter in
>> news:D240502D-7557-49E0-B518-1F0ED93B7434@microsoft.com:
>>
>> > Well, I got as far as:
>> >
>> > loMe = Createobject("AxAcroPDFLib.AxAcroPDF")
>> > loMe.SetCurrentPage(4)
>> >
>> > to go to page 4, but I get an error "Class definition. . .is not
>> > found." Don't know what to try next.
>> >
>> > Jim
>>
>> What version of Acrobat are you using? If you are getting
>> this error on the call to CreateObject, it appears that the
>> AxAcroPDFLib has not been registered. I've only done this
>> type of thing with Acrobat 5. With that version, the COM
>> interface is AcroExch, not AxAcroPDFLib.

=?Utf-8?B?SmltIEZ1Y2hz?= seemed to utter in
news:655C2E36-19A3-459C-A611-014066FC7F44@microsoft.com:

> I just installed Acrobat 7.0. Here's what I've got now:
>
> loMe = Createobject("AcroExch.AVPageView")
> *loMe = Createobject('AxAcroPDFLib.AxAcroPDF')
> *loMe = Createobject("AcroExch.AVPageView")
> loMe.GetAVPageView()
> nPage = loAcrobatExchPDFOne.GoTo(4)
>
> but I get the error Class definition AcroExch.AVPageView is not found.
> What am I doing wrong? Thanks! Jim
>

Besides top-posting? ;^)

Do you have the documentation for using automation with
version 7? The version 5 document is called "iacreference.pdf"
which stands for "Interapplication Communication Reference"
I got it from adobe.com. A quick Google search of adobe.com
shows that they also have the same documentation for version 7.
It's in their "Acrobat for IT Professionals" area.

If you are getting an error that the class doesn't exist, then
either the class has not been registered (usually done when a
product is installed, but some components like SDKs must be
explicitly registered using regsvr32.exe), or you are trying
to instatiate a class that is not in the component.

The documentation for the SDK would tell you how to register
the component and how to instantiate and use it programmatically.

-- TRW
_______________________________________
t r w 7
at
i x dot n e t c o m dot c o m
_______________________________________

Re: VFP 9 to Specific Page in Adobe Acrobat File by JimFuchs

JimFuchs
Mon Feb 27 13:57:27 CST 2006

Hi Bill.

What would that DDE command look like? I've had no success with al the
other methods suggested.

Thanks!
Jim

"Wild Bill" wrote:

> I used to do this using DDE.
>
> Bill deVries
> "Jim Fuchs" <JimFuchs@discussions.microsoft.com> wrote in message
> news:5AA96E5B-3991-4468-8225-B60F9008265D@microsoft.com...
> > I can easily bring up an Adobe Acrobat file from my VFP 9 program by
> saying
> >
> > RUN /N3 &cAcrobat &cAdobeFileRec
> >
> > Where cAcrobat is the path and filename of the executable for Acrobat, and
> > cAdobeFileRec is the file to open. Is it possible to open the file and go
> to
> > a specific page number?
> >
> > Big Thanks.
>
>
>