Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing to a report with data from a form??
Message
De
18/03/2000 23:58:16
 
 
À
18/03/2000 16:04:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00347481
Message ID:
00347535
Vues:
16
>Is there anyway to print to a report using data that is in textboxes on the current form when my user pushes.
>a command button to print. Would the only way to do this is to create a table and store the values of the text box's there then
>use that table to get values into my report?
>

If the existing textboxes on the form aren't tied to a controlsource, you might consider creating a cursor with fields that correspond to the textbox values; when the button is pushed, you simply report off that cursor, whose fields you've tied to the desired controls...

I've run into some strange problems with VFP reports using data from objects, especially where you aren't sure of the object reference's scope during the report's execution; I'd either fill a cursor or at least store them in private variables created 'above' the report invocation. Properties are in scope relative to the objects that contains them, so if your object reference is not in scope, the propertycan't be seen.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform