Hi all,
We need to open a MS Word template to build a new doc file with data retrieved from my html form. To do this we use syntax like that:
<SCRIPT LANGUAGE="SpeedScript">
DEFINE VARIABLE wNomAplic AS COM-HANDLE NO-UNDO.
DEFINE VARIABLE wNomDoc AS COM-HANDLE NO-UNDO.
CREATE "Word.Application" wNomAplic.
wNomDoc = wNomAplicocuments:Add("C:\WebServer\plantillas\DepVen2.dot").
wNomAplic:Visible = yes.
/* code to fulfill the document */
wNomAplic:Quit( no,,).
RELEASE OBJECT wNomDoc NO-ERROR.
RELEASE OBJECT wNomAplic NO-ERROR.
as we usually do when we write .p or .w programs. Although, it doesn´t work to us through webspeed. The objects wNomAplic and wNomDoc seem to be loaded correctly, or at least we can display them, but webspeed doesn´t open the file. We are currently working in a local environment, with everything but the database remaining in my computer. Any idea of what is happening.
The webspeed log doesn´t show any relevant information anyway. It just says:
[15/10/28@12:57:47.942+0100] P-007408 T-007700 1 WS -- (Procedure: 'imprimirDeposito.r' Line:847) Error ocurrido procesando propiedad/método componente: Add.
[15/10/28@12:57:47.942+0100] P-007408 T-007700 1 WS -- (Procedure: 'imprimirDeposito.r' Line:847) Word ha detectado un problema.
[15/10/28@12:57:47.942+0100] P-007408 T-007700 1 WS -- (Procedure: 'imprimirDeposito.r' Line:847) Error: 0x80020009 imprimirDeposito.r (5890)
That means
- Error ocurred processing Add property
- Word has detected a problem.
TIA.
Alberto.
We need to open a MS Word template to build a new doc file with data retrieved from my html form. To do this we use syntax like that:
<SCRIPT LANGUAGE="SpeedScript">
DEFINE VARIABLE wNomAplic AS COM-HANDLE NO-UNDO.
DEFINE VARIABLE wNomDoc AS COM-HANDLE NO-UNDO.
CREATE "Word.Application" wNomAplic.
wNomDoc = wNomAplicocuments:Add("C:\WebServer\plantillas\DepVen2.dot").
wNomAplic:Visible = yes.
/* code to fulfill the document */
wNomAplic:Quit( no,,).
RELEASE OBJECT wNomDoc NO-ERROR.
RELEASE OBJECT wNomAplic NO-ERROR.
as we usually do when we write .p or .w programs. Although, it doesn´t work to us through webspeed. The objects wNomAplic and wNomDoc seem to be loaded correctly, or at least we can display them, but webspeed doesn´t open the file. We are currently working in a local environment, with everything but the database remaining in my computer. Any idea of what is happening.
The webspeed log doesn´t show any relevant information anyway. It just says:
[15/10/28@12:57:47.942+0100] P-007408 T-007700 1 WS -- (Procedure: 'imprimirDeposito.r' Line:847) Error ocurrido procesando propiedad/método componente: Add.
[15/10/28@12:57:47.942+0100] P-007408 T-007700 1 WS -- (Procedure: 'imprimirDeposito.r' Line:847) Word ha detectado un problema.
[15/10/28@12:57:47.942+0100] P-007408 T-007700 1 WS -- (Procedure: 'imprimirDeposito.r' Line:847) Error: 0x80020009 imprimirDeposito.r (5890)
That means
- Error ocurred processing Add property
- Word has detected a problem.
TIA.
Alberto.