Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-03-2011, 04:28 PM
verbster verbster is offline how to use Building Blocks or  controls to add a page Windows XP how to use Building Blocks or  controls to add a page Office 2007
Novice
how to use Building Blocks or  controls to add a page
 
Join Date: Nov 2008
Posts: 7
verbster is on a distinguished road
Default how to use Building Blocks or controls to add a page

I'm trying to make a Word template that will contain two photo fields one above the other) from the (Development) photo control content options. I like the way these fields go straight to the "my Pictures" area when clicked.

Under each photo field, I'll put a place for a short description of the photo using the text content control option.

The problem i'm having is finding a way to use a key combination (or any other way) via the Building Blocks or Controls (or whatever) to create a new page should I need it for time when i have more than two photos that need to go into the document The command would create a new page with the controls fields ready for new pictures and text.

(I'd love to be able to put more than two photos per page, but they get too small, and I don't think there's a way to enlarge them to original size by clicking on them in Word, is there . . . especially because of the description?)

Have spent many hours looking and trying to do this. Sure hope someone here can help me out.

Thanks.
Reply With Quote
  #2  
Old 02-03-2011, 05:05 PM
macropod's Avatar
macropod macropod is offline how to use Building Blocks or  controls to add a page Windows 7 32bit how to use Building Blocks or  controls to add a page Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi verbster,

You shouldn't need to - Word should create the new page automatically if there's more content than will fit on the current page.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 02-03-2011, 06:37 PM
verbster verbster is offline how to use Building Blocks or  controls to add a page Windows XP how to use Building Blocks or  controls to add a page Office 2007
Novice
how to use Building Blocks or  controls to add a page
 
Join Date: Nov 2008
Posts: 7
verbster is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Hi verbster,

You shouldn't need to - Word should create the new page automatically if there's more content than will fit on the current page.
Sure, Word will always create a new page if it needs more room, but it creates a blank page. I need a way to create another page in the template that contains the pre-made areas for the photos and text.

Here's the only example I have, but I don't know how it was done:

http://office.microsoft.com/en-us/te...030004364.aspx
Reply With Quote
  #4  
Old 02-03-2011, 07:50 PM
macropod's Avatar
macropod macropod is offline how to use Building Blocks or  controls to add a page Windows 7 32bit how to use Building Blocks or  controls to add a page Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi verbster,

The document you referred to has a single table with cells containing Picture and Rich Text Content Controls, but it has no facility for adding a new page full of these.

Assuming your document is constructed with a table containing rows for the Picture and Rich Text Content Controls, the following macro will generate a new pair of rows with these same controls. You'll probably need to redefine the row sizes to suit your needs. Note that the code uses both the CentimetersToPoints and InchesToPoints conversions - you can use either (or neither).
Code:
Sub Demo()
Dim ocel As Cell
With ActiveDocument.Tables(1)
  If MsgBox("Add a new row?", vbYesNo, "Picture Manager") = vbYes Then
    .Range.Rows.Add
    .Rows.Last.Height = CentimetersToPoints(5.75)
    For Each ocel In .Rows.Last.Cells
      ocel.Range.ContentControls.Add (wdContentControlPicture)
    Next
    .Range.Rows.Add
    .Rows.Last.Height = InchesToPoints(0.25)
    For Each ocel In .Rows.Last.Cells
      With ocel.Range.ContentControls
        .Add wdContentControlRichText
        With .Item(1)
          .Tag = "Photo Caption"
          .PlaceholderText = "Type image caption here."
        End With
      End With
    Next
  End If
End With
End Sub
You could also modify the code with a loop to insert a whole page full of these. As coded, the macro already takes care of however many columns there are in the table.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 02-03-2011, 10:50 PM
verbster verbster is offline how to use Building Blocks or  controls to add a page Windows XP how to use Building Blocks or  controls to add a page Office 2007
Novice
how to use Building Blocks or  controls to add a page
 
Join Date: Nov 2008
Posts: 7
verbster is on a distinguished road
Default

Yikes! Thanks for your help, but it's way beyond me. For some reason, I thought this was much easier . . . just a mattter of controls and Quick parts. I had no idea it involved code, which I know nothing about.

Did the person who made the photo contact sheet in the link I included use similar code? Is that how she made it possible to create a new photo contact page by clicking "New Contact Page" under Quick Parts?
Reply With Quote
  #6  
Old 02-03-2011, 11:28 PM
macropod's Avatar
macropod macropod is offline how to use Building Blocks or  controls to add a page Windows 7 32bit how to use Building Blocks or  controls to add a page Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi verbster,

I missed the bit about using Quick Parts for adding the new page. To see how to do this, go to:
http://office.microsoft.com/en-us/wo...010214071.aspx
Note that you don't have to create a whole page's content this way, you could add just the required amount for the time being, adding more content as you go. Thus, you could start off your document with enough space for just one image & caption, and let the user add extra rows to the table as needed.

The code I gave you is an alternative approach - and only inserts one pair of rows at a time.

There is no code behind any of the content controls, however, whichever approach you use. When you use a Picture Content Control, the Content Control automatically opens the InsertPicture dialogue box.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 02-04-2011, 11:56 AM
verbster verbster is offline how to use Building Blocks or  controls to add a page Windows XP how to use Building Blocks or  controls to add a page Office 2007
Novice
how to use Building Blocks or  controls to add a page
 
Join Date: Nov 2008
Posts: 7
verbster is on a distinguished road
Default

With your help, I have made some progress in this project. Unfortunately, I keep running into small frustrating issues that eat up way too much time.

i've looked for a photo template that would work, but have been unable to find a good pre-made template for photos beyond the linked one i included in this thread . . . and disappointed there wasn't a good explanation of how it was created.

Considering the hours put into this, for what someone skilled in Word could do in 15 minutes, I think I would be better off to just pay someone to make this template. (Any recommendations on where to look?)

I appreciate your help and apologize for not being able to use your advice in a productive manner.
Reply With Quote
  #8  
Old 02-04-2011, 02:31 PM
macropod's Avatar
macropod macropod is offline how to use Building Blocks or  controls to add a page Windows 7 32bit how to use Building Blocks or  controls to add a page Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by verbster View Post
I think I would be better off to just pay someone to make this template. (Any recommendations on where to look?)

I appreciate your help and apologize for not being able to use your advice in a productive manner.
Hi verbster,

I've no idea where you'd go for professional help - I don't even know what country you're in.

No need to apologize; we all need time to become proficient. I've never needed to do the kind of thing you're wanting to do either, so it's a bit of a learning experience for me too.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #9  
Old 02-04-2011, 04:42 PM
verbster verbster is offline how to use Building Blocks or  controls to add a page Windows XP how to use Building Blocks or  controls to add a page Office 2007
Novice
how to use Building Blocks or  controls to add a page
 
Join Date: Nov 2008
Posts: 7
verbster is on a distinguished road
Default

Changing strategies, I think. What do you recommend as a quick way to put a frame or some kind of placeholder for specific sized photos that users can insert photos into.

For example, if i wanted to put two 3x5 areas, one above the other, so a user could insert one photo per 3x5 area (and have the photo resize itself upon insertion), which tool would be best to use?

One last question: Does Word support a way to use thumbnails of photos that will expand when clicked?

Thanks.
Reply With Quote
  #10  
Old 02-04-2011, 10:28 PM
macropod's Avatar
macropod macropod is offline how to use Building Blocks or  controls to add a page Windows 7 32bit how to use Building Blocks or  controls to add a page Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by verbster View Post
Changing strategies, I think. What do you recommend as a quick way to put a frame or some kind of placeholder for specific sized photos that users can insert photos into.

For example, if i wanted to put two 3x5 areas, one above the other, so a user could insert one photo per 3x5 area (and have the photo resize itself upon insertion), which tool would be best to use?

One last question: Does Word support a way to use thumbnails of photos that will expand when clicked?

Thanks.
Hi verbster,

If you use fixed-size table cells, all a user would need to do to create a new one to insert a photo into is to press tab from the end of the last cell. That'll generate a new table row with the same dimensions as the old one.

As for the thumbnails, you could mimick that with a macro and by placing the images inside a MACROBUTTON field. Not something I'd be suggesting for the user to do; it's more like the kind of thing a developer might do to allow thumbnail toggling in a finished document. See attached.
Attached Files
File Type: zip PicSizer.zip (112.0 KB, 11 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #11  
Old 03-05-2011, 12:04 PM
verbster verbster is offline how to use Building Blocks or  controls to add a page Windows XP how to use Building Blocks or  controls to add a page Office 2007
Novice
how to use Building Blocks or  controls to add a page
 
Join Date: Nov 2008
Posts: 7
verbster is on a distinguished road
Default

Still not successful creating a two-photo contact sheet. However, I found a 12 photo contact sheet template that is exactly what I'm looking for, only in a 2-photo version. Any idea where or how I can get detailed instructions on how this sheet was built, particularly the text that inserts a new page (and deletes itself)?

Tried to find a way to contact the contributor, Beth Melton, but failed.

http://office.microsoft.com/en-us/te...030004364.aspx
Reply With Quote
  #12  
Old 03-06-2011, 04:05 PM
macropod's Avatar
macropod macropod is offline how to use Building Blocks or  controls to add a page Windows 7 32bit how to use Building Blocks or  controls to add a page Office 2000
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi verbster,

See attached.
Attached Files
File Type: zip Contact Sheet (2).zip (17.3 KB, 16 views)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building blocks in 2007 derohanes Office 6 03-05-2011 01:31 PM
how to use Building Blocks or  controls to add a page hide ghosted controls designer PowerPoint 1 01-03-2011 07:11 AM
Pagination/Building Blocks problem ijblack Word 0 12-23-2010 06:06 PM
Word 2007 Building Blocks - difficult to update... Ian Hunneybell Word 0 10-19-2009 06:27 AM
how to use Building Blocks or  controls to add a page Can't Download Controls BillTheAdmin Project 2 12-05-2005 10:20 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:40 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft