如何在asp.net中制作MS Word文档 [英] how to make ms word doc in asp.net
本文介绍了如何在asp.net中制作MS Word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的网页上有5个html,每个表有10条记录,我想用c#在asp.net中创建ms word文档,
但我会在一个doc文件中制作10页,然后我可以从此doc打印10页,
我该怎么做
I have 5 html on my web page and every table have a 10 records ,i want make a ms word doc in asp.net with c#,
but i will make 10 page in one doc file then i can print 10 page from this doc ,
how can i do this
推荐答案
在发送到doc之前,将您的gridview allowpaging设置为false,然后调用databind
像这样
before sending to doc set your gridview allowpaging false then call databind
like this
GridView1.AllowPaging = false;
GridView1.DataBind();
call your gridview to doc methods here
这篇关于如何在asp.net中制作MS Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文