on 03-04-2011 5:38 AM
Hi All,
When i tried to print the pop-up view, its fetching the datas from the main window also. is there any way to print the pop-up view seperatly. can we open this as a new window in new tab??.please answer ASAP.
Hi
Create a HTML file with given code , put it inside MIME folder.
//script language="JavaScript"
//window.print();
//script
/// Note : consider the standard HTML tags as it is not allowing me to do here .
Now write code at wdDoModifyView
if (firstTime)
{
IScope scope= Utils.getCurrentClientSession().getScope();
IWDTable tab= (IWDTable) scope.get("PrintPreviewTable");
Integer iSize= new Integer(scope.get("Size").toString());
tab.setVisible(WDVisibility.VISIBLE);
tab.setRowSelectable(false);
// wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(iSize+"");
tab.setVisibleRowCount(iSize.intValue());
IWDTransparentContainer cont= (IWDTransparentContainer) view.getElement("RootUIElementContainer");
cont.addChild(tab);
wdContext.currentContextElement().setPrintDialog("Print.html");
}
\
Here I have done for printing a table ... you can modify for your requirement.
BR
Satish Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
use IWDexternalwindow not modal wndow then it will displayed in new IE and ther u can print.
Regards,
Govindu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.