Function for Finding Default Printer
I have a form. I need to find a function for finding default printer on the computer to automatically fill in the input.
<form Name=frmMain action="" method=post>
<table width=300 align=center class=cls_1>
<tr> <%Build_cboReport
%>
<tr><td colspan=2><i><STRONG>Please Provide Criteria:</STRONG></i></td></tr>
<tr><td><STRONG>Sales Order:</STRONG></td><td>
<INPUT type=text size=26 maxlength=20 name=txtsalesorder value=<%=i_sales_order%>>
</td></tr>
<tr><td><STRONG>Pack Slip:</STRONG></td><td>
<INPUT type=text size=26 maxlength=20 name=txtshipid value=<%=i_packing_slip%>>
</td></tr>
<tr><td><STRONG>Printer:</STRONG></td><td>
<INPUT type=text size=26 maxlength=20 name=txtprint value=<%=i_printer%>> </td></tr>
<tr>
</table>
<center>
<br>
<input type=submit title="Submit request" name=cmdSubmit value="Submit Request">
<P>
<%
Main()
%>
|