This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C55700.03B70630
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi.

I am tring to dynamically create a Project file using ASP with Project =
installed on the server. Here is the code I have so far:

<%
Const pjDoNotSave =3D 0
Const pjSave =3D 1

Set pj =3D CreateObject("MSProject.Project")
pj.Application.Projects.Add False

pj.Application.ActiveProject.Tasks.Add Name=3D"New Task"

' Save and Close Project file and Quit Project
pj.Application.FileSaveAs Name=3D"Project1.mpp", =
FormatID=3D"MSProject.MPP"
'pj.Application.FileClose
pj.Application.Quit pjDoNotSave

pj.close
Set pj =3D Nothing
%>

I appears to lock up on the FileSaveAs line. Does this code look right? =
What am I doing wrong?

Thanks for any help!

Curtis


------=_NextPart_000_0008_01C55700.03B70630
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2627" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am tring to dynamically create a =
Project file=20
using ASP with Project installed on the server. Here is the code I have =
so=20
far:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;%<BR>Const pjDoNotSave =3D =
0<BR>Const pjSave =3D=20
1</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Set pj =3D=20
CreateObject("MSProject.Project")<BR>pj.Application.Projects.Add=20
False</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>pj.Application.ActiveProject.Tasks.Add =
Name=3D"New=20
Task"</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>' Save and Close Project file and Quit=20
Project<BR>pj.Application.FileSaveAs Name=3D"Project1.mpp",=20
FormatID=3D"MSProject.MPP"<BR>'pj.Application.FileClose<BR>pj.Application=
.Quit=20
pjDoNotSave</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>pj.close<BR>Set pj =3D =
Nothing</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>%&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I appears to lock up on the FileSaveAs =
line. Does=20
this code look right? What am I doing wrong?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for any help!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Curtis</DIV>
<DIV><BR></DIV></FONT><%
Const pjDoNotSave =3D 0
Const pjSave =3D 1

Set pj =3D CreateObject("MSProject.Project")
pj.Application.Projects.Add False

pj.Application.ActiveProject.Tasks.Add Name=3D"New Task"

' Save and Close Project file and Quit Project
pj.Application.FileSaveAs Name=3D"Project1.mpp", =
FormatID=3D"MSProject.MPP"
'pj.Application.FileClose
pj.Application.Quit pjDoNotSave

pj.close
Set pj =3D Nothing

%><%
Const pjDoNotSave =3D 0
Const pjSave =3D 1

Set pj =3D CreateObject("MSProject.Project")
pj.Application.Projects.Add False

pj.Application.ActiveProject.Tasks.Add Name=3D"New Task"

' Save and Close Project file and Quit Project
pj.Application.FileSaveAs Name=3D"Project1.mpp", =
FormatID=3D"MSProject.MPP"
'pj.Application.FileClose
pj.Application.Quit pjDoNotSave

pj.close
Set pj =3D Nothing

%></BODY></HTML>

------=_NextPart_000_0008_01C55700.03B70630--

Re: Creating a project using ASP by Rod

Rod
Thu May 12 16:15:04 CDT 2005

This is a multi-part message in MIME format.

------=_NextPart_000_0020_01C5579C.3FA0E1B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

Try:

<%
Const pjDoNotSave =3D 0
Const pjSave =3D 1

Set pj =3D CreateObject("MSProject.Application")
pj.Projects.Add False

pj.ActiveProject.Tasks.Add Name=3D"New Task"

' Save and Close Project file and Quit Project
pj.FileSaveAs Name=3D"Project1.mpp"
pj.Quit pjDoNotSave
set pj =3D Nothing
%>

--=20

Rod Gill
Project MVP
Visit www.msproject-systems.com for Project Companion Tools and more


"Curtis Tammany" <ctammany@NO_SPAMegginc.com> wrote in message =
news:uFxYMGyVFHA.1508@tk2msftngp13.phx.gbl...
Hi.

I am tring to dynamically create a Project file using ASP with Project =
installed on the server. Here is the code I have so far:

<%
Const pjDoNotSave =3D 0
Const pjSave =3D 1

Set pj =3D CreateObject("MSProject.Project")
pj.Application.Projects.Add False

pj.Application.ActiveProject.Tasks.Add Name=3D"New Task"

' Save and Close Project file and Quit Project
pj.Application.FileSaveAs Name=3D"Project1.mpp", =
FormatID=3D"MSProject.MPP"
'pj.Application.FileClose
pj.Application.Quit pjDoNotSave

pj.close
Set pj =3D Nothing
%>

I appears to lock up on the FileSaveAs line. Does this code look =
right? What am I doing wrong?

Thanks for any help!

Curtis


------=_NextPart_000_0020_01C5579C.3FA0E1B0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2627" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Try:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>&lt;%<BR>Const pjDoNotSave =3D =
0<BR>Const pjSave =3D=20
1</FONT></DIV>
<DIV>&nbsp;</DIV>Set pj =3D=20
CreateObject("MSProject.Application")<BR>pj.Projects.Add =
False</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>pj.ActiveProject.Tasks.Add Name=3D"New=20
Task"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>' Save and Close Project file and Quit=20
Project<BR>pj.FileSaveAs Name=3D"Project1.mpp"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>pj.Quit pjDoNotSave</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>set pj =3D Nothing</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT>
<DIV><FONT face=3DArial size=3D2>%&gt;</FONT></DIV><BR>-- <BR><BR>Rod=20
Gill<BR>Project MVP<BR>Visit <A=20
href=3D"http://www.msproject-systems.com">www.msproject-systems.com</A> =
for=20
Project Companion Tools and more</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Curtis Tammany" &lt;<A=20
=
href=3D"mailto:ctammany@NO_SPAMegginc.com">ctammany@NO_SPAMegginc.com</A>=
&gt;=20
wrote in message <A=20
=
href=3D"news:uFxYMGyVFHA.1508@tk2msftngp13.phx.gbl">news:uFxYMGyVFHA.1508=
@tk2msftngp13.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hi.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am tring to dynamically create a =
Project file=20
using ASP with Project installed on the server. Here is the code I =
have so=20
far:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;%<BR>Const pjDoNotSave =3D =
0<BR>Const pjSave =3D=20
1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Set pj =3D=20
CreateObject("MSProject.Project")<BR>pj.Application.Projects.Add=20
False</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>pj.Application.ActiveProject.Tasks.Add Name=3D"New=20
Task"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>' Save and Close Project file and =
Quit=20
Project<BR>pj.Application.FileSaveAs Name=3D"Project1.mpp",=20
=
FormatID=3D"MSProject.MPP"<BR>'pj.Application.FileClose<BR>pj.Application=
.Quit=20
pjDoNotSave</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>pj.close<BR>Set pj =3D =
Nothing</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>%&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I appears to lock up on the =
FileSaveAs line. Does=20
this code look right? What am I doing wrong?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for any help!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Curtis</DIV>
<DIV><BR></DIV></BLOCKQUOTE></FONT><%
Const pjDoNotSave =3D 0
Const pjSave =3D 1

Set pj =3D CreateObject("MSProject.Project")
pj.Application.Projects.Add False

pj.Application.ActiveProject.Tasks.Add Name=3D"New Task"

' Save and Close Project file and Quit Project
pj.Application.FileSaveAs Name=3D"Project1.mpp", =
FormatID=3D"MSProject.MPP"
'pj.Application.FileClose
pj.Application.Quit pjDoNotSave

pj.close
Set pj =3D Nothing

%><%
Const pjDoNotSave =3D 0
Const pjSave =3D 1

Set pj =3D CreateObject("MSProject.Project")
pj.Application.Projects.Add False

pj.Application.ActiveProject.Tasks.Add Name=3D"New Task"

' Save and Close Project file and Quit Project
pj.Application.FileSaveAs Name=3D"Project1.mpp", =
FormatID=3D"MSProject.MPP"
'pj.Application.FileClose
pj.Application.Quit pjDoNotSave

pj.close
Set pj =3D Nothing

%></BODY></HTML>

------=_NextPart_000_0020_01C5579C.3FA0E1B0--


Re: Creating a project using ASP by Curtis

Curtis
Fri May 13 09:52:30 CDT 2005

This is a multi-part message in MIME format.

------=_NextPart_000_0043_01C557A9.DCC143B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks- but that did not work either. Since I was unable to get the =
FileSaveAs method to work, I resorted to copying an empty Project file, =
opening it with Project, adding the tasks and then using the FileSave =
method. Not quite as clean but it works.

Thanks again.

Curtis
"Rod Gill" <rod AT project-systems DOT co DOT nz> wrote in message =
news:OqMfrezVFHA.1200@TK2MSFTNGP14.phx.gbl...
Hi,

Try:

<%
Const pjDoNotSave =3D 0
Const pjSave =3D 1

Set pj =3D CreateObject("MSProject.Application")
pj.Projects.Add False

pj.ActiveProject.Tasks.Add Name=3D"New Task"

' Save and Close Project file and Quit Project
pj.FileSaveAs Name=3D"Project1.mpp"
pj.Quit pjDoNotSave
set pj =3D Nothing
%>

--=20

Rod Gill
Project MVP
Visit www.msproject-systems.com for Project Companion Tools and more


