摘要: 使用dom4j读取xml 1、读取xml文件 SAXReader reader = new SAXReader(); Document doc = reader.read(new File("xx.xml")); 2、读取xml字符串 Document doc = DocumentHelper.pa 阅读全文
posted @ 2019-12-17 09:53 LEON D 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 实现FTP相关功能 1、下载相应的jar包 commons-net-3.6.jar 2、代码实现 阅读全文
posted @ 2019-12-16 15:46 LEON D 阅读(3050) 评论(3) 推荐(0) 编辑
摘要: SmartRefreshLayout是一款实现上拉加载、下拉刷新的控件,网络上相关内容也很多,在这里简单总结下我的使用使用SmartRefreshLayout需导入依赖:implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0- 阅读全文
posted @ 2019-08-23 17:44 LEON D 阅读(4514) 评论(0) 推荐(0) 编辑
摘要: 清单文件中增加对应权限,动态申请权限(此部分请参考Android 动态申请权限,在此不作为重点描述) 阅读全文
posted @ 2019-08-21 16:08 LEON D 阅读(5595) 评论(0) 推荐(2) 编辑
摘要: AndroidManifest.xml(清单文件)添加需要的权限 阅读全文
posted @ 2019-08-12 16:10 LEON D 阅读(3247) 评论(0) 推荐(1) 编辑
摘要: Office 2003 应用程序或组件主 Interop 程序集名主 Interop 程序集命名空间Microsoft Access 11.0 Object LibraryMicrosoft.Office.Interop.Access.dllMicrosoft.Office.Interop.AccessMicrosoft Excel 11.0 Object LibraryMicrosoft.Office.Interop.Excel.dllMicrosoft.Office.Interop.ExcelMicrosoft Forms 2.0 Object LibraryMicrosoft.Vbe.I 阅读全文
posted @ 2011-08-23 13:53 LEON D 阅读(1298) 评论(0) 推荐(0) 编辑
摘要: 前一段时间因工作需要,需增加ppt数据的导出下载。发现网络上这方面资料并不是很多,零零散散地找到一些相关的资料,经过自己的试验,终于完成相关功能。应博友要求,在此分享下我的经验,不好之处还望大家多多指出。 在做之前,首先需要添加相关引用Microsoft.Office.Interop.PowerPoint.dll。using PowerPoint = Microsoft.Office.Interop.PowerPoint; 操作PPT代码如下: public void createPPT() { try { //ppt存储路径 string path = string.Format(" 阅读全文
posted @ 2011-08-09 10:45 LEON D 阅读(3920) 评论(5) 推荐(1) 编辑