[EMAIL PROTECTED] (Jim Daniels) wrote in message news:<[EMAIL PROTECTED]>...
> Hi, I've got a Delphi 5 app that currently uses an IE-based ActiveX,
> and I'm wanting to switch it over to using the Mozilla ActiveX
> instead. So far, everything is working well, but I haven't run across
> information on how to programmatically print the currently displayed
> page, and also how to do that without having the print dialog come up.
>
Found out how to do the first part, and it's very easy. If I add a
button to the form, the following code prints the current document.
I'm using a simple example program I got from the Delphi section of an
embedded Mozilla site.
...
type
TMainForm = class(TForm)
Browser: TMozillaBrowser;
...
procedure TMainForm.Button1Click(Sender: TObject);
var
Vain: OLEVariant;
begin
Browser.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, vaIn);
end;
> Also, I need to set specific page setup values to ensure blank headers
> and footers, and specify margins. How do I get the Mozilla ActiveX
> control to use my specific page setup values?
I still need help on programmatically setting the headers and footers
(to blank) and setting the margins, so if anyone knows how, please
share that info.
Jim Daniels