Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Printing a report giving a problem
I have a COM+ VFP8 object that should create a report.
When I run it it behaves differently
DO CASE
CASE UPPER(cOption) = 'DEV'
* Debugging
onzin = NewObject('andesreport', "progs\AndesReport.PRG")
CASE UPPER(cOption) = 'TST'
* Testing the DLL
onzin = NewObject('andesreport', lcDirDLL + "AndesReport.DLL")
CASE UPPER(cOption) = 'PRD'
* In production dir
onzin = CreateObject("Andesreport.Andesreport")
ENDCASE
The DEV works fine. The TST works fine. The PRD however generates an error:
OLE IDispatch exception code 1001 from andesreport.andesreport: .start d:\vfpappl8\andesreport\progs\andesreport.prg error in line 338 Feature is not available. 1001..
When I check the line it reads:
REPORT FORM (This.cRepFile) TO PRINTER NODIALOG NOCONSOLE
I test the presence of the report so I know that it's present.
I no that a COM-object may have no (user) interfaces. What I do not understand is why I am getting this message.
Can anyone point me in the proper direction?
Regards,
Ron Brahma
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement