Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print PDF reports thru Acrobat ONLY and mail them.
Message
 
To
07/07/2006 06:35:28
Viman Nagar
Zensar Technologies
Pune, India
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01134070
Message ID:
01134456
Views:
20
Hi Ruchi,


The best way to get it done could be using Windows Scripting and "SendKeys" through VFP
Refer Thread#1132552

Else

Create a file with .WSF extension and call from VFP, WSF file would run like any other Executable File
<package>
	<job id="vbs">
		<script language="VBScript">
			
			set WshShell = WScript.CreateObject("WScript.Shell")
			wshshell.appactivate "<TITLE WINDOW NAME>"
			WScript.Sleep 3000
			WshShell.Sendkeys "<FILENAME YOU WISH TO SPECIFY>"
			WshShell.SendKeys "~"
			WScript.Sleep 5000
		</script>
	</job>
</package>
Else

If you needs a complex handling try using any of these two softwares.
WinBatch (http://www.winbatch.com), Its great.
AutoIt (http://www.autoitscript.com/autoit3/) Never used but this is free.In This u can even create exe file and call from vfp without any autoit files, and its small.

Else

A complicated but secured and efficient way would be automating Acrobat using SDK available at the mentioned below location.
http://partners.adobe.com/public/developer/acrobat/sdk/index.html


I hope this could help.

>Hi,
>
>If i set the Acrobat as default printer, it prompts me for the name of the file. Is there a way in Vfp that i could read that name which is given by the user?
>
>Ruchi
--
--
Aashish Sharma
Tele Nos: +1-201-490-5405
Mobile: +91-9821053938
E-Mail:
aashish@aashishsharma.com
write2aashish@gmail.com

You better believe in yourself... if you don't, who else will ?
TODAY is a gift, that's why it's called PRESENT
Previous
Reply
Map
View

Click here to load this message in the networking platform