Hi,

I need to print HTML from Windows 2000. I have a working implementation with
IE6, but it is _very_ difficult to specify to which printer to use. So I
created a COM Object which creates an invisible Window to host the Mozilla
ActiveX Control. It works nicely and by using IMozControlBridge I can
control the printersettings, and especially choose the printer.

My problem is now to change the font of the header/footer of the page. By
looking at the implementation of the printing stuff in the Mozilla source I
found to use nsIPrintOptions to change the default font, which is used in
header/footer.

I tried to use
do_GetService("@mozilla.org/gfx/printsettings-service;1", &rv);

but I only get a returnvalue 0x80004005, which is in WIN32 E_FAIL, thats the
most generic error.
Is there a simpler way to get thew interface or what need I do to get
do_GetService() work

To get the Mozilla stuff work outside of the mozctl I use
XPCOMGlueStartup(nsnull) and XPCOMGlueShutdown() and link with xpcomglue.lib
nspr4.lib embedstring.lib plc4_s.lib embed_base_s.lib (all libs from the
gecko sdk, I use headers from a full build of Mozilla 1.4 and the binaries
from an installation of Netscape 7.1 ).


Thank you,

Hans


_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to