Wrox Programmer Forums
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 29th, 2006, 05:56 PM
Registered User
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Prevent Page Eject

I have created a form in MS Word and automated it to complete a pre printed form on a dot matrix printer, but I am having trouble preventing the printer from ejecting the whole page. The form is 1/3 of a page, but when the printer complets the form it ejects the entire page. Does anyone know of a way to prevent this?

Old January 3rd, 2007, 03:23 AM
Friend of Wrox
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts


Set the page size or go to custom mode and set the height and width of the page as you needed (take the measurement from the standard scale and note those values in inches and enter them in the desired box)


you can set the page size through the vba code, see the "active document" class for more information.


If you created that form in MS-WORD, that has nothing to do with opened WORD document then follow POINT#1, the printer functionality (paper size and quality) works with the active printer you have set in the printer control panel. CUSTOM mode comes with your printer and provided driver (not all printers have this mode).

I came across such situation when needed to print a sale bill of medical transaction, where the bill layout is 1/3 of the paper. I have to take care of the situation through the VB code (Visual Basic 6.0). So here ways are different but approach is same.

Hope this helps.

With Regards,
Raghavendra Mudugal

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to prevent a web page/window page from copying pradeeppatnaik81 C# 2 April 9th, 2008 03:36 AM
how to prevent page jumping while click on iframe' kathirnk HTML Code Clinic 0 April 16th, 2007 06:39 AM
Eject Users echovue Access VBA 2 March 17th, 2006 10:51 PM
best way to prevent page from caching crmpicco HTML Code Clinic 2 March 17th, 2006 09:02 AM
Page Eject After Grouping Levels Change in Report twsinc Access 0 February 23rd, 2004 01:24 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.