Function FileSaveAs Web page

S

sgeorge

I'm trying to automate the save as web page feature in project 2003 pro. I
found the FileSaveAs function which requires a PjFileFormat as the file
format argument. Problem is, HTM/HTML isn't a valid PjFileFormat (as far as I
can tell). Is there another way to script the "Save as Web page" option?

Incase this might help, here is a summary of what I'm trying to accomplish:
Basically, I have a custom export map which I want to run for each resource
in the project. My map opens a resource selection dialog at the very end of
the export wizard then proceeds to export the data in HTM/HTML format.
So..one html file for each resource, with a filename based on the resource
name is my goal.

Hope this made sense. :)

Steve
 
R

Rod Gill

Hi,

Record a macro of you doing what you want manually. The recorded code will
either tell you everything you need or get you started.
 
S

sgeorge

Thanks, that got me on track. One last missing link though. My custom export
map brings up a "Resource Selection" dialog(I'm exporting one webpage per
resource). Is there any way to programatically specify the resource? The
macro recorder doesn't seem to catch anything from this dialog.

Thanks again
Steve
 
R

Rod Gill

Try using a filter to choose the resource before exporting. Hopefully
project will then only export what's filtered for. Generally if Project
doesn't record something, it can't be done in a macro using that method.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top