在使用aspose.slide向ppt中插入smartArt的组织机构图时,第一层父节点只能在上面或者左边,怎样让父节点在最下面,子节点在上面
我注意到你的意见 我很抱歉通知使用Aspose.Slides不可能。 而且,在PowerPoint中也是不可能的。 SmartArts是地图的给定模板,因此缺少底层父节点模板是不可能的。 如有任何疑问,请分享您的意见。
最好的祝福,
Adnan Ahmad
感谢您的询问。
不幸的是,您的问题不够明确,因此我们要求您通过提供您的用户名的完整详细信息,进一步详细说明您的查询。 将Word文档中的SmartArt转换为PDF或其他格式时是否遇到问题? 您要在Word文档中插入新的SmartArt吗? 这将有助于我们了解您的情况,我们将能够更好地解决您的问题。
最好的祝福,
并不是转换word,我们的客户要求在word中根据他们提供的数据生成一张组织机构图,我们想使用smartArt生成,在aspose.sildes中我们发现有SmartArt对象可以根据数据生成组织机构图,但是在操作word的aspose.word中并没有发现有类似的对象,请问aspose.word可以像aspose.sildes一样生成指定的组织结构图么
我们理解的是,您希望在Aspose.Words中使用API,允许您以编程方式创建新的SmartArt对象,删除,获取和修改Word文档中现有SmartArt对象的内容。 您的请求已被链接到适当的问题(WORDSNET-4009和WORDSNET-15654),一旦支持此功能,您将收到通知。 抱歉给你带来不便。
最好的祝福,
Awais Hafeez
SmartArt.png (1.4 KB)
请问能使用aspose.slide中的SmartArt生成类似这样的效果的组织结构图么,或者使用您公司中哪个方法可以生成类似效果的组织结构图,在不使用visio的情况下
谢谢您的回答,我们现在知道如何生成简单的SmartArt图形,但是需求要求我们可以改变每个子节点的位置,就像是我给您发的那张图片。在父节点的下面生成一些子节点后,在父节点的上方也生成一些子节点,我们没有找到子节点中哪个属性可以设定子节点的位置。
下面是我的代码,这张图片是我想要实现的效果84GJBXA2KQY(`9G$7L3Q)E8.png (2.4 KB)
String dataDir = Utils.getDataDir(MyTestSmartArtOrganizationChart.class);
Presentation pres = new Presentation();
ISmartArt smart = pres.getSlides().get_Item(0).getShapes().addSmartArt(50, 20, 600, 500, SmartArtLayoutType.OrganizationChart);
ISmartArtNode node1 = smart.getAllNodes().addNode();
node1.getTextFrame().setText("1");
ISmartArtNode node2 = smart.getAllNodes().addNode();
node2.getTextFrame().setText("2");
SmartArtNode node3 = (SmartArtNode) node2.getChildNodes().addNode();
node3.getTextFrame().setText("3");
ISmartArtNode node4 = smart.getAllNodes().get_Item(0);
node4.getTextFrame().setText("4");
ISmartArtNode node5 = smart.getAllNodes().addNode();
node5.getTextFrame().setText("5");
while (node4.getChildNodes().size() > 0) {
node4.getChildNodes().removeNode(0);
}
SmartArtNode node6 = (SmartArtNode) ( node4.getChildNodes()).addNodeByPosition(1);
node6.getTextFrame().setText("6");
SmartArtNode node7 = (SmartArtNode) ( node6.getChildNodes()).addNodeByPosition(1);
node7.getTextFrame().setText("7");
SmartArtNode node8 = (SmartArtNode) ( node6.getChildNodes()).addNodeByPosition(1);
node8.getTextFrame().setText("8");
SmartArtNode node9 = (SmartArtNode) ( node6.getChildNodes()).addNodeByPosition(1);
node9.getTextFrame().setText("9");
pres.save(dataDir + "output.pptx", SaveFormat.Pptx);
我已經觀察到您的要求,並遺憾地分享了Aspose.Slides所要求的功能不可用。 ID SLIDESJAVA-36498的問題已經在我們的問題跟踪系統中添加為新功能請求。此線程已與問題相關聯,以便在問題解決後可以自動通知您。
對於您的不便,我們深表歉意
谢谢您的回答。aspose的产品还是很好用的
The issues you have found earlier (filed as SLIDESJAVA-36498) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by mudassir.fayyaz