in the dhtmlXTabBar, How to print or printpreview the content of a Tab ?
If you are using non-iframes mode it can be printed only with top page.
In iframe based mode you can try
tabbar.tabWindow(tab_id).print();
Thanks for the help, but Cannot Print or Preview the contents of a Tab,please test the code below
var Htmlpage=tabbar.tabWindow(tabbar.getActiveTab());
var pObject="<OBJECT ID=“Oprint” WIDTH=0 HEIGHT=0 CLASSID=“CLSID:8856F961-340A-11D0-A96B-00C04FD705A2” >";
var printerCTL=Htmlpage.document.getElementById(“Oprint”);
try {
if ( ! printerCTL)
{Htmlpage.document.body.insertAdjacentHTML(“afterBegin”,pObject); }
Htmlpage.focus();
Htmlpage.document.Oprint.ExecWB(7,1);