Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error code1001 Feature is not available
Message
De
07/10/2008 11:04:28
Marcel Roy
South West Direct
Floride, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Titre:
Error code1001 Feature is not available
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01353315
Message ID:
01353315
Vues:
89
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

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform