本文介绍采用velocity技术在Java中生成word文档的方法。
1、新建一个word文档,编辑内容如下:
2、将上述word文档另存为htm格式的文件
3、新建一个Java Project项目velocityTest,加入Velocity所依赖的Jar包velocity-dep-1.5-beta2.jar。
4、在src目录下新建一个velocity.vm文件...
分类:
其他好文 时间:
2014-06-09 23:22:20
阅读次数:
417
本人大学新手一枚,在大学工作室学习asp.net,从中积累的一些小的知识和大家一起分享与讨论。
今天的主题是导出数据。现在从服务器端到客户端数据的几种主要方式有:web页面呈现(各种view..),导出到excel,导出到word,导出到报表等。我今天讲下我实际开发项目中用到的导出到excel...
分类:
数据库 时间:
2014-06-09 21:12:57
阅读次数:
369
这个就是电脑上键盘所有键的功能。CTRL组合键Ctrl + A 全选Ctrl + B 整理
收藏夹Ctrl + C 复制Ctrl + D 删除/添加收藏 (在Word中是修改选定字符格式,在IE及傲游中是保存为收藏)Ctrl + E 搜索助理
在Word中是段落居中Ctrl + F 查找Ctrl+ ...
分类:
其他好文 时间:
2014-06-09 19:34:39
阅读次数:
290
DCOM Config Setting for "Microsoft Office Word 97 -
2003 Document"
内部配置一切正常,但Application.Documents.Open函数还是返回null。下面是一个解决方法:"C:\Windows\SysWOW64\confi...
分类:
移动开发 时间:
2014-06-09 18:09:50
阅读次数:
257
一、概述 在写论文的过程中,我们经常需要将protel
DXP上的原理图贴入到WORD中。我们可以选择使用截图工具,然后再导入到WORD中。但是由于普通截图图形文件都是位图文件,当我们将图形文件导入WORD后,通常需要调整大小,结果就使得文件中的图形变得模糊。当把论文打印出来,效果也非常差。
其.....
分类:
其他好文 时间:
2014-06-09 16:10:24
阅读次数:
272
最近同事咨询这两个问题:1、word
2007内是否有全屏显示的快捷键,这样投影时,就可以快速切换到全屏。2、从ppt或者excel复制一张较大的图片,word 2007
会默认让复制的图片缩小,以适应纸张。而这样带来的麻烦就是图片会不清楚。能否在复制后仍然保持原样大小?解答:1、有快捷键,alt+...
分类:
其他好文 时间:
2014-06-09 14:13:52
阅读次数:
285
一个Java版的DES加密工具类,可以用来进行网络数据传输加密,和保存密码密码的时候进行加密。...
分类:
编程语言 时间:
2014-06-08 15:08:39
阅读次数:
238
题目如下:
Given an input string, reverse the string word by word.
For example,
Given s = "the sky is blue",
return "blue is sky the".
click to show clarification.
Clarification:
What co...
分类:
其他好文 时间:
2014-06-08 14:58:13
阅读次数:
231
Definition
Let be "0" and
be "01". Now (the concatenation of the previous sequence and the one before that).
The infinite Fibonacci word is the limit
We have:
0
01
010
01...
分类:
其他好文 时间:
2014-06-08 09:19:42
阅读次数:
273
Problem Description
A hat’s word is a word in the dictionary that is the concatenation of exactly two other words in the dictionary.
You are to find all the hat’s words in a dictionary.
In...
分类:
其他好文 时间:
2014-06-08 03:02:14
阅读次数:
323