To All:
I am Using Xbasic to create a report in RuntimePlus
It works fine.
Now I need to save the report in a user directory.
I want all of the user reports to be in a directory called user_runtime
This will keep all of the user created reports separate from all of the built in program reports.
How can I save a report created in RuntimePlus to a different directory?
Thanks
Charlie Crimmel
Xbasic code to create a report below:
'a5_new_report_dialog([C type [,C prompt [,C title [,C table_set_list [,C alias_names [,L exclude_tables ]]]]]])
'that corrects an issue with the example given in the Runtime+ PDF Help file.
'The example in the runtime+ help file did not show how to properly initialize
'the table_set_list parameter in order for the logical .f. flag to exclude_tables.
'The table_set_list needs to be populated with the same tables and sets list as the alias_list.
Dim alias_file as c
Dim alias_list as c
Dim table_set_list as c
Dim Prompt as c
Dim dlg_title as c
alias_file = a5.get_exe_path() + chr(92) + "Allowed_Tables.dbf"
If file.exists(alias_file) then
alias_list = get_from_file(alias_file)
table_set_list = get_from_file(alias_file)
Else
alias_list = ""
table_set_list = ""
End if
Prompt = "Select the data source for your new report�"
Dlg_title = "New EZ Task Master Report"
a5_new_report_dialog("report",prompt,dlg_title,table_set_list,alias_list,.f.)
I am Using Xbasic to create a report in RuntimePlus
It works fine.
Now I need to save the report in a user directory.
I want all of the user reports to be in a directory called user_runtime
This will keep all of the user created reports separate from all of the built in program reports.
How can I save a report created in RuntimePlus to a different directory?
Thanks
Charlie Crimmel
Xbasic code to create a report below:
'a5_new_report_dialog([C type [,C prompt [,C title [,C table_set_list [,C alias_names [,L exclude_tables ]]]]]])
'that corrects an issue with the example given in the Runtime+ PDF Help file.
'The example in the runtime+ help file did not show how to properly initialize
'the table_set_list parameter in order for the logical .f. flag to exclude_tables.
'The table_set_list needs to be populated with the same tables and sets list as the alias_list.
Dim alias_file as c
Dim alias_list as c
Dim table_set_list as c
Dim Prompt as c
Dim dlg_title as c
alias_file = a5.get_exe_path() + chr(92) + "Allowed_Tables.dbf"
If file.exists(alias_file) then
alias_list = get_from_file(alias_file)
table_set_list = get_from_file(alias_file)
Else
alias_list = ""
table_set_list = ""
End if
Prompt = "Select the data source for your new report�"
Dlg_title = "New EZ Task Master Report"
a5_new_report_dialog("report",prompt,dlg_title,table_set_list,alias_list,.f.)
Comment