Output Options |
The Output to setting on the Output page of the Reports Explorer determines what happens when you click the Print button; the default output destination is Printer. To output to a file, select File; in this case, the Print button appears as Process instead of Print. To email a report, choose Email; in this case, the Print button appears as Send instead of Print. The Preview button always sends the report to the screen, regardless of how the Output to option is set.
Stonefield Query will normally print to your default Windows printer. To select a different printer, click the Printer button to bring up the Printer dialog. You can also choose Print Setup from the File menu. The box beside the button shows the current printer.
To output a report to a file, select File in the Output to option.
The File button allows you to select which type of file to create, as well as the file name and location. Clicking this button brings up the Output to File dialog.
Select the type of file to output to from the Save as type drop-down list. The choices are:
After selecting the file type, enter a name for the file. You can also specify a location for this file using standard File dialog operations. Once you have specified a name and location, click the Save button to accept the file type, name, and location or Cancel to cancel the changes. If the file you selected already exists, you are asked if you want to overwrite it. If you choose Save, the name and location of the file appears beside the File button in the Reports Explorer. Note: to actually create the file, click the Process button in the toolbar.
If you have not activated Stonefield Query, certain output types will only output 20 or less records. These output types are Delimited, Microsoft Excel - Data Only, Spreadsheet, Table, Text, and XML.
If the Display file after creation option is turned on, the file is displayed in its usual editor after it's been created. For example, if you output to an Excel document, the document is automatically opened in Excel.
Turn Add timestamp to file name on to add a timestamp to the file name, using the format "YYYYMMDDHHMMSS." For example, if the file name you choose is "My Report.PDF" and you run the report at 1:17 p.m. on March 25, 2009, the actual name of the file is "My Report 20090325131737.PDF." This is useful if you output the report several times and don't want each run to overwrite the same file.
If you turn Output each group as a separate file on, each group in the report is output as a separate file, with the file name being the name you chose followed by the group value. For example, if you have a report showing customers grouped by country and specify "Customers.PDF" as the file name, turning this option on results in files named "Customers Argentina.PDF" (including only customers from Argentina), "Customers Austria.PDF" (including only customers from Austria), and so on. This is useful if, for example, you want to create an invoice for each customer without having to run an invoice report multiple times, each with a filter on a different customer name.
To email a report, select Email in the Output to option.
The File button allows you to select which type of file to output, as well as the file name and location. You have the same set of options as described above for this button. If you do not specify a file name or file type, Stonefield Query will create a PDF file with the same name as the report.
Turn the Erase file after email sent option off if you don't want the file erased after the email is sent.
Turn Add timestamp to file name on to add a timestamp to the file name, using the format "YYYYMMDDHHMMSS." For example, if the file name you choose is "My Report.PDF" and you run the report at 1:17 p.m. on March 25, 2009, the actual name of the file is "My Report 20090325131737.PDF." This is useful if you output the report several times and don't want each run to overwrite the same file. This option is disabled if Erase file after email sent is turned on.
If you turn Output each group as a separate file on, each group in the report is output as a separate file, with the file name being the name you chose followed by the group value. For example, if you have a report showing customers grouped by country and specify "Customers.PDF" as the file name, turning this option on results in files named "Customers Argentina.PDF" (including only customers from Argentina), "Customers Austria.PDF" (including only customers from Austria), and so on. This is useful if, for example, you want to create an invoice for each customer without having to run an invoice report multiple times, each with a filter on a different customer name.
The Get email address from option, which is only available if Output each group as a separate file is turned on, uses a field from the report as the email address to send the group's file to. To follow the example from the previous item, suppose you wanted to email an invoice to each customer. Make sure the report includes the field containing the customer's email address, even if the Display this field in the report setting is turned off for that field, then turn on Get email address from and select the field containing the email address from the drop-down list beside this option. This will create one file for each group and email that file to the address indicated in the field you select.
To specify the recipients, either type their email addresses in the To text box or click the button beside that box and select the desired email addresses from the dialog that appears. The addresses in this dialog come from the recipients of reports you have previously emailed or by importing email addresses from an email program such as Microsoft Outlook.

BCC contains the email addresses of "blind carbon copy" or BCC recipients. This works the same as To: either type the email addresses or click the button to display the Select Email Addresses dialog.
In Subject, type the subject for the email. A feature called auto-completion is available for the subject. This means that as you type, a drop-down list of previously entered values appears, from which you can select an item rather than typing the entire item again. This is similar to the way the address bar works in some Web browsers, for example. To select a previously used item, press the Down Arrow key until the desired item is highlighted and press Enter. You can also select it with the mouse. To remove a previously used item from the list, select it with the Down Arrow key or mouse and press the Delete key.
If you want to use an expression rather than fixed text for the subject, such as a user-defined function, add "{" and "}" (without the quotes) around field or function names in the text. Here's an example of an expression that displays "Sales for <spelled out month> <year>" (such as "Sales for December 2001") in the subject:
Sales for {cmonth(date())} {year(date())}You must use FoxPro syntax for expressions.
Message is the message body for the email. Like Subject, you can use expressions in the message.
Once you have chosen the desired options, click the Send button. If you did not previously fill in the information in the Email page of the Options dialog, the email cannot be sent. In that case, you are asked if you want to fill that information in now. If so, that page of the Options dialog appears so you can do so and then click the Send button again to send the email.