Private Sub Command56_Click()
On Error GoTo Err_Command56_Click
Dim blRet As Boolean
Me.Refresh
Me.Requery
' Call our convert function
' Please note the last param signals whether to perform
' font embedding or not. I have turned font embedding ON for this example.
blRet = ConvertReportToPDF(Me.lstRptName, vbNullString, _ [Forms]![frmtransforPDFNEW]![MO].Value & ".pdf", False, True, 0, "", "", 0, 0) '导出,打印预览就会有文件名,与窗体匹配 Me.Refresh
Me.Requery
'DoCmd.Minimize
DoCmd.OpenReport "rptMOheaderandDetailNEW", acViewPreview, "", "", acNormal
DoCmd.Close acReport, "rptMOheaderandDetailNEW"
Me.Refresh
Me.Requery
Exit_Command56_Click:
Exit Sub
Err_Command56_Click:
MsgBox Err.Description
Resume Exit_Command56_Click
End Sub 作者: 笑嘻嘻哦 时间: 2013-1-24 20:42
问题是我也不知道代码啊
作者: 若离ヘ不弃° 时间: 2013-1-25 16:11
yanwei82123300 发表于 2013-1-24 16:48
Private Sub Command56_Click()
On Error GoTo Err_Command56_Click
Dim blRet As Boolean