General information
Category:
COM/DCOM and OLE Automation
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only