Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Jun 2005
    Location
    Omaha, Nebraska, USA
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Picture Spacing Problem (XP)

    I'm fairly new to programming for Word, so this may be a simple problem. I have a document generated by the outputto function in Access. It has some assorted text at the top and bottom of each page. Each page is mostly blank in the middle, except for one spot which is the filename of a .jpg file. I've figured out how to use VB to find the filename and insert the actual picture in the same place. However, that throws off the spacing of the rest of the document. I need to know how to do whatever magic is necessary in VB to keep the text below the picture in the same position it was before the insertion. There is sufficient space to contain the picture and all the text on the page. The pictures are provided by the end user and I can't count on the size being constant, just reasonable.

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Picture Spacing Problem (XP)

    By default, Word inserts pictures "inline" with text, just like it was a word in a huge font. To cause the picture to "float" above the text so that it appears in front of your Access report, you can convert the InlineShape to a Shape. At least in theory; I haven't tried it.

  3. #3
    New Lounger
    Join Date
    Jun 2005
    Location
    Omaha, Nebraska, USA
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Picture Spacing Problem (XP)

    I had problems with getting the pic to anchor where I wanted it. Probably something I don't understand well enough yet.
    I ended up just adding a line to the original code to convert the picture from inline to floating after it was inserted.
    That gave me the result I need. Thanks for the help. <img src=/S/cool.gif border=0 alt=cool width=15 height=15>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •