i am traing to print usisng printer (samsung srp-350) for invoice
printing
but nothing so far...
-----------------------
Private Sub Button1_Click_4 (ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
printFont = New Font("Arial", 10)
Dim pd As New PrintDocument
'pd.PrinterSett ings.PrinterNam e = "HP Deskjet D1400
series"
pd.PrinterSetti ngs.PrinterName = "SAMSUNG SRP350"
AddHandler pd.PrintPage, AddressOf pd_PrintPage
pd.Print()
End Sub
Private Sub pd_PrintPage(By Val sender As Object, ByVal ev As
PrintPageEventA rgs)
ev.Graphics.Dra wString("a", printFont, Brushes.Black, 2, 4)
End Sub
--------------------------
it works witht othre pritners but this samsung srp-350 is not working
as a result from the code above i got this exception:
--------------------------
An unhandled exception of type 'System.Compone ntModel.Win32Ex ception'
occurred in system.drawing. dll
Additional information: The data area passed to a system call is too
small
----------------------------------------------
any idea how to sovlve this ?
Comment