printing problem with dotmatrix printer using vb.net

S

sukhsinghin

Hi,
I am trying to print a invoice form with data from dataset using vb.net

and printer is dot matrix. Invoice is a continues paper with
pre-printed headers like First Name, Last Name, SSN# etc. and after
each header their are some blank block like for SSN# 9 small box. I hv
to print each digit in seprate box. When I tried using following code
it print 1st and 2nd digit on correct place but for the next one goes
between two box
ColPosX = 100
RowPosY = 100
ev.Graphics.DrawString(line, printFont, Brushes.Black, ColPosX,
RowPosY, New stringFormat)

I tried to change the ColPosX and RowPosY for digits but for first 2 or

3 digit it print on correct place then rest in b/w the boxs
Can any one help me to do this..
I hv to print complete form/invoice page in box.
Is there any other way to do this...


Waiting..
Thanks
Sk
 
C

Chris

Hi,
I am trying to print a invoice form with data from dataset using vb.net

and printer is dot matrix. Invoice is a continues paper with
pre-printed headers like First Name, Last Name, SSN# etc. and after
each header their are some blank block like for SSN# 9 small box. I hv
to print each digit in seprate box. When I tried using following code
it print 1st and 2nd digit on correct place but for the next one goes
between two box
ColPosX = 100
RowPosY = 100
ev.Graphics.DrawString(line, printFont, Brushes.Black, ColPosX,
RowPosY, New stringFormat)

I tried to change the ColPosX and RowPosY for digits but for first 2 or

3 digit it print on correct place then rest in b/w the boxs
Can any one help me to do this..
I hv to print complete form/invoice page in box.
Is there any other way to do this...


Waiting..
Thanks
Sk

What is your print font? That may cause you problems. How do you have
the printer installed on the computer? You may want to try and do raw
printing to the printer, I had success with my reciept printer that way.

Chris
 
S

sukhsinghin

Hi Chris,
Thanks for reply....I am using Arial and and I tried differnt size like
7, 10...
Can you give me some sample of code...its urgent for me...and you are
the only one who said I had done...
please
Waiting...
Sk
 

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