oActiveX:Print() works correctly
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.print.aspx
while oActiveX:ShowPrintDialog() generates a runtime error.
http://msdn.microsoft.com/en-us/library/0xbfs8f9.aspx
RIght clicking the control and choosing "Print" from the contect menu works correctly, so, why certain methods doesn't work on ActiveX ?
Any solution ?
TIA,
Davide
FWH 9.04 (latest ActiveX class) - xH - Bcc
P.S.: The same for ShowPrintPreviewDialog() - Please see Error.log below
- Code: Select all Expand view
- Application
===========
Path and name: C:\tests\testprg\testprg.exe (32 bits)
Size: 798,208 bytes
Time from start: 0 hours 0 mins 27 secs
Error occurred at: 04/27/2009, 03:34:40
Error description: Error 1434464/0 S_OK: SHOWPRINTPREVIEWDIALOG
Args:
Stack Calls
===========
Called from: source\rtl\win32ole.prg => TOLEAUTO:SHOWPRINTPREVIEWDIALOG(0)
Called from: => __OBJSENDMSG(0)
Called from: => HB_EXECFROMARRAY(0)
Called from: .\source\classes\ACTIVEX.PRG => TACTIVEX:SHOWPRINTPREVIEWDIALOG(169)
Called from: fwie.prg => (b)IENAVIGATE(54)
Called from: .\source\classes\TOOLBAR.PRG => TTOOLBAR:COMMAND(219)
Called from: .\source\classes\WINDOW.PRG => TWINDOW:COMMAND(1006)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\WINDOW.PRG => _FWH(3333)
Called from: => WINRUN(0)
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE(952)
Called from: testprg.prg => MAIN(190)
System
======
CPU type: Intel(R) Atom(TM) CPU N270 @ 1.60GHz 1600 Mhz
Hardware memory: 1012 megs
Free System resources: 90 %
GDI resources: 90 %
User resources: 90 %
Compiler version: xHarbour build 1.2.1 Intl. (SimpLex) (Rev. 6406)
Windows version: 5.1, Build 2600 Service Pack 3
Windows total applications running: 58
1
2 M
3 Default IME
4 Menu Avvio
5 CiceroUIWndFrame
6 S/PDIF IN/OUT Settings
7 Set Device Type
8 Mixer ToolBox
9 Impostazioni connettore
10 Controllo dello stato
11 TF_FloatingLangBar_WndTitle
12 Print
13 testprg: Manual
14 testprg
15 Prompt dei comandi
16 WebBrowser.ShowPrintPreviewDialog Method (System.Windows.Forms) - Mozilla Firefox
17 JavaUpdate SysTray Icon
18 NetscapeDispatchWnd
19 nsAppShell:EventWindow
20 MCI command handling window
21 VCL ImplGetDefaultWindow
22 DTS Connect
23 Dolby Home Threater
24 Advance Setting
25 TOOLBOX
26 Load EQ Preset
27 DeleteEQ
28 Save EQ
29 Realtek HD Audio Manager
30 BackMain_Form
31 Gestione Audio Realtek HD
32 HiddenFaxWindow
33 {A7E495BF-9589-4a6e-8479-DDA2D8D3C05F}
34 IgfxExt_Wnd_Name
35 _GD_Crawl
36 Connections Tray
37 DDE Server Window
38 Internet Security
39 InterVideo WinCinema Manager
40 HkWndName
41 PersistWndName
42 F-Secure Manager
43 BluetoothNotificationAreaIconWindowClass
44 Launch Manager
45 OnScreen Display Window
46 DritekECWnd
47 eRecoveryAgent
48 TouchPad object helper window
49 Misuratore alimentazione
50 MS_WebcheckMonitor
51 Touchpad driver tray icon window
52 Touchpad driver backward compatibility window
53 Touchpad driver helper window
54 igfxtrayWindow
55 GDI+ Window
56 Brother MFC-440CN Printer on 192.168.1.2
57 SysFader
58 Program Manager
Variables in use
================
Procedure Type Value
==========================
TOLEAUTO:SHOWPRINTPREVIEWDIALOG
Local 1: U
Local 2: C "1434464"
__OBJSENDMSG
Param 1: O Class: TOLEAUTO
Param 2: C "SHOWPRINTPREVIEWDIALOG"
HB_EXECFROMARRAY
Param 1: P
Param 2: A Len: 2
TACTIVEX:SHOWPRINTPREVIEWDIALOG
Local 1: O Class: TACTIVEX
Local 2: A Len: 2
(b)IENAVIGATE
Param 1: O Class: TTOOLBAR
Param 2: N 1
TTOOLBAR:COMMAND
Param 1: N 1
Param 2: N 722022
Local 1: O Class: TTOOLBAR
Local 2: N 0
Local 3: N 1
Local 4: N 722022
Local 5: B {|| ... }
TWINDOW:COMMAND
Param 1: N 1
Param 2: N 722022
Local 1: O Class: TWINDOW
Local 2: N 0
Local 3: N 1
Local 4: N 722022
TWINDOW:HANDLEEVENT
Param 1: N 273
Param 2: N 1
Param 3: N 722022
_FWH
Param 1: N 722022
Param 2: N 273
Param 3: N 1
Param 4: N 722022
Param 5: N 3
Local 1: O Class: TWINDOW
WINRUN
Param 1: N 590726
Local 1: U
Local 2: U
Local 3: U
Local 4: U
Local 5: U
Local 6: U
Local 7: U
Local 8: U
Local 9: U
Local 10: U
Local 11: U
Local 12: U
Local 13: U
Local 14: U
Local 15: U
Local 16: U
Local 17: U
Local 18: U
Local 19: U
Local 20: U
Local 21: U
Local 22: U
Local 23: U
Local 24: U
Local 25: U
Local 26: U
Local 27: U
Local 28: U
Local 29: U
Local 30: U
Local 31: U
Local 32: U
Local 33: U
Local 34: U
Local 35: U
Local 36: U
Local 37: U
Local 38: U
Local 39: U
Local 40: U
Local 41: U
Local 42: U
Local 43: U
Local 44: U
Local 45: U
Local 46: U
Local 47: U
Local 48: U
Local 49: U
Local 50: U
Local 51: U
Local 52: U
Local 53: U
Local 54: U
Local 55: U
Local 56: U
Local 57: U
Local 58: U
Local 59: U
Local 60: U
Local 61: U
Local 62: U
TWINDOW:ACTIVATE
Param 1: C "ICONIZED"
Param 2: U
Param 3: U
Param 4: U
Param 5: U
Param 6: B {|| ... }
Param 7: U
Param 8: B {|| ... }
Param 9: U
Param 10: U
Param 11: U
Param 12: U
Param 13: U
Param 14: U
Param 15: U
Param 16: U
Param 17: B {|| ... }
Param 18: U
Param 19: U
Local 1: O Class: TWINDOW
Local 2: U
Local 3: U
MAIN
Local 1: C ""
Linked RDDs
===========
DBF
DBFFPT
DBFBLOB
DBFNTX
DataBases in use
================
1: => testprg RddName: DBFNTX
==============================
RecNo RecCount BOF EOF
25 24 .F. .T.
Indexes in use TagName
Relations in use
Classes in use:
===============
1 ERROR
2 HASHENTRY
3 HBCLASS
4 HBOBJECT
5 TMUTEX
6 TINI
7 TWINDOW
8 TCONTROL
9 TICON
10 TBRUSH
11 TFONT
12 TTIMER
13 TTRAYICON
14 TSTRUCT
15 TWEBCLIENT
16 TSOCKET
17 TDIALOG
18 TSAY
19 TMENU
20 TMENUITEM
21 TIMAGELIST
22 TBITMAP
23 TREBAR
24 TTOOLBAR
25 TACTIVEX
26 TOLEAUTO
27 TREG32
Memory Analysis
===============
215 Static variables
Dynamic memory consume:
Actual Value: 0 bytes
Highest Value: 0 bytes
Destructors disabled! Destructor of class: 'TOLEAUTO' can't be executed.