PAPER EJECTION AFTER PRINTING

Iam using printer object for printing, iam using the following code

Printer.print "..."
.
.
.
Printer.Enddoc

Printing is fine, but after enddoc the paper advances to next page.
My requirement is i want to remain in the last line of print & 
proceed printing in the same page ...
parthicapsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TimCotteeHead of Software ServicesCommented:
Then don't issue the .enddoc line, this command ends the current document and will eject the page as you have noticed.
0
juttaCommented:
If you want to print more on the same page, simply omit the "Printer.Enddoc"


HTH

Jutta
0
TimCotteeHead of Software ServicesCommented:
sounds like an echo! I just said that!
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

KDivadCommented:
Yep.
parthicaps, if you like the solution then you should give the points to TimCottee. jutta should not have posted TimCottee's comment as an answer.
0
parthicapsAuthor Commented:
But Printing is not started before
giving ENDDOC. I want the printing
to continue after each print statement.
0
mcriderCommented:
You're right, the print job is not released to the printer from VB until you execute the ENDDOC.  The only way to accomplish this is to keep track of what you're putting on a page, then call ENDDOC when you have filled the page... Instead of at the end of the document.

Hope this helps...

Cheers!
0
ackid32Commented:
There is another way to adjust the size of the paper. There u calculate the lines before print and adjust the paper size.
0
parthicapsAuthor Commented:
Is there any another method to do this.
Iam printing label after each entry
of 4 lines from the user... Pl.
suggest me a better solution.
0
mcriderCommented:
Sorry, but Printer.EndDoc is the only method you can execute that will release the print job from VB and send it to the printer...  You're not going to find another way using the printer object.


Cheers!
0
parthicapsAuthor Commented:
i want to print just 10 lines, how
to adjust the paper size before printing
0
mcriderCommented:
See the help page on the PaperSize Property of the Printer Object.

Basically, you set the Printer.Height to the paper height (in twips) and set the Printer.PaperSize to vbPRPSUser

User defined paper sizes may not work on all printers...


Cheers!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.