Alaska Software Inc. - Print HTML
Username: Password:
AuthorTopic: Print HTML
Itai Ben-ArtziPrint HTML
on Fri, 02 Apr 2021 16:11:31 -0700
What is the best way to print HTML (currently displayed on
XbpHTMLWindow() object?
Is there a graphic function that can place HTML in a
presentation-space?

Many thanks,
-Itai
Jim LeeRe: Print HTML
on Sat, 03 Apr 2021 05:58:01 +0200
hi,

XbpHTMLViewer() s basiert on "IE" Engine in SYSTEM32\IFRAME.DLL as Class 
"WebBrowser"
there is a ExecWB Method which can be used to "print"

#define OLECMDID_OPEN                 1
#define OLECMDID_SAVE                 3
#define OLECMDID_SAVEAS               4
#define OLECMDID_UNDO                 15
#define OLECMDID_REDO                 16
#define OLECMDID_PRINT                6
#define OLECMDID_PRINTPREVIEW         7
#define OLECMDID_CUT                  11
#define OLECMDID_COPY                 12
#define OLECMDID_PASTE                13
#define OLECMDID_SELECTALL            17
#define OLECMDEXECOPT_PROMPTUSER      1
#define OLECMDEXECOPT_DONTPROMPTUSER  2
#define OLECMDID_ZOOM                 19

   ::oIE:execWB( OLECMDID_PRINT,        OLECMDEXECOPT_PROMPTUSER, 0, 0 )
   ::oIE:execWB( OLECMDID_PRINTPREVIEW, OLECMDEXECOPT_PROMPTUSER, 0, 0 )
Itai Ben-ArtziRe: Print HTML
on Fri, 02 Apr 2021 23:09:47 -0700
Thank you, Jim!!!
Works great!
-Itai