|
-
Aug 8th, 2005, 12:54 AM
#1
Thread Starter
Member
How to stop page ejection after printing?
Hello everybody.
Can someone please tell me how to stop the page ejecting from the printer after the printing of the print document has completed?
I use VB.Net and have tried setting the HasMorePages of the PrintPageEventArgs to false. However, it does not work. I have to print on a paper roll, so I cannot let the printer push the paper forward to complete the page height.
Here is the code sample.
pDoc is the PrintDocument object.
VB Code:
Private sub pDoc_PrintPage(sender as object, e as PrintPageEventArgs) Handles pDoc.PrintPage
'Printing Code goes here.
'After the printing is finished
e.HasMorePages = False
End Sub
Please help me. It is urgent.
Thanks in advance.
NIKHIL
-
Aug 8th, 2005, 01:16 AM
#2
Re: How to stop page ejection after printing?
You may be able to change the paper size using the PrinterSettings or PageSettings class, but that's just specualtion.
-
Aug 8th, 2005, 03:12 AM
#3
Re: How to stop page ejection after printing?
Hope we're not talking about a laser printer here.
I don't live here any more.
-
Aug 8th, 2005, 12:48 PM
#4
Thread Starter
Member
Re: How to stop page ejection after printing?
You're right Woss
This is not for a laser printer, but for a Dot Matrix Printer.
Thanks for considering.
Please help me out.
NIKHIL
-
Aug 8th, 2005, 01:15 PM
#5
Re: How to stop page ejection after printing?
I have tried using dot matrix printers before in .net and its a nightmare if its an old printer (mine is about 15 years old and has no windows drivers). Does your have drivers and stuff?
I don't live here any more.
-
Aug 8th, 2005, 06:57 PM
#6
Thread Starter
Member
Re: How to stop page ejection after printing?
Yes, it is an Epson LX-300 Printer and has got all the required stuff (drivers) for Windows.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|