NEED HELP PLEEEAAAAASSSEEEE ASAP

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
 
K

Klaus Löffelmann

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top