Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » print preview action
print preview action [message #460284] Mon, 18 December 2006 21:58 Go to next message
Eclipse UserFriend
hey all,
i would like to reuse the PrintPreview() method in OleWebBrowser.java
(shown as below) in my rcp printPreviewAction() in trialView.java.

public void PrintPreview() {
// dispid=106, type=METHOD, name="PrintPreview"
int[] rgdispid = oleAutomation.getIDsOfNames(new String[]{"ExecWB"});
int dispIdMember = rgdispid[0];
Variant[] rgvarg = new Variant[2]; // this is the URL parameter
rgvarg[0] = new Variant(7);//"SHDocVw.OLECMDID.OLECMDID_PRINTPREVIEW");
rgvarg[1] = new
Variant(1);//"SHDocVw.OLECMDEXECOPT.OLECMDEXECOPT_PROMPTUSER ");
Variant pVarResult = oleAutomation.invoke(dispIdMember, rgvarg);
}

thanks in advance
Re: print preview action [message #460291 is a reply to message #460284] Tue, 19 December 2006 03:45 Go to previous message
Eclipse UserFriend
sorry for the unclear thread that i had post just now. i mean how to
integrate the printPreviewAction in trialView with the
printPreview()method in OleWebBrowser.java that i provided above.
Previous Topic:Restore property value in Property View
Next Topic:multiple TableViewer sort
Goto Forum:
  


Current Time: Fri Mar 28 12:56:54 EDT 2025

Powered by FUDForum. Page generated in 0.04244 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top