'imprime informe
Private Sub UltraButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles UltraButton2.Click
Try
copiaintrointro2()
Dim oAccess As Access.Application
'Start a new instance of Access for Automation:
' oAccess = New Access.ApplicationClass()
oAccess = New Access.Application
'Open a database in exclusive mode:
oAccess.OpenCurrentDatabase(filepath:="C:\Ges\Gppe sion.mdb", Exclusive:=False)
'Preview a report named Sales:
oAccess.DoCmd.OpenReport(ReportName:="Dntas_ta", _
View:=Access.AcView.acViewPreview)
'Print a report named Sales:
oAccess.DoCmd.OpenReport(ReportName:="Dntas_ta", _
View:=Access.AcView.acViewNormal)
oAccess.CloseCurrentDatabase()
Catch
MessageBox.Show("Tiene problemas con su visor de documentos en Windows reinstale su paquete office 2003")
End Try
End Sub
