Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
I try to create a COM automation report
Versions des environnements
Network:
Windows 2003 Server
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement