A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Visio
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Visio : how can I print all of my background drawings ?



 
 
Thread Tools Display Modes
  #1  
Old August 4th, 2008, 02:46 PM posted to microsoft.public.visio.general
Me
external usenet poster
 
Posts: 193
Default Visio : how can I print all of my background drawings ?

By default when you print, you are printing your foreground drawings. I want
to print all of my backgrounds so I can use them as a reference. Is there a
way to tell it to 'print the backgrounds' ?
  #2  
Old August 4th, 2008, 05:44 PM posted to microsoft.public.visio.general
John... Visio MVP
external usenet poster
 
Posts: 900
Default Visio : how can I print all of my background drawings ?

"mE" wrote in message
...
By default when you print, you are printing your foreground drawings. I
want
to print all of my backgrounds so I can use them as a reference. Is there
a
way to tell it to 'print the backgrounds' ?



The only way would be to create an empty foreground page for each background
page and attach the background page to it.
It is possible to automate this process using VBA.
Create an empty foreground page
For each background page, attach it to the foreground page and print.
Delete the foreground page.

John... Visio MVP

  #3  
Old August 4th, 2008, 06:11 PM posted to microsoft.public.visio.general
Me
external usenet poster
 
Posts: 193
Default Visio : how can I print all of my background drawings ?

I know nothing about VBA - can i get an example of this ?

thanks
  #4  
Old August 4th, 2008, 07:36 PM posted to microsoft.public.visio.general
John... Visio MVP
external usenet poster
 
Posts: 900
Default Visio : how can I print all of my background drawings ?

"mE" wrote in message
...
I know nothing about VBA - can i get an example of this ?

thanks



Try:
Sub PrintBackgroundPages()

' Create a foreground page and loop through each background page
' Attach a background page and then print

Dim vsoPage As Visio.Page
Dim vsoBackPage As Visio.Page

' Create a temporary foreground page

Set vsoPage = ActiveDocument.Pages.Add
vsoPage.Background = False

' Loop through the background page

For Each vsoBackPage In ActiveDocument.Pages
If vsoBackPage.Background = True Then
Debug.Print vsoBackPage.Name
vsoPage.BackPage = vsoBackPage.Name
Application.ActiveDocument.PrintOut PrintRange:=visPrintCurrentPage
End If
Next vsoBackPage

vsoPage.Delete True ' Remove the temporary foreground page

End Sub

Turn on Developer Mode
Go to VBA
and paste the above into a module


John... Visio MVP

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:39 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.