首页 \ 问答 \ 使用Apache poi设置边距(Set margins with Apache poi)

使用Apache poi设置边距(Set margins with Apache poi)

使用Apache poi创建基本的word文档,我需要更改页边距。 这个问题的答案似乎很完美,但我没有CTPageMar类。 我正在使用3.10。 任何人都有不同版本或不同方法的运气吗?


Using Apache poi to create a basic word document, I need to change the page margins. The answer to this question seems perfect, but I don't have the CTPageMar class. I'm using 3.10. Anyone had any luck with this with different versions, or different methods?


原文:https://stackoverflow.com/questions/28617157
更新时间:2023-01-30 15:01

最满意答案

由于声誉低,我无法发表评论,但您是否订阅了您的出版物?

Meteor.subscribe('pienvd3');

Thank you all.... No need of any corrections to the code. I got it worked by changing the _id of the documents. I gave my own _id instead of the auto generated _ids in mongoldb

相关问答

更多
  • 您需要了解WinForms Graphics的基础知识。 要将您的饼图放在Panel而不是Form ,就像现在一样,您只需要将this.CreateGraphics()更改为panel.CreateGraphics() 。 但这不好! 当你最小化你的表格时,你的馅饼会消失,对吧..? 因此, 所有绘图必须使用其e.Graphics对象从Paint事件触发/触发! 只有这样,绘图才会持续存在各种各样的外部事件。 您可以在类级别存储数据并在Panel的Paint事件中调用myPieGraphic , myPie ...
  • Core Plot图的所有可见部分都在Core Animation图层中绘制。 您可以使用所有标准动画。 许多Core Plot特定的属性也是可动画的。 Core Plot文档中有一个可动画属性列表。 您还可以使用CPTAnimation类为几乎所有属性设置动画,包括Core Animation不支持的属性。 All visible parts of a Core Plot graph are drawn in Core Animation layers. All of the standard anima ...
  • 你想用这条线做什么: ... drawVisualization.PieChart(e.row['TOTAL_ROOF','POTENTIAL_'].value); 也许你应该只做一个函数: .... var whateverClicked = function(){ //do something; }; 并将其附加到听众: google.maps.event.addListener(layer, 'click', whateverClicked); Ok -- got it... js Fu ...
  • 由于声誉低,我无法发表评论,但您是否订阅了您的出版物? Meteor.subscribe('pienvd3'); Thank you all.... No need of any corrections to the code. I got it worked by changing the _id of the documents. I gave my own _id instead of the auto generated _ids in mongoldb
  • 托马斯,你走了。 您遇到的问题是,每次从LegendEntries对象中删除其中一个图例条目时,其余条目的索引编号都会向下移动1以填充该孔。 因此,在删除索引3(亚洲)后,索引4变为3,5,变为4,依此类推......为了解决问题,我只是在索引号中倒退,从而确保删除不会影响事物的顺序来。 Sub CreateChart() On Error Resume Next Sheets(1).ChartObjects.Delete Dim MyChart As Chart ...
  • 您遇到的两个错误都指的是同一个问题。 jqplot.highlighter.min.js中的这一行是: var w=q._xaxis._ticks[0].formatter; Chrome无法访问formatter属性,因为q._xaxis._ticks未定义(如Firefox中所述)。 解决方案(受如何在jqplot饼图上显示工具提示的启发)是将以下代码添加到seriesDefaults配置中: highlighter: { show: true, formatString:'%s', ...
  • 首先,我会建议在github页面上提出问题,并使用ChartsDemo提供示例代码以进行重现。 我试过了,我确实看到了很小的重叠,但是如果小节继续变小,那么值将不会被绘制。 所以问题在于粒度。 是否绘制文字是基于: internal func passesCheck() -> Bool { guard let dataProvider = dataProvider, barData = dataProvider.barData else { return false } return CG ...
  • 是的, 有一种方法 。 呼叫: pieChart.setDrawSliceText(false) 禁止为图表切片绘制x标签。 如果你想禁用y值,请调用: dataSet.setDrawValues(false) Yes, there is a way. Call: pieChart.setDrawSliceText(false) to disable drawing the x-labels for the chart-slices. If you want to disable the y-values, ...
  • 示例/教程很差,省略了一个重要的细节。 您需要先将Label ' caption '添加到Scene 。 如果您纯粹使用该教程中的示例代码,则包括((Group) scene.getRoot()).getChildren().add(caption); : final Label caption = new Label(""); ((Group) scene.getRoot()).getChildren().add(caption); // Add me caption.setTextFill(Color. ...
  • 你没有在屏幕上显示'屏幕'。 (例如setVisible) - 它会根据需要自动调用子画面 再次:使框架可见,儿童将被框架绘制 you dont show the 'screen' on-screen. (e.g. setVisible) -- it will call paint of children as needed automatically then again: make the frame visible and children will be painted by the frame

相关文章

更多

最新问答

更多
  • 如何检索Ember.js模型的所有属性(How to retrieve all properties of an Ember.js model)
  • maven中snapshot快照库和release发布库的区别和作用
  • arraylist中的搜索元素(Search element in arraylist)
  • 从mysli_fetch_array中获取选定的值并输出(Get selected value from mysli_fetch_array and output)
  • Windows Phone上的可用共享扩展(Available Share Extensions on Windows Phone)
  • 如何在命令提示符下将日期设置为文件名(How to set file name as date in command prompt)
  • 如何在Laravel 5.2中使用paginate与关系?(How to use paginate with relationships in Laravel 5.2?)
  • 从iframe访问父页面的id元素(accessing id element of parent page from iframe)
  • linux的常用命令干什么用的
  • Feign Client + Eureka POST请求正文(Feign Client + Eureka POST request body)
  • 怎么删除禁用RHEL/CentOS 7上不需要的服务
  • 为什么Gradle运行测试两次?(Why does Gradle run tests twice?)
  • 由于有四个新控制器,Auth刀片是否有任何变化?(Are there any changes in Auth blades due to four new controllers?)
  • 如何交换返回集中的行?(How to swap rows in a return set?)
  • 在android中的活动之间切换?(Switching between activities in android?)
  • Perforce:如何从Depot到Workspace丢失文件?(Perforce: how to get missing file from Depot to Workspace?)
  • Webform页面避免运行服务器(Webform page avoiding runat server)
  • 在ios 7中的UITableView部分周围绘制边界线(draw borderline around UITableView section in ios 7)
  • 内存布局破解(memory layout hack)
  • 使用Boost.Spirit Qi和Lex时的空白队长(Whitespace skipper when using Boost.Spirit Qi and Lex)
  • 我们可以有一个调度程序,你可以异步添加东西,但会同步按顺序执行吗?(Can we have a dispatcher that you can add things todo asynchronously but will be executed in that order synchronously?)
  • “FROM a,b”和“FROM a FULL OUTER JOIN b”之间有什么区别?(What is the difference between “FROM a, b” and “FROM a FULL OUTER JOIN b”?)
  • Java中的不可变类(Immutable class in Java)
  • bat批处理文件结果导出到txt
  • WordPress发布查询(WordPress post query)
  • 如何在关系数据库中存储与IPv6兼容的地址(How to store IPv6-compatible address in a relational database)
  • 是否可以检查对象值的条件并返回密钥?(Is it possible to check the condition of a value of an object and JUST return the key?)
  • 德州新起点计算机培训学校主要课程有什么?
  • GEP分段错误LLVM C ++ API(GEP segmentation fault LLVM C++ API)
  • “latin1_german1_ci”整理来自哪里?(Where is “latin1_german1_ci” collation coming from?)