Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing a report giving a problem
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Printing a report giving a problem
Miscellaneous
Thread ID:
00883400
Message ID:
00883400
Views:
46
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
Map
View

Click here to load this message in the networking platform