|
Dim stDocName As String
Dim stLinkCriteria As String
If Forms!reviewdetail!CurrPosition.Value = "Supervisor" Then
stDocName = "AnnualReportSupervisor"
ElseIf Forms!reviewdetail!CurrPosition.Value = "Manager" Then
stDocName = "AnnualReportManager"
Else
stDocName = "AnnualReportEngineer"
End If
stLinkCriteria = "[Review.empno]=" & Me![Review.empno] & " and [Date]=" & "#" & Me![Date] & "#"
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
DoCmd.OutputTo acReport, stDocName, acFormatRTF
DoCmd.Close
Exit_Command150_Click:
Exit Sub
Err_Command150_Click:
'MsgBox Err.description
Resume Exit_Command150_Click
End Sub
后,发现,.rtf里的格式不大好看。原来数据的边框在report的preview里能看见,到了.rtf里就看不见了。而且格式也有点不大对头。请问,,有神么比较好的将报表保存为word文档嘛? |
|