473,614 Members | 2,351 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem in Print Friendly Version with treeview control...

21 New Member
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="toolba r=yes,location= no,directories= yes,menubar=yes ,";
sOption+="scrol lbars=yes,width =750,height=600 ,left=100,top=2 5";

var sWinHTML = document.getEle mentById('Print Version').inner HTML;
alert(sWinHTML) ;

var winprint=window .open("","",sOp tion);
winprint.docume nt.open();
winprint.docume nt.write('<html ><LINK href=/eggheadcafe.css rel=Stylesheet> <body>');
winprint.docume nt.write(sWinHT ML);
winprint.docume nt.write('</body></html>');
winprint.docume nt.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%"><as p:panel id="pnlHeading " runat="server" ForeColor="Maro on" Height="500" BackColor="Pale Goldenrod"
BorderStyle="No ne">
<iewc:TreeVie w id="TreeView1" runat="server" Width="256px">
<iewc:TreeNod e Text="Forza">
<iewc:TreeNod e Text="CarBoooki ng">
<iewc:TreeNod e NavigateUrl="pg RptCarBooking.a spx" ImageUrl="RptIm ages\html1.gif" Text="RptCarBoo king"
Target="ifrmTre eView"></iewc:TreeNode>
</iewc:TreeNode>
<iewc:TreeNod e Text="TripClose ">
<iewc:TreeNod e NavigateUrl="pg RptTripClose.as px" ImageUrl="RptIm ages\html1.gif" Text="RptTripCl ose"
Target="ifrmTre eView"></iewc:TreeNode>
</iewc:TreeNode>
</iewc:TreeNode>
</iewc:TreeView>
</asp:panel></td>
<td vAlign="top" width="70%">
<div id="PrintVersio n" align="center">
<iframe id="ifrmTreeVie w" tabIndex="3" name="ifrmTreeV iew" 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 1115

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

Similar topics

0
1513
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, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134))); ..... graphics.DrawString(strtmp,this.Font,this.brushBlack, DrawStringValidRect(ref ,graphics,this.Font ,
2
2124
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: <%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls" Assembly="Microsoft.Web.UI.WebControls" %><%@ Page language="c#" Codebehind="DocTree.aspx.cs" AutoEventWireup="false" Inherits="shark.TreeView.DocTree" %><!DOCTYPE HTML PUBLIC...
4
2857
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, Jeff Beem
1
4420
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 another page (as long as its changing pages, not posting back) it says this System.Web.HttpException was unhandled by user code ErrorCode=-2147467259 Message="Error executing child request for /msg/Secure/Default.aspx." Source="System.Web"
2
411
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 to fill a TreeView control. This is my simplified data: <?xml version="1.0" encoding="utf-8"?> <Punten>
4
2159
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) { treeview1.FontBold = true; treeview1.Font.Name = "DVB-TTSurekh"; treeview1.FontSize = Font.FontUnit(14);
2
7882
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 (AxSHDocVw.AxWebBrowse) control. The TreeView is populated with nodes that when clicked play an audio clip that is stored on the CD and navigate the browser control to a specified web URL (also stored on the CD). All the web URLs are html documents...
0
1203
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 download the IE Web Controls from microsoft site..
1
4282
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, and others) which involve AppDomains in a remoting scenario, but I think the issue I am working with .... while related ... is sufficiently different to warrant a new thread. I'm also working on a plug-in architecture it's for a WinForms based
0
8197
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8142
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8640
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8443
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6093
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4058
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4136
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1438
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.