Print to file setup
Hi
I have setup a simple report to print certain items of data to a text file
(comma delimited). However, I need to extend the functionality to allow the
user to be able to select the order that the data appears within the file.
As it stands I have used the 'File | Print to File Setup' option within the
report to set the current order. Is there any way to change these settings
at runtime? Also, is it possible to add or remove data items from the list?
Regards,
Paul H.
I have setup a simple report to print certain items of data to a text file
(comma delimited). However, I need to extend the functionality to allow the
user to be able to select the order that the data appears within the file.
As it stands I have used the 'File | Print to File Setup' option within the
report to set the current order. Is there any way to change these settings
at runtime? Also, is it possible to add or remove data items from the list?
Regards,
Paul H.
This discussion has been closed.
Comments
One option would be to allow the user's to use the end-user report designer
included with RB Professional and Enterprise.
The other option would be to create a custom dialog, similar to the Print To
File dialog. See RBuilder\Soruce\ppTxtDlg.pas
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Thank you for your prompt reply, very helpful. Just one more quick
question -
If I have created a TppLabel (or any component) at runtime (in code) is
there a way of adding it to the list of controls that will be output to a
file (csv file) without going through the print to file dialog??
Paul.
Use the Save and SaveOrder properties to control whether a component is
included and to control the order.
The parent Band also needs to have its Save property set to True
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com