Index
2011-09-08 15:12Kent Belan : Ole Web Browser control
2011-09-08 16:22MB Software Solutions, LLC : Re: Ole Web Browser control
2011-09-08 16:40Kent Belan : RE: Ole Web Browser control
2011-09-08 18:23Jarvis, Matthew : RE: Ole Web Browser control
2011-09-09 09:35Richard Kaye : RE: Ole Web Browser control
2011-09-09 13:37Kent Belan : RE: Ole Web Browser control - Fixed
Back to top
Ole Web Browser control

Author: Kent Belan

Posted: 2011-09-08 15:12:35   Link

Hello,

I have a form that I use to preview a PDF document before it can be printed.

I am using the OLE Shell Explorer 2 control to display the PDF and it

displays in the Adobe reader.

It works great, but if the form is full screen the Adobe reader displays the

PDF at 150%

Does anyone know of a way to talk to the Adobe control to force the document

to always display at 100% ?

Thanks,

Kent

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/BA360FD86D234934A6F75028B230FF2C@LaptopW7

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Kent Belan
Back to top
Re: Ole Web Browser control

Author: MB Software Solutions, LLC

Posted: 2011-09-08 16:22:09   Link

On 9/8/2011 3:12 PM, Kent Belan wrote:

> Hello,

>

> I have a form that I use to preview a PDF document before it can be printed.

>

> I am using the OLE Shell Explorer 2 control to display the PDF and it

> displays in the Adobe reader.

>

> It works great, but if the form is full screen the Adobe reader displays the

> PDF at 150%

>

> Does anyone know of a way to talk to the Adobe control to force the document

> to always display at 100% ?

Hi Kent,

Whenever I click on PDFs in my emails here at the day gig, they always

open at 147%. Go figure. Wish I knew how to change that too (but never

make the time to solve the mystery). I'll watch this thread with

personal interest too!

--

Mike Babcock, MCP

MB Software Solutions, LLC

President, Chief Software Architect

http://mbsoftwaresolutions.com

http://fabmate.com

http://twitter.com/mbabcock16

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/4E6923F1.4060703@mbsoftwaresolutions.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 MB Software Solutions, LLC
Back to top
RE: Ole Web Browser control

Author: Kent Belan

Posted: 2011-09-08 16:40:04   Link

I found a very interesting article at

http://www.berezniker.com/content/pages/visual-foxpro/view-pdf-vfp-form

But I can't get it to work. The AdjustPDFView method always goes to the

catch section form me.

So close ... Yet so far away ...

-----Original Message-----

From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf

Of MB Software Solutions,LLC

Sent: Thursday, September 08, 2011 4:22 PM

To: ProFox Email List

Subject: Re: Ole Web Browser control

On 9/8/2011 3:12 PM, Kent Belan wrote:

> Hello,

>

> I have a form that I use to preview a PDF document before it can be

printed.

>

> I am using the OLE Shell Explorer 2 control to display the PDF and it

> displays in the Adobe reader.

>

> It works great, but if the form is full screen the Adobe reader

> displays the PDF at 150%

>

> Does anyone know of a way to talk to the Adobe control to force the

> document to always display at 100% ?

Hi Kent,

Whenever I click on PDFs in my emails here at the day gig, they always open

at 147%. Go figure. Wish I knew how to change that too (but never make the

time to solve the mystery). I'll watch this thread with personal interest

too!

--

Mike Babcock, MCP

MB Software Solutions, LLC

President, Chief Software Architect

http://mbsoftwaresolutions.com

http://fabmate.com

http://twitter.com/mbabcock16

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/ADFA7CCF5EED47CC843183DC818D94FF@LaptopW7

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Kent Belan
Back to top
RE: Ole Web Browser control

Author: Jarvis, Matthew

Posted: 2011-09-08 18:23:20   Link

> -----Original Message-----

> From: profoxtech-bounces@leafe.com [mailto:profoxtech-bounces@leafe.com]

> On Behalf Of Kent Belan

> Sent: Thursday, September 08, 2011 1:40 PM

> To: profoxtech@leafe.com

> Subject: RE: Ole Web Browser control

>

> I found a very interesting article at

> http://www.berezniker.com/content/pages/visual-foxpro/view-pdf-vfp-form

>

> But I can't get it to work. The AdjustPDFView method always goes to the

> catch section form me.

>

> So close ... Yet so far away ...

I gave this just a passing look, but might be helpful to see:

http://forums.adobe.com/thread/488335

and I found this:

Many of these parameters can be passed to the following core API functions (see the Acrobat and PDF Library API Reference for details):

AVDocOpenFromFileWithParamString

AVDocOpenFromASFileWithParamString

AVDocOpenFromPDDocWithParamString

●When opening a PDF document from a command shell, you can pass the parameters to the open command using the /A switch using the following syntax:

<path to Acrobat> /A "<open parameter>=OpenActions" "<path to PDF file>"

For example:

Acrobat.exe /A "zoom=1000=OpenActions" "C:¥example.pdf"

Thanks,

Matthew Jarvis || Business Systems Analyst

IT Department

McKenzie-Willamette Medical Center

1460 G Street, Springfield, OR 97477 || Ph: 541-744-6092 || Fax: 541-744-6145

--------------------------------------------------------------------------

Disclaimer: This electronic message may contain information that is

Proprietary, Confidential, or legally privileged or protected. It

is intended only for the use of the individual(s) and entity named

in the message. If you are not an intended recipient of this

message, please notify the sender immediately and delete the

material from your computer. Do not deliver, distribute or copy

this message and do not disclose its contents or take any action in

reliance on the information it contains.

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/69F310C05DD83C48A84BA3769CE1ECF80598BB41@TNTRIEXEVS02.triadhospitals.net

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Jarvis, Matthew
Back to top
RE: Ole Web Browser control

Author: Richard Kaye

Posted: 2011-09-09 09:35:26   Link

I had similar behavior and you made me curious enough to look. Try Edit->Preferences->Page Display->Zoom. Now how you manipulate that for an individual document via automation, I don't know because I haven't worked with the Reader object at all. But the Object Browser in VFP might help solve that mystery.

--

rk

-----Original Message-----

From: profoxtech-bounces@leafe.com [mailto:profoxtech-bounces@leafe.com] On Behalf Of MB Software Solutions, LLC

Sent: Thursday, September 08, 2011 4:22 PM

To: profoxtech@leafe.com

Subject: Re: Ole Web Browser control

On 9/8/2011 3:12 PM, Kent Belan wrote:

> Hello,

>

> I have a form that I use to preview a PDF document before it can be printed.

>

> I am using the OLE Shell Explorer 2 control to display the PDF and it

> displays in the Adobe reader.

>

> It works great, but if the form is full screen the Adobe reader

> displays the PDF at 150%

>

> Does anyone know of a way to talk to the Adobe control to force the

> document to always display at 100% ?

Hi Kent,

Whenever I click on PDFs in my emails here at the day gig, they always open at 147%. Go figure. Wish I knew how to change that too (but never make the time to solve the mystery). I'll watch this thread with personal interest too!

--

Mike Babcock, MCP

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/DF1EEF11E586A64FB54A97F22A8BD04419F2A66EC7@ACKBWDDQH1.artfact.local

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Richard Kaye
Back to top
RE: Ole Web Browser control - Fixed

Author: Kent Belan

Posted: 2011-09-09 13:37:31   Link

Hello Matthew,

Thanks for the links. I got it working with the

http://forums.adobe.com/thread/488335 article.

Here is the code I used:

lcFile = 'test.pdf'

Thisform.WebBrowser.Navigate(lcFile + '#zoom=100')

Thanks for your help,

Kent

-----Original Message-----

From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf

Of Jarvis, Matthew

Sent: Thursday, September 08, 2011 6:23 PM

To: profox@leafe.com

Subject: RE: Ole Web Browser control

> -----Original Message-----

> From: profoxtech-bounces@leafe.com

> [mailto:profoxtech-bounces@leafe.com]

> On Behalf Of Kent Belan

> Sent: Thursday, September 08, 2011 1:40 PM

> To: profoxtech@leafe.com

> Subject: RE: Ole Web Browser control

>

> I found a very interesting article at

> http://www.berezniker.com/content/pages/visual-foxpro/view-pdf-vfp-for

> m

>

> But I can't get it to work. The AdjustPDFView method always goes to

> the catch section form me.

>

> So close ... Yet so far away ...

I gave this just a passing look, but might be helpful to see:

http://forums.adobe.com/thread/488335

and I found this:

Many of these parameters can be passed to the following core API functions

(see the Acrobat and PDF Library API Reference for details):

AVDocOpenFromFileWithParamString

AVDocOpenFromASFileWithParamString

AVDocOpenFromPDDocWithParamString

●When opening a PDF document from a command shell, you can pass the

parameters to the open command using the /A switch using the following

syntax:

<path to Acrobat> /A "<open parameter>=OpenActions" "<path to PDF file>"

For example:

Acrobat.exe /A "zoom=1000=OpenActions" "C:\example.pdf"

Thanks,

Matthew Jarvis || Business Systems Analyst IT Department McKenzie-Willamette

Medical Center 1460 G Street, Springfield, OR 97477 || Ph: 541-744-6092 ||

Fax: 541-744-6145

--------------------------------------------------------------------------

Disclaimer: This electronic message may contain information that is

Proprietary, Confidential, or legally privileged or protected. It is

intended only for the use of the individual(s) and entity named in the

message. If you are not an intended recipient of this message, please notify

the sender immediately and delete the material from your computer. Do not

deliver, distribute or copy this message and do not disclose its contents or

take any action in reliance on the information it contains.

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/AF53DC3622CF4930B250FF241C7FD5CC@LaptopW7

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Kent Belan