From:             [EMAIL PROTECTED]
Operating system: win 2000
PHP version:      4.2.3
PHP Bug Type:     COM related
Bug description:  calling a VT_ARRAY syntax unknown or error

hi,

when I call IE as COM and open PrintPreview and set Header/Footer, i use
ExecWB(). The third parameter is VT_ARRAY. How shall create this VT_ARRAY.
Every syntax with VT_ARRAY fails. Or is this a two dimensional
SAFEARRAY??
Tanks guenter

        print "start";
        $ie = new COM("InternetExplorer.Application");
        $ie->Visible=true;
        $ie->Navigate("www.php.net");
        while ($ie->Busy) sleep(1);
/*
Microsofts msdn says:
If pvaIn (third parameter) is a VARIANT of type VT_ARRAY, pvaIn specifies
a SAFEARRAY containing (in the following order) a
header BSTR, a
footer BSTR, the
address of an IStream pointer for a Microsoft® Outlook® Express header
document, an
alternate URL BSTR used for MSHTML in Outlook Express, and a
DWORD containing flags.
*/

        $aArray[0]= "header";
        $aArray[1]= "footer";
        $aArray[2]= null;
        $aArray[3]= "";
        $aArray[4]= 1|2;

        $aVariantArray=new Variant ($aArray,VT_ARRAY|VT_BYREF);

        $ie->ExecWB(7,2,$aVariantArray,null);

        print "stop";
?>

-- 
Edit bug report at http://bugs.php.net/?id=21024&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21024&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21024&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21024&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21024&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21024&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21024&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21024&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21024&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21024&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21024&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21024&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21024&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21024&r=isapi

Reply via email to