Share via

Inserting pictures into a restricted document

Anonymous
2012-07-03T21:21:59+00:00

I am trying to create a form in which page 1 is restricted to filling in form fields, while page 2 has a fixed width table that the user can drag/drop pictures into.

If I insert a section break at the end of page 1, and restrict the document to filling forms, selecting ONLY section 1, you cannot insert a picture into the table, even though it's supposedly not restricted.

Unrestricted the document, you can insert fine.

I even tried creating a simple two page document. Section 1 protected, section 2 not, and you cannot insert a picture into the supposed unrestricted page. Very frustrating

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2012-07-17T09:55:36+00:00

The code from the link in my first reply (http://www.eileenslounge.com/viewtopic.php?f=26&t=4450) should enable formatting a picture if it's in an unprotected section.

Was this answer helpful?

0 comments No comments

Answer accepted by question author

Anonymous
2012-07-17T09:50:47+00:00

Take a look at http://www.gmayor.com/photo_gallery_template.html which was designed with this task in mind - it should be possible to graft your form on to the gallery, or create the form and gallery separately and combine them as a PDF or at print time.

Greg Maxey, with whom I frequently collaborate, has developed an add-in from my template, which features a similar set of functions (and one of two other things). I have only just received his latest updates, but you can see his take on things at http://gregmaxey.mvps.org/word_tip_pages/photo_gallery_add_in.html

I personally wanted this application to be in the form of a document template, so the add-in version will be hosted on his site rather than mine.

Was this answer helpful?

0 comments No comments

7 additional answers

Sort by: Most helpful
  1. Anonymous
    2012-07-04T15:44:13+00:00

    Eileen's solution worked, sort of (my fault):

    With that code inserted into the document, I can insert a picture into the table using Insert | Picture. In fact, if I set up the document with Section 1 protected and Section 2 not protected, it works.

    However, what I should have indicated is that we wanted to drag the files from a folder, and drop them into the sections of a table.

    We have to do a property condition report each week; we have 10 properties. Each property can have between 1-6 photos that are taken weekly. What I was trying to do was to drag-and-drop a photos into a table from the folder where the photos are stored.

    I tried to add '    ActiveDocument.Unprotect; or option.unprotect to the code, but I do not know VB at all.

    One thing that I did learn; if you create a table, and do Ctrl-Alt-U to expand the table to the margins, then set the Insert property to Inline with text, the photos re-size themselves to the table cell.

    I appreciate the help!

    Bob Galivan

    Was this answer helpful?

    0 comments No comments
  2. Paul Edstein 82,861 Reputation points Volunteer Moderator
    2012-07-03T23:45:10+00:00

    An alternative approach is to leave the table restricted and, instead of trying to have the ability to insert the pictures there, use either:

    • an INCLUDEPICTURE field that points to a blank picture, which you replace with your desired picture (giving it the same name as the blank one); or

    • an INCLUDETEXT field that points to a blank document, into which you insert the required picture.

    Both approaches are limited in that, unless you keep the documents in separate folders and use relative path addressing for the fields (see http://windowssecrets.com/forums/showthread.php/102080-Relative-Paths-in-Word-Fields-(All)?p=584769&viewfull=1#post584769), only one source picture/document can be used.

    Was this answer helpful?

    0 comments No comments
  3. HansV 462.6K Reputation points
    2012-07-03T21:37:57+00:00

    Was this answer helpful?

    0 comments No comments