Retaining Page Orientation When Appending Documents

Last post 08-31-2009, 10:07 AM by alexey.noskov. 3 replies.
Sort Posts: Previous Next
  •  08-27-2009, 3:02 PM 195464

    Retaining Page Orientation When Appending Documents .NET

    I'm currently working on a reporting subsystem that pieces together a single document from a collection of dozens of smaller documents.  Until now everything has had a page orientation of Portrait.  Recently, a new sub-document was introduced that's comprised of three pages with a page orientation of Portrait, Landscape and Portrait respectively.  When I append the sub-document into my master document using the Document.AppendDocument method all pages from the inserted document have a page orientation of Portrait.  I lose the original page orientation and section segementation from the original source document.  I've attempted to execute the AppendDocument method with both ImportFormatMode enum values.  I get the same results either way.  Should I be taking a differrent approach to acheive the desired results?  I'm using Aspose.Words 6.6.
    Filed under: Append;Orientation
     
  •  08-28-2009, 12:27 AM 195493 in reply to 195464

    Re: Retaining Page Orientation When Appending Documents

    Hi

     

    Thanks for your request. Could you please attach your documents here for testing and provide me the code you use to combine documents? I will try to reproduce the issue and provide you more information.

     

    Best regards.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  08-31-2009, 8:56 AM 195839 in reply to 195493

    Re: Retaining Page Orientation When Appending Documents .NET

    Thanks for the quick reply.  I was able to resolve the issue on my own.  I misreported the issue.  Upon closer inspection of the relevant code and additional testing I noted that the Document.AppendDocument was working as inspected.  But, there was another component in the code that does an insertion after a paragraph node.  It was the latter action that was causing the document to lose the orientation.  I don't know exactly why it behaved that way.  But, I'm happy to have the problem resolved :-)

     

     

     
  •  08-31-2009, 10:07 AM 195853 in reply to 195839

    Re: Retaining Page Orientation When Appending Documents

    Hi

     

    It is perfect that you found the reason of the problem and resolved it successfully.

     

    Best regards.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
View as RSS news feed in XML