|
本帖最后由 wuchinjung 于 2022-8-19 11:23 编辑
9 X) d: i9 r2 ]2 \" K& e
3 `3 c! t4 b& \ProApp = win32com.client.Dispatch('MGCPCB.ExpeditionPEApplication.92')
; C( ~! h, I0 t9 M$ i這一行就報錯了
' @9 F! X9 R. k3 @
9 N8 H. b% y5 h0 _5 K( `% Q' ETraceback (most recent call last):! r z( ^7 b+ F6 h' O% x* L
File "C:\Program Files\Python310\lib\site-packages\win32com\client\dynamic.py", line 86, in _GetGoodDispatch& Z+ I9 c/ X6 c$ N# @
IDispatch = pythoncom.connect(IDispatch)
4 d* L+ C& B" M0 _. }: l; gpywintypes.com_error: (-2147221005, '無效的類別字串', None, None)
" }/ E8 d$ W% n2 z$ A$ J! f6 J8 V3 X
During handling of the above exception, another exception occurred:
; A: ]: U( l, A3 ^8 o H+ r/ F3 D" Y4 m h* }3 h
Traceback (most recent call last):; a1 R6 H$ b" T$ }
File "<pyshell#3>", line 1, in <module>
8 j: C' J% S5 c9 ]2 e. l ProApp = win32com.client.Dispatch('MGCPCB.ExpeditionPEApplication.92')
. t5 J. B' o$ x2 E. j# M: T File "C:\Program Files\Python310\lib\site-packages\win32com\client\__init__.py", line 117, in Dispatch
0 Q6 f8 B) i8 } ^ dispatch, userName = dynamic._GetGoodDispatchAndUserName(dispatch, userName, clsctx)
' v8 }$ s' p! M& X File "C:\Program Files\Python310\lib\site-packages\win32com\client\dynamic.py", line 106, in _GetGoodDispatchAndUserName
$ v, v- v6 a4 l J" ^ return (_GetGoodDispatch(IDispatch, clsctx), userName)
* ?+ s' a* \8 F5 ` File "C:\Program Files\Python310\lib\site-packages\win32com\client\dynamic.py", line 88, in _GetGoodDispatch" \( H0 _- A0 }
IDispatch = pythoncom.CoCreateInstance(
/ W) ~* _( W$ L3 Upywintypes.com_error: (-2147221005, '無效的類別字串', None, None)8 }+ n, @) G4 X! f3 `! ?
$ U$ s" W6 O) q2 E( R
1 v. W$ O [& b5 s* m9 ]& H, i我是VX2.7) F6 U& L: {6 ?( V
( `. { e* N) g! W+ C |
|