#121847 - 2004-06-25 09:39 PM
Sending a file to printer
|
futte
Fresh Scripter
Registered: 2002-07-02
Posts: 49
Loc: Denmark
|
Hi everybody
I have found thes code in the UDF libaray : function PrintTo($_file,$_printer) dim $,$_ $_=split($_file,"\") if ubound($_) $_file=$_[ubound($_)] endif $_[ubound($_)]="" $_=join($_) $=createobject("shell.application") $.ShellExecute($_file, $_printer, $_, "printto", 0) exit @error endfunction
and tried it, but there are three things, if i'm sending a PDF file to a printer it also starts Acrobat reader and show the file there, Why ?
And one more thing if don't delete these 4 lines in the code, it wont work, what does these 4 lines do ? $_=split($_file,"\") if ubound($_) $_file=$_[ubound($_)] endif $_[ubound($_)]="" $_=join($_)
And the last thing, what does these two lines in the code means :
$=createobject("shell.application") $.ShellExecute($_file, $_printer, $_, "printto", 0)
Hope anybody can help me
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Henriques)
and 2516 anonymous users online.
|
|
|