NEED HELP PLEEEAAAAASSSEEEE ASAP

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey guys,
here is the problem ... i try to print from one printer and its ok (using the driver) .. i try to print from another printer also using the driver and i get the error ...'The data area passed to a system call is too small' which i guess means that no data was sent to the printer .. the question is why would vb.net print from one printer driver ok and not the other ??
i'm using
AddHandler PrintDocument1.PrintPage, AddressOf Me.PrintDocument1_PrintPag
PrintDocument1.PrinterSettings.PrinterName = "[name of the driver]
PrintDocument1.Print(

Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPag

e.Graphics.DrawString('Print me please!!", New Font("Courier New", 12, FontStyle.Bold), Brushes.Black, 0, YPos
end su

I NEED HELP GUYS ...
THANX IN ADVANCE
 
Will,

maybe it has nothing to do with your program. See:
http://support.microsoft.com/default.aspx?scid=kb;en-us;273023

Klaus

Will said:
hey guys,
here is the problem ... i try to print from one printer and its ok (using
the driver) .. i try to print from another printer also using the driver and
i get the error ...'The data area passed to a system call is too small'
which i guess means that no data was sent to the printer .. the question is
why would vb.net print from one printer driver ok and not the other ???
i'm using:
AddHandler PrintDocument1.PrintPage, AddressOf Me.PrintDocument1_PrintPage
PrintDocument1.PrinterSettings.PrinterName = "[name of the driver]"
PrintDocument1.Print()

Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object,
ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles
PrintDocument1.PrintPage
e.Graphics.DrawString('Print me please!!", New Font("Courier New", 12,
FontStyle.Bold), Brushes.Black, 0, YPos)
 
Back
Top