473,324 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Problem in Print Friendly Version with treeview control...

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,m enubar=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..
Sep 18 '07 #1
0 1095

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: hesing Qiang | last post by:
In Print Process,I use the code,but it is not run correctly On WINDOWS 98 . I didn't know why ...? this.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular,...
2
by: Mark | last post by:
I got this code from the Internet. Demo on the site works fine but downloaded version is not. I am a very new to .NET, I cannot figure this out, please help. Here is the code: ASPX code: <%@...
4
by: Jeff Beem | last post by:
I have a class that inherits from TreeView. The treeview has tooltips for the nodes but they're showing up behind the form. Has anyone seen this? Are there any known fixes? Thanks in advance,...
1
by: Smokey Grindle | last post by:
to start off with the page the free text box (version 3) is on has validateRequest="false" in the page directive already... but even with that when I am in the page and then click on a link to...
2
by: Riki | last post by:
I'm stuck with an XPath query to produce a TreeView. From the data below, I want to select all the score elements having an IdIn of 2018, ***including their ancestors***. With the result, I want...
4
by: Santosh | last post by:
Dear all i am downloading MS tree view control . i want to change the font size and font name of the tree view control i am wrtitting code for ity like if (!Page.IsPostBack) {...
2
by: hzgt9b | last post by:
Using VS2003, VB.NET, BACKGROUND I have a window forms based application that will be distributed and executed directly from CD media. The app contains a TreeView control and a WebBroswer...
0
by: thirunavukarasukm | last post by:
Hai.. i have Problem with Treeview control...... i am developed one web application... i am have many aspx page in this project..but all page undercontrol with treeview .. i am alreay...
1
by: Bill Woodruff | last post by:
Visual Studio 2005, .NET FrameWork 2.0, C#, WinForms Application Hi, I've read the recent posts by and to 'Thunderbird' (and learned a lot, thanks, from the usual masters Skeet and Paladino,...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.