473,386 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

NEED HELP PLEEEAAAAASSSEEEE ASAP

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
Nov 20 '05 #1
2 1788
Will,

maybe it has nothing to do with your program. See:
http://support.microsoft.com/default...b;en-us;273023

Klaus

"Will" <an*******@discussions.microsoft.com> schrieb im Newsbeitrag
news:D3**********************************@microsof t.com...
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) end sub

I NEED HELP GUYS ....
THANX IN ADVANCE

Nov 20 '05 #2
Will,

maybe it has nothing to do with your program. See:
http://support.microsoft.com/default...b;en-us;273023

Klaus

"Will" <an*******@discussions.microsoft.com> schrieb im Newsbeitrag
news:D3**********************************@microsof t.com...
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) end sub

I NEED HELP GUYS ....
THANX IN ADVANCE

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Philip D Heady | last post by:
I'm in need of a good PHP programmer to help me with my lodgings website asap. Someone who can work on it during the day for a few hrs while I'm at work would be great. Prefer they live in USA...
1
by: whisper | last post by:
Medium/small site with mod_python and sqllite or mySQL running Python 2.3.3 or later on Apache 2.x. I can do the python and CGI, but might need a _little_ hand holding for the rest. Will also...
2
by: ratedr1 | last post by:
I am currently trying to label rings (jewelry). They make specialized tags (shaped like a butterfly, barbell, dumbell, etc) for this purpose, the label goes through the ring, and then the ends...
2
by: Chad A. Beckner | last post by:
Hey all, I have a ASP .NET webpage which contains several panels. When I click a button on the first "panel" page, it postsback to the same page, and I switch the visibility of the panels...
0
by: Will | last post by:
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...
1
by: Massimo Bonanni | last post by:
Hi, I try to implement ASAP protocol in my web service, but I find a very hard problem. I define my SOAP Header: public class Request : SoapHeader {
4
by: briggsie2006 | last post by:
I need to write a program called wc.py. It promts the user to input a filename and outputs the number of lines, words, and, characters in the file. I really need help on this because I don't know...
5
by: Karthik D V | last post by:
Hello All, I have a table like this ID CHARACTER ----------- --------- 1 A 2 A 3 B 4 B
5
by: byrnes | last post by:
We are looking to immediately recruit programmers for a project; we are interested in obtaining proposals ASAP. Will offer favorable compensation. We need immediately, an individual to complete...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.