Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error code1001 Feature is not available
Message
 
 
To
07/10/2008 11:04:28
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01353315
Message ID:
01353323
Views:
25
The REPORT FORM command is not permitted in a MTDLL and allowed in a STDLL only when REPORTBEHAVIOR is set to 90.
Also there's no reason to use macro substitution
REPORT FORM (cpath) TO PRINTER NOCONSOLE 
>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
>
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform