The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[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

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.