Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6630543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:25:08+00:00 2026-05-25T22:25:08+00:00

We have a Win32 application that stitches together documents in Word via OLE from

  • 0

We have a Win32 application that stitches together documents in Word via OLE from various fragments held in a database. There is a Word Template with a set of macros designed to ensure that the Word Document cannot be saved to disk but will be saved back to the database. So far, so good. Let us assume the system works.

We have readonly users too. The design is that a different template is used so these users may view documents. This ‘browser’ template has been brain-damaged so that no saving of the file may occur.

I have identified a very specific circumstance when this design fails – when a graphic falls inside a table, the readonly template dumps it outside the table, which results in a total reformat of the whole document – definitely NOT what is required.

By saving a sample document in xml format, once for each case, I have shown that ‘allowincell=false’ appears in the bad document for each affected graphic. It seems reasonable to suppose this is the culprit. The attribute is not mentioned at all in the good version. (Odd because MSDN states ‘false’ is the default value, at least in .NET)

It would help if I understood better the mechanism by which this value is being set. If I had to make a guess I would suppose that the attribute is set to True (i.e not mentioned) because the original user has requested so simply by placing the graphic inside a table.

Ultimately my question is – what is the MINIMAL intervention I can make to solve this specific problem ? Any suggestions as to how this might be approached would be most gratefully received.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:25:09+00:00Added an answer on May 25, 2026 at 10:25 pm

    It’s likely you may not have set LayoutInCell = True for the image (along with its WrapFormat to wdWrapSquare, wdWrapThrough, wdWrapTight or wdWrapTopBottom). The default is always False and that translates to the VML of ‘allowincell=false” that you’re seeing. Again, make sure that WrapFormat is not wdWrapNone or wdWrapInline – just use one of the other ones above).

    If this doesn’t work, please supply us with more information. For example what version of Word? What is the “save” code for the brain-dead version. What “Save to Web Page” options are you using? Put a full and brain-dead version of the same document (redact as needed) in something like DropBox for us to examine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a Win32-based application that displays jpeg images from a database. I picked
I have a Win32 application that I'm making, and it sends a string from
We have a Win32 application that hosts the .NET runtime and opens up .NET
I have a delphi (Win32) web application that can run either as a CGI
I have a C++ application that uses the Win32 API for Windows, and I'm
I have a C++ Win32 application that was written as a Windows GUI project,
I have an unmanaged Win32 C++ application that uses multiple C++ DLLs. The DLLs
I have a Win32 C++ Application using a handful of third-Party DLLs that is
I have a Win32 application that uses boost::asio and openssl library but it seems
I have a Win32 application that includes an EXE, an ActiveX control (DLL) and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.