Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2007

Tip: Looking for answers? Try searching our database.

Print 2 pages on one

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dim - 19 Jul 2007 11:02 GMT
Hi all,

I've recorded the belowmentioned macro in order to print 2 pages on on page
to our printers, but it seems that this is not always working. Sometimes it
prints ok, sometimes it prints blank pages... i thought this could have been
due to printer drivers, but i've been trying several ones (and different
printers) without success. I have the impression it's something in the
document itself which triggers the printer to print correctly or not but i'm
not sure..
Maybe there is another way to print 2 pages to one page than using this code:?

Sub Print2on1()
'
' Print2on1 Macro
'
   Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
       wdPrintDocumentWithMarkup, Copies:=1, Pages:="",
PageType:=wdPrintAllPages, _
       Collate:=True, Background:=True, PrintToFile:=False,
PrintZoomColumn:=2, _
       PrintZoomRow:=1, PrintZoomPaperWidth:=11907,
PrintZoomPaperHeight:=16839
End Sub

Any suggestions are highly appreciated,
best regards
dim
Jonathan West - 19 Jul 2007 13:57 GMT
> Hi all,
>
[quoted text clipped - 24 lines]
> PrintZoomPaperHeight:=16839
> End Sub

Does your document contain any section breaks? Are those section breaks set
up as "Odd page" or "Even Page" breaks?

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

dim - 19 Jul 2007 14:22 GMT
yes section breaks etc, but don't know how they've been defined, i'll have a
look...

If this is causing it, how do I make sure it will always work..through some
extra code i guess? as i cannot change thousands of docs manually ;-)

thx

dim

> > Hi all,
> >
[quoted text clipped - 27 lines]
> Does your document contain any section breaks? Are those section breaks set
> up as "Odd page" or "Even Page" breaks?
dim - 19 Jul 2007 14:36 GMT
ok i've tested... I had a doc with NO sections breaks... in the page setup,
layout, section start there was "continious"... -> printer printed blank
pages...

I've put the section start to new page -> printer printed the doc with two
pages/sheet = ok

wanted to change it back to continious to  re-reprocude the error and it
doesn't work anymore... it always prints correctly now...

very strange, i don't get it?

> yes section breaks etc, but don't know how they've been defined, i'll have a
> look...
[quoted text clipped - 37 lines]
> > Does your document contain any section breaks? Are those section breaks set
> > up as "Odd page" or "Even Page" breaks?
dim - 19 Jul 2007 15:14 GMT
ok the section part in the setup page is the cause of this behaviour ! if I
put it on next page... no probs at all!!!

i've now added in the macro that it should go to printview and change the
section setup
thanks for the tip !!!
regards
Jonathan West - 20 Jul 2007 10:36 GMT
> ok the section part in the setup page is the cause of this behaviour ! if
> I
[quoted text clipped - 4 lines]
> thanks for the tip !!!
> regards

I wasn't sure precisely what was causing the problem, but I do know that
section breaks can contribute in that area. Glad I was able to point you in
the right general direction!

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.