Hy,
Is posible print html document without print dialog?
- Tonton Luc
- VIP Member
- Posts: 204
- Joined: 16 Oct 2001 23:01
-
- Posts: 7
- Joined: 12 Dec 2006 16:01
I faund solution in webbrowser control 7.2
change sentece
with
but I have one prolblem: is posibe in webbrowser control set specified printer without printDialog?
Code: Select all
print() :- % brower is the instance created in the customIE
IWebBrowser2_import = webBrowser_V1_ctl:get_IWebBrowser2_import(),
Dispatch = IWebBrowser2_import:get_Document(), % this interface gives access to the whole document loaded
_ = Dispatch:queryInterface(iOleCommandTarget_native::iid, LpIn), % asks for the OLE interface
LpOleCommandTarget = uncheckedConvert(iOleCommandTarget_native,LpIn), % converts it from an unknown for VP
_ = LpOleCommandTarget:exec(uncheckedconvert(guid, null),6, 0, null,null),
_ =LpOleCommandTarget:release() % releases the interface
.
Code: Select all
LpOleCommandTarget:exec(uncheckedconvert(guid, null),6, 0, null,null),
with
Code: Select all
_ = LpOleCommandTarget:exec(uncheckedconvert(guid, null),6, 2, null,null),