다음을 통해 공유


How to: Export a Report to XML

This procedure exports the Invoice report in the current database to an XML file. It also exports presentation information, and places images in the Images folder. The procedure exports the report to the default HTML wrapper. In addition, it creates a file containing the ReportML list.

Private Sub ExportReport() 
 
 Const CREATE_REPORTML = 16 
 
 Application.ExportXML _ 
 ObjectType:=acExportReport, _ 
 DataSource:="Invoice", _ 
 DataTarget:="C:\Invoice.xml", _ 
 PresentationTarget:="C:\InvoiceReport.xsl", _ 
 ImageTarget:="C:\Images", _ 
 OtherFlags:=CREATE_REPORTML 
 
End Sub