java - How to store some text in a ms word file in a specific format using java or php?
问题描述
I am looking to write some code using java or php which writes or store some data in a ms word file in a specific format. The format should be like the document is in A4 portrait mode divided into four equal blocks. All the blocks have a logo in the background and a text is written aligned to the center which is same in two blocks always.
I am sorry if this was not the right way to ask or if I have done something wrong. I am very new to programming and this is the first time I am asking a question on stackoverflow.
I looked for it on this website but couldn't find something similar.
解决方案
您可以尝试:Apache POI,它允许您使用 Java 创建、修改和显示 word 文档。这是一个很好的教程,可以提供帮助:
https://www.tutorialspoint.com/apache_poi_word/apache_poi_word_quick_guide
推荐阅读
- mysql - Symfony2.8 从 phpmyadmin 数据库中读取数据
- javascript - 获取存在“在线”DiscordJS 的成员数量
- algorithm - 这个最近邻插值着色器有什么问题?
- php - 从 JSON 中获取正确的价值
- javascript - 如何在类外调用超类方法?
- cdn - 为什么我的 CDN 缓存了某个文档,而浏览器不缓存?
- android - android API27 未检测到外部 USB 摄像头(LENS_FACING_EXTERNAL)
- android - Android更改以前的活动主题
- python - 为什么我不能连接这两个元组?
- ruby - 为什么 Redmine Web 应用程序在乘客服务器尝试启动时遇到内部错误?