Click here to Skip to main content
13,458,221 members
Rate this:
Please Sign up or sign in to vote.
See more:
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.

<asp:TabContainer ID="TabContainer1" runat="server" Width="1300px" ActiveTabIndex="0">
        <asp:TabPanel ID="TabPanel1" runat="server">
                <asp:DropDownList ID="DropDownList1" runat="server">

In this I want to hide HeaderTemplate.. Please Guide me..
Posted 22-Jun-12 4:31am
Updated 22-Jun-12 21:57pm
SASS_Shooter 22-Jun-12 15:20pm
What have you done so far?
Arunprasath Natarajan 23-Jun-12 3:13am
I have used display.none in media print its not working

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1


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.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04-2016 | 2.8.180323.1 | Last Updated 23 Jun 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100