Solved

auto export html

Posted on 2011-03-01
2
449 Views
Last Modified: 2012-05-11
Is there a way to automatically export a report with Html type. i have stored a RunSavedImportExport that when i run it it asks me for Html Output Options.

in vb i have created the command Docmd.RunSavedImportExport "Export-Report1" but it asks me for HTML Output Options. Is there a way to bypass that? or is there any other way of exporting my report to a html format?
0
Comment
Question by:repco
2 Comments
 
LVL 26

Accepted Solution

by:
Nick67 earned 500 total points
ID: 35011635
The options exist in the OutputTo command to specify all that.
The code below sends rptMyReport in html to c:\temp\test.html

Private Sub ExportMyReportToHTML()
Dim stdocname As String
Dim FormatValue As String

FormatValue = acFormatHTML
stdocname = "rptMyReport"

DoCmd.OutputTo acOutputReport, stdocname, FormatValue, "c:\temp\test.html", True
End Sub

Open in new window

0
 

Author Closing Comment

by:repco
ID: 35012550
thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now