简体   繁体   English

如何使用C#.NET(4)明智地拆分Word文件页面并打开xml SDK 2.0?

[英]how to split a word file page wise using C#.NET(4) and open xml sdk 2.0?

I have my application written using C#.net and open XML SDK(2.0).I have spitted the word file paragraph wise and section wise using open XML tags.But i could not find anything about split a word file page wise... 我有使用C#.net和开放XML SDK(2.0)编写的应用程序。我已经使用开放XML标签将Word文件逐段和逐段拆分,但是我找不到关于明智地拆分Word文件页面的任何信息...

Pleas Guide me get out of this issue. 请帮我摆脱这个问题。

However, after Word (or Word Automation Services) has rendered the document, you can find the w:lastRenderedPageBreak element, which, combined with hard page breaks, can let you know where page breaks are. 但是,在Word(或Word Automation Services)呈现文档之后,您可以找到w:lastRenderedPageBreak元素,结合硬分页符可以让您知道分页符在哪里。 There are no guarantees about this - you could potentially go into an Open XML document and alter content using the Open XML SDK, and then the w:lastRenderedPageBreak elements would not be in the correct place. 对此不做任何保证-您可能会进入Open XML文档并使用Open XML SDK更改内容,然后w:lastRenderedPageBreak元素将不在正确的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM