•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 456,500 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,682 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1207 | Replies: 0
![]() |
•
•
Join Date: May 2007
Posts: 23
Reputation:
Rep Power: 2
Solved Threads: 0
Hai...
Problem in Print Friendly Version with treeview control...
i am creating one web applications..
in this web application in main page The left side one panel and right side one Iframe control..
i am go to run the page the treeview control to expand corresponding page target to iframe control..
function PrintThisPage()
{
var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,";
sOption+="scrollbars=yes,width=750,height=600,left=100,top=25";
var sWinHTML = document.getElementById('PrintVersion').innerHTML;
alert(sWinHTML);
var winprint=window.open("","",sOption);
winprint.document.open();
winprint.document.write('<html><LINK href=/eggheadcafe.css rel=Stylesheet><body>');
winprint.document.write(sWinHTML);
winprint.document.write('</body></html>');
winprint.document.close();
winprint.focus();
}
<table id="tblTreeview" height="40" cellSpacing="0" cellPadding="0" width="98%" border="0">
<tr height="500" width="100%">
<td vAlign="top" width="30%"><asp:panel id="pnlHeading" runat="server" ForeColor="Maroon" Height="500" BackColor="PaleGoldenrod"
BorderStyle="None">
<iewc:TreeView id="TreeView1" runat="server" Width="256px">
<iewc:TreeNode Text="Forza">
<iewc:TreeNode Text="CarBoooking">
<iewc:TreeNode NavigateUrl="pgRptCarBooking.aspx" ImageUrl="RptImages\html1.gif" Text="RptCarBooking"
Target="ifrmTreeView"></iewc:TreeNode>
</iewc:TreeNode>
<iewc:TreeNode Text="TripClose">
<iewc:TreeNode NavigateUrl="pgRptTripClose.aspx" ImageUrl="RptImages\html1.gif" Text="RptTripClose"
Target="ifrmTreeView"></iewc:TreeNode>
</iewc:TreeNode>
</iewc:TreeNode>
</iewc:TreeView>
</asp:panel></td>
<td vAlign="top" width="70%">
<div id="PrintVersion" align="center">
<iframe id="ifrmTreeView" tabIndex="3" name="ifrmTreeView" width="677" height="500">
</iframe>
</div>
</td>
</tr>
</table>
this is the code
the problem i want to print the page in corresponding targeted page..
but the output shows iframe only..
there is no nothing is display..
please help
how to print the targeted page using treeview
please reply me..
Problem in Print Friendly Version with treeview control...
i am creating one web applications..
in this web application in main page The left side one panel and right side one Iframe control..
i am go to run the page the treeview control to expand corresponding page target to iframe control..
function PrintThisPage()
{
var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,";
sOption+="scrollbars=yes,width=750,height=600,left=100,top=25";
var sWinHTML = document.getElementById('PrintVersion').innerHTML;
alert(sWinHTML);
var winprint=window.open("","",sOption);
winprint.document.open();
winprint.document.write('<html><LINK href=/eggheadcafe.css rel=Stylesheet><body>');
winprint.document.write(sWinHTML);
winprint.document.write('</body></html>');
winprint.document.close();
winprint.focus();
}
<table id="tblTreeview" height="40" cellSpacing="0" cellPadding="0" width="98%" border="0">
<tr height="500" width="100%">
<td vAlign="top" width="30%"><asp:panel id="pnlHeading" runat="server" ForeColor="Maroon" Height="500" BackColor="PaleGoldenrod"
BorderStyle="None">
<iewc:TreeView id="TreeView1" runat="server" Width="256px">
<iewc:TreeNode Text="Forza">
<iewc:TreeNode Text="CarBoooking">
<iewc:TreeNode NavigateUrl="pgRptCarBooking.aspx" ImageUrl="RptImages\html1.gif" Text="RptCarBooking"
Target="ifrmTreeView"></iewc:TreeNode>
</iewc:TreeNode>
<iewc:TreeNode Text="TripClose">
<iewc:TreeNode NavigateUrl="pgRptTripClose.aspx" ImageUrl="RptImages\html1.gif" Text="RptTripClose"
Target="ifrmTreeView"></iewc:TreeNode>
</iewc:TreeNode>
</iewc:TreeNode>
</iewc:TreeView>
</asp:panel></td>
<td vAlign="top" width="70%">
<div id="PrintVersion" align="center">
<iframe id="ifrmTreeView" tabIndex="3" name="ifrmTreeView" width="677" height="500">
</iframe>
</div>
</td>
</tr>
</table>
this is the code
the problem i want to print the page in corresponding targeted page..
but the output shows iframe only..
there is no nothing is display..
please help
how to print the targeted page using treeview
please reply me..
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Problem with Treeview control...... (ASP.NET)
- populte treeView control with xml file (C#)
- Printer-Friendly Version (DaniWeb Community Feedback)
- Print Friendly (PHP)
- O/T. HTML printing problem.......... (HTML and CSS)
- MS Outlook 2000 Problem (Windows 9x / Me)
Other Threads in the ASP.NET Forum
- Previous Thread: Problem with Treeview control......
- Next Thread: Printing of Data not window on Client Sde


Linear Mode