Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing a report giving a problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Printing a report giving a problem
Divers
Thread ID:
00883400
Message ID:
00883400
Vues:
47
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
Fil
Voir

Click here to load this message in the networking platform