J
John Penketh
Does anyone know how to solve this?
The OutputTo method doesn't work in Access 2007 Runtime if the object being
output is a report.
For example the code below, where RichTextFolder and strFilename are text
strings:
DoCmd.OutputTo acOutputReport, strReportName, acFormatRTF, RichTextFolder _
& "\" & strFileName & ".rtf", False
results in an error message "Can't complete the operation" (no error code).
The same code works perfectly in the full version of Access 2007.
Incidentally, it's only when using the acOutputReport argument that trouble
ensues. Other outputs works fine.
The OutputTo method doesn't work in Access 2007 Runtime if the object being
output is a report.
For example the code below, where RichTextFolder and strFilename are text
strings:
DoCmd.OutputTo acOutputReport, strReportName, acFormatRTF, RichTextFolder _
& "\" & strFileName & ".rtf", False
results in an error message "Can't complete the operation" (no error code).
The same code works perfectly in the full version of Access 2007.
Incidentally, it's only when using the acOutputReport argument that trouble
ensues. Other outputs works fine.