Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass parameters into the report form
Message
 
 
To
19/03/2004 23:59:52
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00888154
Message ID:
00888157
Views:
10
Derek,

You can create private memvars:
* button.Click
private gcCompanyName, gcReportName
gcCompanyName = "Spacious Design"
gcReportName = "Test1"
report form ...
In the report, set the two field expressions to m.gcCompanyName and m.gcReportName respectively.

You can also use a seperate headercursor
* button.Click
create cursor reportheader ( cCompanyName c(60), cReportName c(60) )
insert into reportheader values ( "Spacious Design", "Test1" )
select TheRealReportCursor
report form ...
In the report, set the two field expressions to reportheader.cCompanyName and reportheader.cReportName respectively.

You can also use something like a property of a global app object:

goApp.cCompanyName = .... and use this in your report field.

>I have a form and have a command button to call a report form to print out the report.
>the report header have two varaible parameters which I want to pass the company name,
>and the report name into the report from the form when the Click the command button.
>Anyone can teach me how to do it.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform