![]() |
|
#1
|
|||
|
|||
![]() 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. |
#2
|
||||
|
||||
![]()
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] |
#3
|
|||
|
|||
![]() Quote:
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 |
#4
|
||||
|
||||
![]()
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
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
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? |
#6
|
||||
|
||||
![]()
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] |
#7
|
|||
|
|||
![]()
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. |
#8
|
||||
|
||||
![]() Quote:
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] |
#9
|
|||
|
|||
![]()
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. |
#10
|
||||
|
||||
![]() Quote:
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.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#11
|
|||
|
|||
![]()
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 |
#12
|
||||
|
||||
![]()
Hi verbster,
See attached.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Building blocks in 2007 | derohanes | Office | 6 | 03-05-2011 01:31 PM |
![]() |
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 |
![]() |
BillTheAdmin | Project | 2 | 12-05-2005 10:20 AM |