"Curtis Tammany" <ctammany@NO_SPAMegginc.com> wrote in message =
news:uFxYMGyVFHA.1508@tk2msftngp13.phx.gbl...
Hi.

I am tring to dynamically create a Project file using ASP with =
Project installed on the server. Here is the code I have so far:

<%
Const pjDoNotSave =3D 0
Const pjSave =3D 1

Set pj =3D CreateObject("MSProject.Project")
pj.Application.Projects.Add False

pj.Application.ActiveProject.Tasks.Add Name=3D"New Task"

' Save and Close Project file and Quit Project
pj.Application.FileSaveAs Name=3D"Project1.mpp", =
FormatID=3D"MSProject.MPP"
'pj.Application.FileClose
pj.Application.Quit pjDoNotSave

pj.close
Set pj =3D Nothing
%>

I appears to lock up on the FileSaveAs line. Does this code look =
right? What am I doing wrong?

Thanks for any help!

Curtis


------=_NextPart_000_0043_01C557A9.DCC143B0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2627" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Thanks- but that did not work either. =
Since I was=20
unable to get the FileSaveAs method to work, I resorted to copying an =
empty=20
Project file, opening it with Project, adding the tasks and then using =
the=20
FileSave method. Not quite as clean but it works.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks again.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Curtis</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Rod Gill" &lt;rod AT project-systems DOT co DOT nz&gt; wrote in =
message=20
<A=20
=
href=3D"news:OqMfrezVFHA.1200@TK2MSFTNGP14.phx.gbl">news:OqMfrezVFHA.1200=
@TK2MSFTNGP14.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Try:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>&lt;%<BR>Const pjDoNotSave =3D =
0<BR>Const pjSave =3D=20
1</FONT></DIV>
<DIV>&nbsp;</DIV>Set pj =3D=20
CreateObject("MSProject.Application")<BR>pj.Projects.Add =
False</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>pj.ActiveProject.Tasks.Add =
Name=3D"New=20
Task"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>' Save and Close Project file and =
Quit=20
Project<BR>pj.FileSaveAs Name=3D"Project1.mpp"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>pj.Quit pjDoNotSave</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>set pj =3D Nothing</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT>
<DIV><FONT face=3DArial size=3D2>%&gt;</FONT></DIV><BR>-- <BR><BR>Rod=20
Gill<BR>Project MVP<BR>Visit <A=20
=
href=3D"http://www.msproject-systems.com">www.msproject-systems.com</A> =
for=20
Project Companion Tools and more</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Curtis Tammany" &lt;<A=20
=
href=3D"mailto:ctammany@NO_SPAMegginc.com">ctammany@NO_SPAMegginc.com</A>=
&gt;=20
wrote in message <A=20
=
href=3D"news:uFxYMGyVFHA.1508@tk2msftngp13.phx.gbl">news:uFxYMGyVFHA.1508=
@tk2msftngp13.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hi.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am tring to dynamically create a =
Project file=20
using ASP with Project installed on the server. Here is the code I =
have so=20
far:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&lt;%<BR>Const pjDoNotSave =3D =
0<BR>Const pjSave=20
=3D 1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Set pj =3D=20
CreateObject("MSProject.Project")<BR>pj.Application.Projects.Add=20
False</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>pj.Application.ActiveProject.Tasks.Add=20
Name=3D"New Task"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>' Save and Close Project file and =
Quit=20
Project<BR>pj.Application.FileSaveAs Name=3D"Project1.mpp",=20
=
FormatID=3D"MSProject.MPP"<BR>'pj.Application.FileClose<BR>pj.Application=
.Quit=20
pjDoNotSave</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>pj.close<BR>Set pj =3D =
Nothing</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>%&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I appears to lock up on the =
FileSaveAs line.=20
Does this code look right? What am I doing wrong?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for any help!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Curtis</DIV>
<DIV><BR></DIV></BLOCKQUOTE></BLOCKQUOTE></FONT><%
Const pjDoNotSave =3D 0
Const pjSave =3D 1

Set pj =3D CreateObject("MSProject.Project")
pj.Application.Projects.Add False

pj.Application.ActiveProject.Tasks.Add Name=3D"New Task"

' Save and Close Project file and Quit Project
pj.Application.FileSaveAs Name=3D"Project1.mpp", =
FormatID=3D"MSProject.MPP"
'pj.Application.FileClose
pj.Application.Quit pjDoNotSave

pj.close
Set pj =3D Nothing

%><%
Const pjDoNotSave =3D 0
Const pjSave =3D 1

Set pj =3D CreateObject("MSProject.Project")
pj.Application.Projects.Add False

