eric wu
2008-09-15 04:00:42 UTC
Thank you!!
how to modify the codes to allow choosing printer ?
As it stands, the document will print to the default printer without any
options and without opening. Mind you, I only tried it with a single page
document so the possibility exists that with a multi-page document the
dialog will open to allow one to specify the pages to be printed.
If, however, one changes the "PRINT" to "OPEN" then the document opens in
the registered reader (Adobe Reader 8 in my case) and one can use the
normal Print icon on the toolbar to select pages, printer and so on.
Mervyn.
how to modify the codes to allow choosing printer ?
On Tue, 9 Sep 2008 18:41:31 -0500
#define SW_SHOWMINIMIZED 2
#define SW_SHOWMAXIMIZED 3
#define SW_SHOWNOACTIVATE 4
#define SW_SHOW 5
if type("ShellExecute") # "FP"
extern cHandle ShellExecute;
(cHandle, cstring, cstring, cstring, ;
cstring, CINT) shell32 ;
from "ShellExecuteA"
endif
nHandle =
ShellExecute(0,"PRINT",cFileName,null,null,SW_SHOWNOACTIVATE)
Magic! <g>is it possible to write a .prg to send a selected pdf file
#define SW_SHOWNORMAL 1#define SW_SHOWMINIMIZED 2
#define SW_SHOWMAXIMIZED 3
#define SW_SHOWNOACTIVATE 4
#define SW_SHOW 5
if type("ShellExecute") # "FP"
extern cHandle ShellExecute;
(cHandle, cstring, cstring, cstring, ;
cstring, CINT) shell32 ;
from "ShellExecuteA"
endif
nHandle =
ShellExecute(0,"PRINT",cFileName,null,null,SW_SHOWNOACTIVATE)
As it stands, the document will print to the default printer without any
options and without opening. Mind you, I only tried it with a single page
document so the possibility exists that with a multi-page document the
dialog will open to allow one to specify the pages to be printed.
If, however, one changes the "PRINT" to "OPEN" then the document opens in
the registered reader (Adobe Reader 8 in my case) and one can use the
normal Print icon on the toolbar to select pages, printer and so on.
Mervyn.