|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-12-24 05:51 UTC] phanto@php.net
[2003-01-15 15:25 UTC] phanto@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 10:00:01 2025 UTC |
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"; ?>