Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report SendtoExcel Routine
Message
De
28/10/2004 11:25:04
June Kendrick
Kendrick Associates, Inc.
New York, États-Unis
 
 
À
28/10/2004 11:00:06
June Kendrick
Kendrick Associates, Inc.
New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00955303
Message ID:
00955324
Vues:
14
More:

If I have an instance of Excel running, then I don't get the error, but what I do get is the report printed out.

The comments at the end of the cReportsObj.SendtoExcel routine don't agree with what is coded:

*--- Run the report, which is only used to load
*--- and process the data, copies the cursor
*--- to the specified Excel file name then tells
*--- Excel to load the file
*----------------------------------------------
IF VARTYPE(This.oExcel) == 'O'
REPORT FORM (lcFile) TO PRINTER PROMPT NOCONSOLE
ENDIF

Any thoughts on how to make this work?

Thanks.

June

>I'm checking out the reporting routines in the cReportsObj bizobj, and am having a problem with SendtoExcel. When I try it, I get "OLE Error code 0x" when it checks to see if an Excel app is running (cOLEBaseExcel.AppRunning), or when it tries to get an instance /create a new instance of the Excel object (cOLEBaseExcel.GetCurrentInstance). In both cases, it is on a = GETOBJECT( , this.cOLERegName) statement. This.cOLERegName contains Excel.Application.
>
>Any ideas as to what might be wrong?
>
>Thanks,
>
>June
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform