Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web browser control and adobe
Message
From
21/07/2004 15:23:14
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Web browser control and adobe
Miscellaneous
Thread ID:
00926729
Message ID:
00926729
Views:
52
I am using the web browser control and the adobe plug in to display images inside my app. Actually, I'm trying to replace a viewing software with adobe.

I need to be able to display and print pdf's easily.

When I open a pdf that is in landscape format, adobe opens it in portrait, so it's sideways. I need to be able to fit it to the page and rotate it in the correct orientation programatically.

Some time ago, someone here, helped me out with this code:
		**following works intermittenly to rotate and fit to screen
		oShell = Createobject("wscript.shell")
		oShell.SendKeys("^+{+}")
		oShell.SendKeys("^+{0}")
This has a couple problems. It works only twice, then it no longer works, without closing my app completely then re-opening it. Plus it activates a virus scan warining, since it is a script. I could maybe live with the virus scan warning, if I had to.

Any ideas or optional methods?
Reply
Map
View

Click here to load this message in the networking platform