If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > automate report export to html

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-12-02, 02:49
izyrider izyrider is offline
Cavalier King Charles
 
Join Date: Dec 2002
Location: Préverenges, Switzerland
Posts: 3,731
automate report export to html

I have a 40 page report which is used to generate static web pages. The report includes a subreport on the first page to index the other pages. I use a template to set up some navigation buttons.

Manually everything works fine with:
acPreview File¦Export and then navigate to destination / name.htm / type: HTML / template: xyz.txt

My users regularly get things wrong in the dialogs!

Can someone help with automating this?
I _need_ hard-coded path/name.ext/type/template

I've tried macros and doCmd****nCommand acCmdSaveAsHTML but I'm not making progress. SendKeys is not attractive!

Thanks for any pointers.

izy

Access2000/Win2000
Reply With Quote
  #2 (permalink)  
Old 12-12-02, 07:52
izyrider izyrider is offline
Cavalier King Charles
 
Join Date: Dec 2002
Location: Préverenges, Switzerland
Posts: 3,731
Talking

OK, I found the answer elsewhere: in case anyone needs to know:

DoCmd.OutputTo acOutputReport, "myRpt", acFormatHTML, "c:/webpath/web.htm", False, "c:/tplpath/myTpl.txt"

izy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On