[Date Prev][Date
Next][Thread Prev][Thread Next][Date
Index][Thread Index]
Re: [OT] ASP Guru's ?
Dean Barrett wrote:
> Does anyone know how to place dynamic text WITHIN an ASP script ??
>
> I have a script to create a word document.
>
> <%Set wdDoc = wdApp.ActiveDocument
>
> wdDoc.saveas "C:\temp\newfile.doc" %>
>
>
> What i want to be able to do is change the temp and newfile variables
to
> something create dynamically, i.e. next number in database etc.
You should be able to do
<%
intNumberFromDatabase=your method to find the next number from the database
Set wdDoc = wdApp.ActiveDocument
wdDoc.saveas "C:\temp\newfile" & intNumberFromDatabase &
".doc" %>
That should work no problem, which would make
C:\temp\newfile1.doc
C:\temp\newfile2.doc
C:\temp\newfile3.doc
etc
--
Doogie
Home |
Main Index |
Thread Index
|