ACC2000: How to Output Horizontal Lines on Report Using OutputToID: Q199055
|
If you output the data in a report, the only controls that are included in
the output file are text boxes (for .xls output files), or text boxes and
labels (for .rtf, .txt, and .html output files). All other controls are
ignored.
This article show you how you can use the String() function to output horizontal lines in your report.
The String() function returns the number of characters that you specify for the string. To output lines in a report by using the MyOutputTo() function, use the String() function as follows:
=String(<number>, <character>)where <number> is the length of the string and <character> is the repeating character string that you are using.
=String(125,"-")
Sub MyOutPutTo()
DoCmd.OutputTo acOutputReport, "<ReportName>, acFormatTXT, _
"C:\<OutputFileName>"
End Sub
NOTE: For <ReportName>, substitute the name of your report, and for <OutPutFileName>, substitute the name for your output file.Additional query words: inf
Keywords : kbprg kbprint kbdta OtpGnrl
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: May 13, 1999