12-04-14, 07:15 AM
لزيادة الخير بعد
هذا كود لإختيار طابعة افتراضية ( Default )
هذا كود لإختيار طابعة افتراضية ( Default )
PHP كود :
<DllImport("winspool.drv", CharSet := CharSet.Auto, SetLastError := True)> _
Public Shared Function SetDefaultPrinter(Name As String) As Boolean
End Function
Private Sub button1_Click(sender As Object, e As EventArgs)
SetDefaultPrinter("HP Deskjet D1500 series")
End Sub

