Hi,
We have a Jade form that has a WebBrowser control on it, this control is then printed using myWebBrowser.execWB.
Where execWB does _jadeActiveXInvokeio( 'ExecWB', 1, '0.24,1.3,1.3,17.16396,19.16396', _p1, _p2, _p3, pvaOut );
The execWB is effectively called using parameters that equate to the following: myWebBrowser.execWB( 6, 2, 1, any );
This works, in that the browser control is printed.
What we want to do it print the browser control AND at the same time include a custom Header and/or Footer line to supplied values.
We do not want to change or rely on the RegEdit settings of HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\PageSetup (or HKEY_LOCAL_MACHINE)
We have tried various changes including the equivalent of the following:
vars
cnVariantArray : CnVariantArray;
cnVariant : CnVariant;
cmdID : Integer;
any : Any;
begin
create cnVariantArray transient;
create cnVariant transient;
cnVariant.setValue( "display header" );
array.add( cnVariant );
create cnVariant transient;
cnVariant.setValue( "display footer" );
array.add( cnVariant );
myWebBrowser.execWB( 6, 2, cnVariantArray, any );
epilog
delete cnVariantArray;
end;
Any help, tips would be appreciated.
cheers Rolly