cancel
Showing results for 
Search instead for 
Did you mean: 

Printing the Pop-Up window

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member185086
Active Contributor
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

thanks

Former Member
0 Kudos

Hi,

use IWDexternalwindow not modal wndow then it will displayed in new IE and ther u can print.

Regards,

Govindu

Former Member
0 Kudos

Hi,

Thanks for your help. Can you provide some sample code.