469,625 Members | 1,720 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

Printing on Dot-Matrix Printer, Stop and Restart

Hi,

i have made a project for printing fee receipt. Using Windows-XP, VBasic 6.0 & Ms-Access-97. i have designed a form for prinring receipts. m paper-size is 5x10. Two copies of bills in this size. one for student and other for fee clerk. while printing on dot-matrix, form get printed, but size is A4. My problem is
* how to change size to 5x10 (exactly half of printed paper width-wise)
* after printing on this size, stop the printer and not to eject
* Restarting fee receipt printing for next student on paper.

send code snippet.

Please ans. me and thanks
Jul 5 '07 #1
9 7426
Killer42
8,435 Expert 8TB
I think you should try playing with the properties of the Printer object in VB. It has properties like PaperSize, PaperBin and so on, which are probably relevant to your situation.
Jul 6 '07 #2
How u print the data through printer? using print #1 method or printer.print method?. If ur data is in english language, u will not get any problem, try print #1 method, open LPT1 (connect yr printer in LPT port) in write mode and transfer the data through print #1 method, everything will work, u will get speed and control over printer.
Jul 7 '07 #3
Hi,

i have made a project for printing fee receipt. Using Windows-XP, VBasic 6.0 & Ms-Access-97. i have designed a form for prinring receipts. m paper-size is 5x10. Two copies of bills in this size. one for student and other for fee clerk. while printing on dot-matrix, form get printed, but size is A4. My problem is
* how to change size to 5x10 (exactly half of printed paper width-wise)
* after printing on this size, stop the printer and not to eject
* Restarting fee receipt printing for next student on paper.

send code snippet.

Please ans. me and thanks




Thanks Sir,

i will apply your suggestions and inform you soon
Jul 7 '07 #4
How u print the data through printer? using print #1 method or printer.print method?. If ur data is in english language, u will not get any problem, try print #1 method, open LPT1 (connect yr printer in LPT port) in write mode and transfer the data through print #1 method, everything will work, u will get speed and control over printer.


Thanks Sir,

i will do that and reply you what happened,

ok bye.
Jul 7 '07 #5
Hi,

i have made a project for printing fee receipt. Using Windows-XP, VBasic 6.0 & Ms-Access-97. i have designed a form for prinring receipts. m paper-size is 5x10. Two copies of bills in this size. one for student and other for fee clerk. while printing on dot-matrix, form get printed, but size is A4. My problem is
* how to change size to 5x10 (exactly half of printed paper width-wise)
* after printing on this size, stop the printer and not to eject
* Restarting fee receipt printing for next student on paper.

send code snippet.

Please ans. me and thanks


HI
I M UTPAL


CAN U TAL ME HOW CAN WE DONE IN VB DOS PRINTING CASH RECEIPT
PRINTER AUTOMATICELY EJECT AND INISILYSE THE PRINTER
CAH U TALE ME ABOUT THER CODE.
Apr 10 '08 #6
3
hi, can you show that code on this forum so we can also know about print#1 method or printer.print method
please ... because i have same trouble
Aug 6 '09 #7
How u print the data through printer? using print #1 method or printer.print method?. If ur data is in english language, u will not get any problem, try print #1 method, open LPT1 (connect yr printer in LPT port) in write mode and transfer the data through print #1 method, everything will work, u will get speed and control over printer.
hi, can you show that code on this forum so we can also know about print#1 method or printer.print method
please ... because i have same problem

thanks
Aug 6 '09 #8
CyberSoftHari
487 Expert 256MB
@Gurbinder Kaur
You can code like this,
Expand|Select|Wrap|Line Numbers
  1.  
  2. On Error GoTo ErrTrap
  3.        Open LPT1 For Output As #1
  4.         Write #1, PrintString1
  5.         Write #1, PrintString2
  6.     Close #1
  7. 'exit method
  8. ErrTrap:
  9.     MsgBox Err.Description, vbCritical + vbOKOnly
  10.  
Pass PrintStrings between paper size.
Aug 6 '09 #9
Thanks about your response ...
But there is more complicate situation on my form.
I have data in subform and mainform, for example:

On mainform:
---------------------------------------------------------
Date: 08/13/2009 Name: Andrew
---------------------------------------------------------
On subform:
---------------------------------------------------------
Item 1
Item 2
Item 3
...
...
---------------------------------------------------------

What kind of syntax that i can use for that situation? (print #1 method or printer.print method)

Actually I already have the report for that form but the problem is the printer can't be stop eject after print for last line on dot matrix printer then make long distance from last line to end of paper size. Can I just stop the printer eject after the last line with VBA?
Aug 7 '09 #10

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

24 posts views Thread by Markus Ernst | last post: by
1 post views Thread by Dave Quigley[work] | last post: by
3 posts views Thread by Chrisitiaan | last post: by
5 posts views Thread by John Bowman | last post: by
1 post views Thread by Dan Bass | last post: by
2 posts views Thread by Steffen Loringer | last post: by
1 post views Thread by Nick | last post: by
1 post views Thread by Uncle_Albert | last post: by
3 posts views Thread by Jay | last post: by
10 posts views Thread by sophie_newbie | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.