Aspose.Words.dll 怎样插入一页竖页,和横页呢?怎么控制竖,横?

Aspose.Words.dll 怎样插入一页竖页,和横页呢?怎么控制竖,横?我现在要插入图片到word中,当图片宽度很大时,要插入横页,否则插横页,builder.InsertBreak(BreakType.PageBreak);这个是插分页符的。

横竖是靠纸张方向控制的。看看Page.Orientation
采纳给姐姐吧。然后下次你要下载资源,姐姐帮你下。

题主我知道答案了
代码如下:

 builder.InsertBreak(BreakType.SectionBreakNewPage);
 builder.PageSetup.PaperSize = PaperSize.A4;
    //纵向纸张
 builder.PageSetup.Orientation = Aspose.Words.Orientation.Landscape;
    //横向
    builder.PageSetup.Orientation = Aspose.Words.Orientation.Portrait;

## 题主想送这5c币了,给个能沾边的就给

//横向

builder.PageSetup.Orientation = Aspose.Words.Orientation.Landscape;

//纵向

builder.PageSetup.Orientation = Aspose.Words.Orientation.Portrait;