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 ?



Cheers Doogie - that makes sense to me.

I've not done any ASP stuff for about a year - i've just looked at stuff i
did then, and am still trying to get my head round what i did :)




Dean.







Try our amazing lighting demonstration online now, and watch in
realtime via our webcam. Click below and follow the CBus links.
www.rolec.net
dean@xxxxxxx
Tel: 01908-210677
Fax: 01908-210678
The information in this internet E-mail is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it by
anyone else is unauthorised. Any views or opinions presented are solely
those of the author and do not necessarily represent those of The Rolec
Group or any of its affiliates. If you are not the intended recipient
please
contact wrongmail@xxxxxxx

-----Original Message-----
From: Doogie Brodie [mailto:ukhad@xxxxxxx]
Sent: 13 February 2004 13:11
To: ukha_d@xxxxxxx
Subject: Re: [ukha_d] [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


UK Home Automation Meet 2004 - BOOK NOW!
http://www.ukha2004.com

http://www.automatedhome.co.uk
Post message: ukha_d@xxxxxxx
Subscribe:  ukha_d-subscribe@xxxxxxx
Unsubscribe:  ukha_d-unsubscribe@xxxxxxx
List owner:  ukha_d-owner@xxxxxxx



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.