ID: 21024 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: No Feedback Bug Type: COM related Operating System: win 2000 PHP Version: 4.2.3 New Comment:
No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2002-12-24 05:51:06] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ [2002-12-15 03:05:46] [EMAIL PROTECTED] 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