在打印预览中隐藏TabContainer. [英] To hide TabContainer in the print preview.

查看:108
本文介绍了在打印预览中隐藏TabContainer.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

我在页面中使用TabContainer.
我正在使用Window.print来打印显示部分,但是我想在打印预览中隐藏TabContainer.
请对此进行指导.

例如:

Dear Friends,

I am using the TabContainer in my page.
I am using Window.print to print the display part but I want to hide TabContainer in the print preview.
Kindly guide me on this.

Eg:

<asp:TabContainer ID="TabContainer1" runat="server" Width="1300px" ActiveTabIndex="0">
        <asp:TabPanel ID="TabPanel1" runat="server">
            <HeaderTemplate>
                Engg.(Teaching)
            </HeaderTemplate>
            <ContentTemplate>
                <asp:DropDownList ID="DropDownList1" runat="server">
                    <asp:ListItem>January</asp:ListItem>
                    <asp:ListItem>February</asp:ListItem>
                    <asp:ListItem>March</asp:ListItem>
                    <asp:ListItem>April</asp:ListItem>
                    <asp:ListItem>May</asp:ListItem>
                    <asp:ListItem>June</asp:ListItem>
                    <asp:ListItem>July</asp:ListItem>
                    <asp:ListItem>August</asp:ListItem>
                    <asp:ListItem>September</asp:ListItem>
                    <asp:ListItem>October</asp:ListItem>
                    <asp:ListItem>November</asp:ListItem>
                    <asp:ListItem>December</asp:ListItem>
                </asp:DropDownList>



在此我想隐藏HeaderTemplate..请引导我..



In this I want to hide HeaderTemplate.. Please Guide me..

推荐答案



如果要使用"window.print()"函数打印页面,则肯定会打印页面的所有内容.
因此,根据我的建议,您应该使用水晶报表来打印重要页面.您可以根据需要自定义页面.有关使用Crystal报告的信息,请阅读以下文章:
使用其功能组逐步创建Crystal Report,图形,交叉表和子报表 [ ^ ]
在Visual Studio 2010中使用Crystal Reports生成报告 [ ^ ]
祝一切顺利.
--AK
Hi,

If you are going to print the page using ''window.print()'' function, definitely it will print all the content of the page.
So, as per my suggestion you should use crystal reports for printing the important pages. You can customize the pages as per your choice. For using crystal reports read these articles:
Step by Step Creation of Crystal Report using its Features Group, Graph, Cross-Tab and Sub Report[^]
Generate a Report using Crystal Reports in Visual Studio 2010[^]
All the best.
--AK


这篇关于在打印预览中隐藏TabContainer.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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