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..
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..