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 8286467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:46:50+00:00 2026-06-08T11:46:50+00:00

We use PDF-Focus. And we want to export PDF-documents in landscape-format to a Word-document.

  • 0

We use PDF-Focus. And we want to export PDF-documents in landscape-format to a Word-document.
We want to export this document to Word. We get the document in Word. And everything looks fine.
If we want to print this new word-document the margins of this document are portrait-orientated.

I tried to solve this by creating an empty Word document and then inserting a temporary exported Word-document. Then I changed the orientation to Landscape. I saw that this solution works. The document is now landscape orientated.

But now the pages with graphics and other images are overlapping the pages with tables.

So I thought I have to inserting the temporary document to the new created document by reading separate pages and then inserting with a loop.

Which functionality should we use to solve this programmatically?
Or maybe there is a better solution? Can you help me?

Wesley

  • 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-08T11:46:52+00:00Added an answer on June 8, 2026 at 11:46 am

    Following code works for me and opens a word document changing its page orientation. were you looking for something like this?

    using System;
    using Microsoft.Office.Interop.Word;
    
    namespace PageSetup
    {
        class TestPageOrientation
        {
            static void Main(string[] args)
            {
                var app = new Microsoft.Office.Interop.Word.Application();
                app.Visible = true;
    
                //Load Document
                Document document = app.Documents.Open(@"C:\Temp\myDocument.docx");
    
                document.PageSetup.Orientation = WdOrientation.wdOrientLandscape;
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use libharu to render my documents to PDF. I would like
I want to use the script below to add pdf files stored as blob
I want to use iText to write data to pdf. Assembles that I've added
is it possible to use Mercurial version control to track Word or PDF files?
I want to use PDF file in the webpage. I want the PDF to
I have lots of pdf documents to merge together, so I wrote this code
I'm trying to use the pdf-reader gem (https://github.com/yob/pdf-reader) on my app (RoR with Mongoid).
Right now i use iText to generate a pdf automatically. And my problem is
With iText I can use Java to open a pdf and write it. If
I am trying to use BIRT 2.5.0 to generate a pdf file. BIRT is

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.