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 / February 2006

Tip: Looking for answers? Try searching our database.

Print Macro Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CJP - 24 Feb 2006 17:35 GMT
We have a problem in that if you have a 2 page document on screen in print
layout view showing the top of the first page but with the cursor in the
second page and we then click on the print macro it prints the first page.  
If we scroll so that only the 2nd page is in view on the screen and use the
same macro it prints the 2nd page fine.  (the macro is a very very basic
print current page nothing special)

We have tested this on 10 machines and it has the same fault on 8 of them
but we can not work out what the difference is or why it happens.  It is not
a macro problem as the same macro does work on 2 of the other computers with
both pages in view on screen.

Has anyone ever come across this problem before of indeed any assistance
would be greatly appreciated.

Thanks in advance.
Ed - 25 Feb 2006 19:33 GMT
Hi CJP,

I don't know what causes this behaviour but a possible work-around if
required seems to be to replace
    Range:=wdPrintCurrentPage
    Pages:=""
in the Application.PrintOut command with
   Range:=wdPrintRangeOfPages
   Pages:=CStr(Selection.Information(wdActiveEndPageNumber)).

It seems to have worked for Tabasco Ed (no relation) from one of whose
replies I snaffled it, and (so far) it works for me.

Cheers.

Ed

> We have a problem in that if you have a 2 page document on screen in print
> layout view showing the top of the first page but with the cursor in the
[quoted text clipped - 12 lines]
>
> Thanks in advance.
CJP - 27 Feb 2006 10:01 GMT
Thanks ED

That seems to have fixed the problem, would be nice if Microsoft fixed the
bug though.  Thanks again

> Hi CJP,
>
[quoted text clipped - 38 lines]
> >
> > Thanks in advance.

Rate this thread:






 
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.