pj.Application.ActiveProject.Tasks.Add Name=3D"New Task"

' Save and Close Project file and Quit Project
pj.Application.FileSaveAs Name=3D"Project1.mpp", =
FormatID=3D"MSProject.MPP"
'pj.Application.FileClose
pj.Application.Quit pjDoNotSave

pj.close
Set pj =3D Nothing

%></BODY></HTML>

------=_NextPart_000_0043_01C557A9.DCC143B0--


Re: Creating a project using ASP by Mike

Mike
Fri May 13 10:00:25 CDT 2005

This is a multi-part message in MIME format.

------=_NextPart_000_00B9_01C557D4.E06CD800
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Hi Curtis,

Next time, try posting on the developer newsgroup. Please see FAQ Item: =
24. Project Newsgroups. FAQs, companion products and other useful =
Project information can be seen at this web address: =
http://www.mvps.org/project/.

Mike Glen
Project MVP


=20


Curtis Tammany wrote:
> Hi.
>=20
> I am tring to dynamically create a Project file using ASP with
> Project installed on the server. Here is the code I have so far:=20
>=20
> <%
> Const pjDoNotSave =3D 0
> Const pjSave =3D 1
>=20
> Set pj =3D CreateObject("MSProject.Project")
> pj.Application.Projects.Add False
>=20
> pj.Application.ActiveProject.Tasks.Add Name=3D"New Task"
>=20
> ' Save and Close Project file and Quit Project
> pj.Application.FileSaveAs Name=3D"Project1.mpp",
> FormatID=3D"MSProject.MPP"=20
> 'pj.Application.FileClose
> pj.Application.Quit pjDoNotSave
>=20
> pj.close
> Set pj =3D Nothing
> %>
>=20
> I appears to lock up on the FileSaveAs line. Does this code look
> right? What am I doing wrong?=20
>=20
> Thanks for any help!
>=20
> Curtis
------=_NextPart_000_00B9_01C557D4.E06CD800
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><LINK href=3D"C:\Program Files\OE-QuoteFix\styles.css" =
rel=3Dstylesheet>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252">
<META content=3D"MSHTML 6.00.2900.2627" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3Dq0>Hi Curtis,</SPAN></DIV>
<DIV><SPAN class=3Dq0></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3Dq0>Next time, try posting on the developer =
newsgroup.&nbsp;=20
Please see FAQ Item: 24. Project Newsgroups.&nbsp;&nbsp; FAQs, companion =

products and other useful Project information can be seen at this web =
address:=20
<A=20
href=3D"http://www.mvps.org/project/">http://www.mvps.org/project/</A>.</=
SPAN></DIV>
<DIV><SPAN class=3Dq0></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3Dq0>Mike Glen</SPAN></DIV>
<DIV><SPAN class=3Dq0>Project MVP</SPAN></DIV>
<DIV><SPAN class=3Dq0></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3Dq0></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3Dq0>&nbsp;</DIV>
<DIV><BR><BR>Curtis Tammany wrote:<BR></SPAN><SPAN class=3Dq1>&gt; =
Hi.<BR>&gt;=20
<BR>&gt; I am tring to dynamically create a Project file using ASP =
with<BR>&gt;=20
Project installed on the server. Here is the code I have so far: =
<BR>&gt;=20
<BR>&gt; &lt;%<BR>&gt; Const pjDoNotSave =3D 0<BR>&gt; Const pjSave =3D =
1<BR>&gt;=20
<BR>&gt; Set pj =3D CreateObject("MSProject.Project")<BR>&gt;=20
pj.Application.Projects.Add False<BR>&gt; <BR>&gt;=20
pj.Application.ActiveProject.Tasks.Add Name=3D"New Task"<BR>&gt; =
<BR>&gt; ' Save=20
and Close Project file and Quit Project<BR>&gt; =
pj.Application.FileSaveAs=20
Name=3D"Project1.mpp",<BR>&gt; FormatID=3D"MSProject.MPP" <BR>&gt;=20
'pj.Application.FileClose<BR>&gt; pj.Application.Quit =
pjDoNotSave<BR>&gt;=20
<BR>&gt; pj.close<BR>&gt; Set pj =3D Nothing<BR>&gt; %&gt;<BR>&gt; =
<BR>&gt; I=20
appears to lock up on the FileSaveAs line. Does this code look<BR>&gt; =
right?=20
What am I doing wrong? <BR>&gt; <BR>&gt; Thanks for any help!<BR>&gt; =
<BR>&gt;=20
Curtis</SPAN></DIV></BODY></HTML>

------=_NextPart_000_00B9_01C557D4.E06CD800--