简体   繁体   English

MS Word和HTML

[英]MS word and HTML

Concerns a project I am undertaking for my degree. 关注我正在攻读学位的项目。 Its a simple question bank where questions are stored in a database and later used to generate a question paper with random questions in a fixed template. 它是一个简单的问题库,其中问题存储在数据库中,以后用于生成带有固定模板中的随机问题的问题文件。

I was successfully able to implement this using PHP and display the paper in the right format on a web browser(non-editable). 我能够使用PHP成功实现此功能,并在Web浏览器(不可编辑)上以正确的格式显示论文。 However, I need an editable form of this page now and would prefer a solution where i can simply click on a button to export the whole question paper with the same format to MS word. 但是,我现在需要此页面的可编辑形式,并且希望使用一种解决方案,在该解决方案中,我只需单击一个按钮即可将具有相同格式的整个试卷导出到MS word。

Another problem i'm facing is that the processor i'm using to input questions can support only the Symbols from word. 我面临的另一个问题是,我用来输入问题的处理器只能支持单词符号。 However equations present under the insert tab of word can't be entered into the database, for instance the area of a circle. 但是,无法在单词的“插入”选项卡下显示的方程式(例如,圆的面积)输入数据库。

Thank you sincerely for any help that can be rendered. 衷心感谢您提供的任何帮助。

To generate a Word Document have a look at: http://phpword.codeplex.com 要生成Word文档,请查看: http : //phpword.codeplex.com

I haven't used that library, but have used PHPExcel a fair bit, and it has been very useful, and well documented. 我没有使用过该库,但是相当多地使用了PHPExcel,它非常有用,并且有据可查。 Maybe most importantly it is still being developed. 也许最重要的是它仍在开发中。 Although PHPWord isn't out of beta yet. 虽然PHPWord还没有过beta。

As far as equations go, I don't think there will be much help in copying one in from Word. 就方程式而言,我认为从Word复制一个方程式不会有太大帮助。 Sorry. 抱歉。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM