Print HTML
Posted: 10 Jan 2014 20:26
Hy,
Is posible print html document without print dialog?
Is posible print html document without print dialog?
Visual Prolog Discussion forums
https://discuss.visual-prolog.com/
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),
Code: Select all
_ = LpOleCommandTarget:exec(uncheckedconvert(guid, null),6, 2, null,null),