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

  • SEARCH
  • Home
  • 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 8217173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:22:30+00:00 2026-06-07T12:22:30+00:00

I am using Microsoft Open XML SDK to generate a word document. I have

  • 0

I am using Microsoft Open XML SDK to generate a word document. I have used Open XML SDK 2.0 Productivity Tool for converting the word document into C# code, and thus I have created a wrapper class by encapsulating the table creation code. I have successfully generated word document.

But the issue is, some tables are expanding in their width beyondpage
margins.
I searched in google, and found that GrowAutoFit class allows
Tables to AutoFit into page margins,
but I couldn’t find the exact
usage of this class to implement the functionality.

I searched a lot for many days before asking a question here, as i have read the terms of asking a question on this forum. I got tired of searching, and i’m putting forward this query here. So please suggest me the solution.

  • 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-06-07T12:22:31+00:00Added an answer on June 7, 2026 at 12:22 pm

    I found the answer for my own question.

    The reason for the tables extending out of page was that i had
    set page margins as zero in the code. So, after i set the page margins
    as 1 inch on all sides, the tables are not extending out of margins.

    Thanks to the Office Open XML SDK Productivity tool, which shows
    the native XML code, and also the C# code when a word document is
    opened in it. And becuase of this tool, i was able to figure out the
    issue.

    Thanks for your suggestions Maximilian 🙂

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

Sidebar

Related Questions

I'm using Microsoft Open XML SDK 2 and I'm having a really hard time
I am using below code to generate word document using assp.net/c#.net, please tell me
I built a template-based document generator using the Open XML SDK (1.0) , the
I'm trying to embed a PDF file into a Word document using the OLE
is there anyone who makes use of the Microsoft Open XML SDK 2.0 for
I have wrote a code that can read an excel 2007 file using Microsoft
I have been using Apache POI to manipulate Microsoft Word .docx files — ie
I started experimenting with Open XML SDK 2.0 for Microsoft Office . I'm currently
I'd like to start using Microsoft Open XML API with Delphi 2009 to create
I have the following code: using (var doc = WordprocessingDocument.Open(filename, true)) { .... }

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.