Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running report in COM DLL
Message
From
25/10/2007 16:06:27
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01263773
Message ID:
01263808
Views:
15
Are you sure? This is in the Help file:

"REPORT FORM and LABEL commands are no longer automatically prohibited as user-interface-related commands in COM objects compiled into DLLs, when you run the commands in object-assisted mode. The restriction still applies to these commands when they are run in backward-compatible mode. (The topic Selecting Process Types explains why user-interface-related commands are prohibited in DLLs.) This change is not applicable to multi-threaded DLLs. A number of user-interface-related facilities also are not available in DLLs (whether single- or multi-threaded). For example, the TXTWIDTH( ) Function and TextWidth Method depend on a window handle to function, so they are not available in a DLL. The CREATE REPORT - Quick Report Command relies on the same facilities as TXTWIDTH(), and therefore is not available in a DLL. However, in many instances, creating custom output using a ReportListener does not require any user-interface activity, so a REPORT FORM or LABEL command can now be used productively in a DLL. Using the SYS(2335) - Unattended Server Mode function to trap for potential modal states, as well as the new SET TABLEPROMPT Command, is recommended. Refer to Server Design Considerations and Limitations for more information."

>The REPORT command still not allowed in COM DLL in VFP9.
>
>>I'm using VFP9 SP2. As I understand it, running reports in a single-threaded DLL is now possible in VFP9. The code below works in a COM EXE, but in the DLL I get an error "Class Definition for OUTPUT TYPE 5 is not found" when I call the RunReport() method. Is there anything else I need to do to set up the environment properly for the DLL?
><snip>
Joel Leach
Microsoft Certified Professional
Blog: http://www.joelleach.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform