Link to home
Start Free TrialLog in
Avatar of gaa18
gaa18

asked on

Print a word document in Visual Foxpro

>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?
ASKER CERTIFIED SOLUTION
Avatar of Pavel Celba
Pavel Celba
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial