如何在ASP.net中打印页面的一部分(ORG图表) [英] How to print part of the page (ORG CHART) in ASP.net

查看:86
本文介绍了如何在ASP.net中打印页面的一部分(ORG图表)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经使用DataBoundOrganisationChart1创建了组织结构图.我只需要打印ORG图表.使用客户端脚本,我能够打印,但是上下行都没有.如何在ASP.net中打印页面的一部分(ORG图表)(包括行且必须适合页面).

如果有人知道,请回复我.

在此先谢谢您.

Hi
I have created Organisation chart using DataBoundOrganisationChart1. I need to print only ORG CHART. Using client side script, i am able to print but up and down lines are not coming. How to print part of the page (ORG CHART) in ASP.net including lines and that has to fit to the page.

If anybody knows, please reply me.

Thanks in advance.

推荐答案

您可以通过
You can do it by either the method described in Print a DataGrid Alone from an ASP.NET Web Page[^]
OR
the simplest way is to do with the help of css like below.
@media print{
    #div_not_to_print{
        display:none;
    }
    #div_to_print{
        display:inline-block;
    }
}


参考-
我如何打印网页的特定块/部分? [中完成的方式在asp.net(.aspx)中打印整页或部分页面 [


Reference - How do you print part of a page in Javascript?[^]

Also take a look at the correct answer in How can I print a certain block/part of a web page?[^]
and the way it is done in Full Page or Partial Page printing in asp.net (.aspx)[^].


这篇关于如何在ASP.net中打印页面的一部分(ORG图表)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