VBScript problem and i am really stuck...
hi ..
i am trying to write a vbscript file that will be called from some other application with the path to the explorer file. what i am trying to do is open (not necessary) the explorer file and print it automatically.
stdInVal = WScript.StdIn.ReadAll /*path will be stored in stdinval
/* i need the code for printing the explorer file that has been send in stdinval
thanks in advance,
raj
[429 byte] By [
pyuthan] at [2007-11-19 23:57:38]

# 1 Re: VBScript problem and i am really stuck...
Is this going to be part of a web-based application? Does it have to be automatic or can you use JavaScript's print() function once the file is loaded to the browser?
# 2 Re: VBScript problem and i am really stuck...
Actually .. i am working in 4D application(www.4d.com )... i have used the marketblast plugin to preview the html files and what i need is to print the html file previewed in the plugin.
example of what i had done to use a vbscript file:
i have used the vbscript for converting the .doc to html file by calling it as a external file in 4D.i will place the code here..
$s_command:=System folder(System32 Win )+"wscript.exe ""+pm_path_to_file (Structure file)+"finalhtml.vbs\""**`
LAUNCH EXTERNAL PROCESS($s_command;$s_input;$s_output)
here:
# finalhtml.vbs is vbscript file that contains the code to convert the document file to html.
# $s_input contains the path to the document file
# $s_output is the path to converted html file
this software will be shared in the net too...
the code i had given in the main thread is the part of vbscript(i hope u know that)
Problem:>
i want to use the similar way to do printing job. that means i will want to call a vbscript file(may be htnlprint.vbs) that receives the path to html file and prints it