#21024 [Opn]: calling a VT_ARRAY syntax unknown or error

From: Date: Tue, 24 Dec 2002 11:51:07 +0000
Subject: #21024 [Opn]: calling a VT_ARRAY syntax unknown or error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-28324@lists.php.net to get a copy of this message
ID: 21024 Updated by: phanto@php.net Reported By: nelles@epost.de Status: Open Bug Type: COM related Operating System: win 2000 PHP Version: 4.2.3 New Comment: can you point me to the headerfile describing the command ids (first parameter). acording to msdn they are defined in mshtmcid.h, but in my version of the file IDM_PRINTPREVIEW is 2003 and IDM_PRINT is 27 though 7 opens the print preview for me. next msdn only describes the pvaIn that way for IDM_PRINT, for IDM_PRINTPREVIEW i only found "pvaIn VARIANT of type VT_BSTR that specifies the path to a custom template. May be set to NULL to use the Microsoft® Internet Explorer default print template." maybe i'm searching at the wrong place, i'd appreciate a few further hints. harald Previous Comments: ------------------------------------------------------------------------ [2002-12-15 03:05:46] nelles@epost.de 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 this bug report at http://bugs.php.net/?id=21024&edit=1

« previous php.bugs (#28324) next »