General information
Category:
Visual FoxPro and .NET
Title:
Error code1001 Feature is not available
Environment versions
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only