Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I try to create a COM automation report
Message
De
07/10/2008 11:41:23
 
 
À
07/10/2008 10:25:25
Marcel Roy
South West Direct
Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01353297
Message ID:
01353335
Vues:
32
You need to compile the COM server as an EXE.

>I need help on my web application to generate Foxpro report on the fly.
>
>Well I am trying to create a Foxpro COM SERVER to be hable to show my PDF report on a ASP.NET web application created with Microsoft Web Developer express.
>
>I am testing this code in Foxpro:
>DEFINE CLASS wwMyserver AS CONTROL OLEPUBLIC
>
> PROCEDURE PrintFile
> SET PRINTER TO NAME "Adobe PDF"
> CLOSE TABLES all
> USE j:\medebill\1005\history\1005_2454746_29894_z.dbf IN 0 ALIAS TMP
> SELECT TMP
> cpath = "j:\medebill\1005\1005pcl.frx"
> PUBLIC rpt_prerun
> rpt_prerun=.F.
>
> REPORT FORM &cpath TO PRINTER NOCONSOLE
> USE
>
> ENDPROC
>ENDDEFINE
>
>I build the project like a Multi-threaded COM server DLL
>REGSVR32 C:\Meb\LIBS\myserver.DLL
>ox = CreateObject("myserver.wwmyserver") && create the server object
>ox.PrintFile
>
>I am getting the error code1001 line 14 Feature is not available
>the line 14 is: REPORT FORM &cpath TO PRINTER NOCONSOLE
>
>Maybe this is not the way to do this but this is the only way I know to run run a Foxpro report and get the PDF and show on a
>Web application.
>
>Thank every one
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform