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.htmlI 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