Environment versions
Network:
Windows 2008 Server
>Using the following code my word doc prints in VFP
>
>DECLARE INTEGER ShellExecute ;
>IN SHELL32.DLL ;
>INTEGER nWinHandle,;
>STRING cOperation,;
>STRING cFileName,;
>STRING cParameters,;
>STRING cDirectory,;
>INTEGER nShowWindow
>? ShellExecute(0,"print","c:\what.doc","","",0)
>
>But I get a message
>
>The margins of section 1 are outside the printable area of the page - do you want to continue?
>
>If I say yes it prints fine - how can I stop this message coming up?
Do you get the same warning if you manually perform the same operation? If that's the case, I'm not sure if there is an option to automatically bypass the warning.
Perhaps you might have more success if you'd launch Word and initiate printing through automation?
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only